![Eduardo Gonzalez](/assets/img/avatar_default.png)
Kuryr need etcd on each compute node to store network data. Etcd is only deployed in controller nodes at this moment. Also this change remove and useless bootstrap tasks. Depends-On: I9c6c876773288c2f951966498db0ff8af090ac20 Change-Id: I8a84334e831fb15f6cbdd3bc34d2159638df6b85 Closes-Bug: #1697699
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
---
|
|
- name: Ensuring config directories exist
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item.key }}"
|
|
state: "directory"
|
|
recurse: yes
|
|
when:
|
|
- item.value.enabled | bool
|
|
- item.value.host_in_groups | bool
|
|
with_dict: "{{ etcd_services }}"
|
|
|
|
- name: Copying over config.json files for services
|
|
template:
|
|
src: "{{ item.key }}.json.j2"
|
|
dest: "{{ node_config_directory }}/{{ item.key }}/config.json"
|
|
register: etcd_config_jsons
|
|
when:
|
|
- item.value.enabled | bool
|
|
- item.value.host_in_groups | bool
|
|
with_dict: "{{ etcd_services }}"
|
|
notify:
|
|
- Restart etcd container
|
|
|
|
- name: Check etcd containers
|
|
kolla_docker:
|
|
action: "compare_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ item.value.container_name }}"
|
|
image: "{{ item.value.image }}"
|
|
volumes: "{{ item.value.volumes }}"
|
|
register: check_etcd_containers
|
|
when:
|
|
- action != "config"
|
|
- item.value.enabled | bool
|
|
- item.value.host_in_groups | bool
|
|
with_dict: "{{ etcd_services }}"
|
|
notify:
|
|
- Restart etcd container
|