Remove deprecated ansible_ssh_host variable
This changes 'ansible_ssh_host' to 'ansible_host'. The 'ansible_ssh_host' variable has been deprecated as noted here: [0]. [0] - http://docs.ansible.com/ansible/intro_inventory.html#hosts-and-groups Related-Bug: #1636606 Change-Id: I974c17d6c666a9bac0be1f6db93d0cb915ac0fe7
This commit is contained in:
parent
6b8c5b671e
commit
a420d11cd2
@ -118,7 +118,7 @@
|
|||||||
port: "22"
|
port: "22"
|
||||||
delay: "{{ ssh_delay }}"
|
delay: "{{ ssh_delay }}"
|
||||||
search_regex: "OpenSSH"
|
search_regex: "OpenSSH"
|
||||||
host: "{{ ansible_ssh_host }}"
|
host: "{{ ansible_host }}"
|
||||||
delegate_to: "{{ physical_host }}"
|
delegate_to: "{{ physical_host }}"
|
||||||
register: ssh_wait_check
|
register: ssh_wait_check
|
||||||
until: ssh_wait_check | success
|
until: ssh_wait_check | success
|
||||||
|
@ -71,7 +71,7 @@ resolvconf_resolver_group: unbound_all
|
|||||||
|
|
||||||
## Memcached options
|
## Memcached options
|
||||||
memcached_port: 11211
|
memcached_port: 11211
|
||||||
memcached_servers: "{% for host in groups['memcached'] %}{{ hostvars[host]['ansible_ssh_host'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}"
|
memcached_servers: "{% for host in groups['memcached'] %}{{ hostvars[host]['ansible_host'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}"
|
||||||
|
|
||||||
## Galera
|
## Galera
|
||||||
galera_address: "{{ internal_lb_vip_address }}"
|
galera_address: "{{ internal_lb_vip_address }}"
|
||||||
@ -82,7 +82,7 @@ rabbitmq_host_group: "rabbitmq_all"
|
|||||||
rabbitmq_port: "{{ (rabbitmq_use_ssl | bool) | ternary(5671, 5672) }}"
|
rabbitmq_port: "{{ (rabbitmq_use_ssl | bool) | ternary(5671, 5672) }}"
|
||||||
|
|
||||||
rabbitmq_use_ssl: True
|
rabbitmq_use_ssl: True
|
||||||
rabbitmq_servers: "{% for host in groups[rabbitmq_host_group] %}{{ hostvars[host]['ansible_ssh_host'] }}{% if not loop.last %},{% endif %}{% endfor %}"
|
rabbitmq_servers: "{% for host in groups[rabbitmq_host_group] %}{{ hostvars[host]['ansible_host'] }}{% if not loop.last %},{% endif %}{% endfor %}"
|
||||||
|
|
||||||
## Enable external SSL handling for general OpenStack services
|
## Enable external SSL handling for general OpenStack services
|
||||||
openstack_external_ssl: true
|
openstack_external_ssl: true
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
memcached_listen: "{{ ansible_ssh_host }}"
|
memcached_listen: "{{ ansible_host }}"
|
||||||
|
|
||||||
# Ensure that the package state matches the global setting
|
# Ensure that the package state matches the global setting
|
||||||
memcached_package_state: "{{ package_state }}"
|
memcached_package_state: "{{ package_state }}"
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
local_action:
|
local_action:
|
||||||
module: wait_for
|
module: wait_for
|
||||||
port: "22"
|
port: "22"
|
||||||
host: "{{ ansible_ssh_host | default(inventory_hostname) }}"
|
host: "{{ ansible_host | default(inventory_hostname) }}"
|
||||||
search_regex: OpenSSH
|
search_regex: OpenSSH
|
||||||
delay: 1
|
delay: 1
|
||||||
vars:
|
vars:
|
||||||
|
@ -110,7 +110,7 @@
|
|||||||
- always
|
- always
|
||||||
- name: Set cinder storage bridge (is_metal no storage network)
|
- name: Set cinder storage bridge (is_metal no storage network)
|
||||||
set_fact:
|
set_fact:
|
||||||
storage_address: "{{ ansible_ssh_host }}"
|
storage_address: "{{ ansible_host }}"
|
||||||
when:
|
when:
|
||||||
- hostvars[inventory_hostname]['container_networks']['storage_address']['bridge'] is undefined
|
- hostvars[inventory_hostname]['container_networks']['storage_address']['bridge'] is undefined
|
||||||
- is_metal | bool
|
- is_metal | bool
|
||||||
@ -126,7 +126,7 @@
|
|||||||
- always
|
- always
|
||||||
- name: Set cinder storage address (container no storage network)
|
- name: Set cinder storage address (container no storage network)
|
||||||
set_fact:
|
set_fact:
|
||||||
storage_address: "{{ ansible_ssh_host }}"
|
storage_address: "{{ ansible_host }}"
|
||||||
when:
|
when:
|
||||||
- hostvars[inventory_hostname]['container_networks']['storage_address']['address'] is undefined
|
- hostvars[inventory_hostname]['container_networks']['storage_address']['address'] is undefined
|
||||||
- not is_metal | bool
|
- not is_metal | bool
|
||||||
@ -136,7 +136,7 @@
|
|||||||
- role: "os_cinder"
|
- role: "os_cinder"
|
||||||
cinder_venv_tag: "{{ openstack_release }}"
|
cinder_venv_tag: "{{ openstack_release }}"
|
||||||
cinder_venv_download_url: "{{ openstack_repo_url }}/venvs/{{ openstack_release }}/{{ ansible_distribution | lower }}/cinder-{{ openstack_release }}-{{ ansible_architecture | lower }}.tgz"
|
cinder_venv_download_url: "{{ openstack_repo_url }}/venvs/{{ openstack_release }}/{{ ansible_distribution | lower }}/cinder-{{ openstack_release }}-{{ ansible_architecture | lower }}.tgz"
|
||||||
cinder_management_address: "{{ ansible_ssh_host }}"
|
cinder_management_address: "{{ ansible_host }}"
|
||||||
cinder_storage_address: "{{ storage_address }}"
|
cinder_storage_address: "{{ storage_address }}"
|
||||||
cinder_glance_host: "{{ internal_lb_vip_address }}"
|
cinder_glance_host: "{{ internal_lb_vip_address }}"
|
||||||
cinder_glance_service_port: "{{ glance_service_port }}"
|
cinder_glance_service_port: "{{ glance_service_port }}"
|
||||||
|
@ -100,14 +100,14 @@
|
|||||||
- always
|
- always
|
||||||
- name: set local_ip fact (is_metal)
|
- name: set local_ip fact (is_metal)
|
||||||
set_fact:
|
set_fact:
|
||||||
_local_ip: "{{ hostvars[inventory_hostname]['ansible_' + _overlay_network.bridge|default(ansible_default_ipv4['interface'])|replace('-', '_')]['ipv4']['address']|default(ansible_ssh_host) }}"
|
_local_ip: "{{ hostvars[inventory_hostname]['ansible_' + _overlay_network.bridge|default(ansible_default_ipv4['interface'])|replace('-', '_')]['ipv4']['address']|default(ansible_host) }}"
|
||||||
when:
|
when:
|
||||||
- is_metal | bool
|
- is_metal | bool
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
- name: set local_ip fact (container)
|
- name: set local_ip fact (container)
|
||||||
set_fact:
|
set_fact:
|
||||||
_local_ip: "{{ _overlay_network.address|default(ansible_ssh_host) }}"
|
_local_ip: "{{ _overlay_network.address|default(ansible_host) }}"
|
||||||
when:
|
when:
|
||||||
- not is_metal | bool
|
- not is_metal | bool
|
||||||
tags:
|
tags:
|
||||||
|
@ -141,7 +141,7 @@
|
|||||||
- always
|
- always
|
||||||
- name: Set nova management address (unknown management network)
|
- name: Set nova management address (unknown management network)
|
||||||
set_fact:
|
set_fact:
|
||||||
management_address: "{{ ansible_ssh_host }}"
|
management_address: "{{ ansible_host }}"
|
||||||
when:
|
when:
|
||||||
- "management_address is undefined"
|
- "management_address is undefined"
|
||||||
tags:
|
tags:
|
||||||
|
@ -60,9 +60,9 @@
|
|||||||
{% if physical_host is defined
|
{% if physical_host is defined
|
||||||
and hostvars[i]['physical_host'] is defined
|
and hostvars[i]['physical_host'] is defined
|
||||||
and physical_host == hostvars[i]['physical_host'] -%}
|
and physical_host == hostvars[i]['physical_host'] -%}
|
||||||
{% if _var.append(dict(host=hostvars[i]['ansible_ssh_host'], priority=100)) -%}{% endif -%}
|
{% if _var.append(dict(host=hostvars[i]['ansible_host'], priority=100)) -%}{% endif -%}
|
||||||
{% else -%}
|
{% else -%}
|
||||||
{% if _var.append(dict(host=hostvars[i]['ansible_ssh_host'], priority=50)) -%}{% endif -%}
|
{% if _var.append(dict(host=hostvars[i]['ansible_host'], priority=50)) -%}{% endif -%}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
{{ _var }}
|
{{ _var }}
|
||||||
|
Loading…
Reference in New Issue
Block a user