Merge "Fix etcd when Kuryr is disabled"
This commit is contained in:
commit
144b3ecb03
@ -14,16 +14,12 @@ etcd_services:
|
|||||||
ETCD_INITIAL_ADVERTISE_PEER_URLS: "{{ internal_protocol }}://{{ api_interface_address }}:{{ etcd_peer_port }}"
|
ETCD_INITIAL_ADVERTISE_PEER_URLS: "{{ internal_protocol }}://{{ api_interface_address }}:{{ etcd_peer_port }}"
|
||||||
ETCD_LISTEN_PEER_URLS: "{{ internal_protocol }}://{{ api_interface_address }}:{{ etcd_peer_port }}"
|
ETCD_LISTEN_PEER_URLS: "{{ internal_protocol }}://{{ api_interface_address }}:{{ etcd_peer_port }}"
|
||||||
ETCD_INITIAL_CLUSTER_TOKEN: "{{ etcd_cluster_token }}"
|
ETCD_INITIAL_CLUSTER_TOKEN: "{{ etcd_cluster_token }}"
|
||||||
ETCD_INITIAL_CLUSTER: "{% for host in groups['etcd'] %}{{ hostvars[host]['ansible_hostname'] }}={{ internal_protocol }}://{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ etcd_peer_port }}{% if not loop.last %},{% endif %}{% endfor %}"
|
ETCD_INITIAL_CLUSTER: "{% for host in etcd_hosts %}{{ hostvars[host]['ansible_hostname'] }}={{ internal_protocol }}://{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ etcd_peer_port }}{% if not loop.last %},{% endif %}{% endfor %}"
|
||||||
ETCD_INITIAL_CLUSTER_STATE: "new"
|
ETCD_INITIAL_CLUSTER_STATE: "new"
|
||||||
ETCD_OUT_FILE: "/var/log/kolla/etcd/etcd.log"
|
ETCD_OUT_FILE: "/var/log/kolla/etcd/etcd.log"
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
||||||
image: "{{ etcd_image_full }}"
|
image: "{{ etcd_image_full }}"
|
||||||
host_in_groups: >-
|
host_in_groups: "{{ inventory_hostname in etcd_hosts }}"
|
||||||
{{
|
|
||||||
inventory_hostname in groups['control']
|
|
||||||
or (enable_kuryr | bool and inventory_hostname in groups['compute'])
|
|
||||||
}}
|
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ node_config_directory }}/etcd/:{{ container_config_directory }}/:ro"
|
- "{{ node_config_directory }}/etcd/:{{ container_config_directory }}/:ro"
|
||||||
- "/etc/localtime:/etc/localtime:ro"
|
- "/etc/localtime:/etc/localtime:ro"
|
||||||
@ -39,3 +35,6 @@ etcd_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_nam
|
|||||||
etcd_tag: "{{ openstack_release }}"
|
etcd_tag: "{{ openstack_release }}"
|
||||||
etcd_image_full: "{{ etcd_image }}:{{ etcd_tag }}"
|
etcd_image_full: "{{ etcd_image }}:{{ etcd_tag }}"
|
||||||
etcd_dimensions: "{{ default_container_dimensions }}"
|
etcd_dimensions: "{{ default_container_dimensions }}"
|
||||||
|
|
||||||
|
# List of hosts running etcd.
|
||||||
|
etcd_hosts: "{{ groups['control'] + (groups['compute'] if enable_kuryr | bool else []) }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user