Merge pull request #70 from andymcc/container_group_fix
Fix container_group var for container playbooks
This commit is contained in:
commit
9823a18001
@ -18,7 +18,7 @@
|
|||||||
roles:
|
roles:
|
||||||
- container_create
|
- container_create
|
||||||
vars:
|
vars:
|
||||||
default_container_groups: "{{ groups[hostvars[inventory_hostname]['container_types']] }}"
|
default_container_groups: "{{ hostvars[inventory_hostname]['container_types'] }}"
|
||||||
container_groups: "{{ groups[container_group]|default(default_container_groups) }}"
|
container_groups: "{{ groups[container_group|default(default_container_groups)] }}"
|
||||||
|
|
||||||
- include: containers-setup.yml
|
- include: containers-setup.yml
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
vars_files:
|
vars_files:
|
||||||
- vars/config_vars/container_interfaces.yml
|
- vars/config_vars/container_interfaces.yml
|
||||||
vars:
|
vars:
|
||||||
default_container_groups: "{{ groups[hostvars[inventory_hostname]['container_types']] }}"
|
default_container_groups: "{{ hostvars[inventory_hostname]['container_types'] }}"
|
||||||
container_groups: "{{ groups[container_group]|default(default_container_groups) }}"
|
container_groups: "{{ groups[container_group|default(default_container_groups)] }}"
|
||||||
required_container_config_options:
|
required_container_config_options:
|
||||||
- "lxc.mount.entry=/openstack/log/{{ hostvars[item]['container_name'] }} var/log/{{ hostvars[item]['service_name'] }} none defaults,bind,rw 0 0"
|
- "lxc.mount.entry=/openstack/log/{{ hostvars[item]['container_name'] }} var/log/{{ hostvars[item]['service_name'] }} none defaults,bind,rw 0 0"
|
||||||
- "lxc.mount.entry=/openstack/monitoring monitoring none defaults,bind,rw 0 0"
|
- "lxc.mount.entry=/openstack/monitoring monitoring none defaults,bind,rw 0 0"
|
||||||
|
@ -19,5 +19,5 @@
|
|||||||
roles:
|
roles:
|
||||||
- container_destroy
|
- container_destroy
|
||||||
vars:
|
vars:
|
||||||
default_container_groups: "{{ groups[hostvars[inventory_hostname]['container_types']] }}"
|
default_container_groups: "{{ hostvars[inventory_hostname]['container_types'] }}"
|
||||||
container_groups: "{{ groups[container_group]|default(default_container_groups) }}"
|
container_groups: "{{ groups[container_group|default(default_container_groups)] }}"
|
||||||
|
@ -19,5 +19,5 @@
|
|||||||
roles:
|
roles:
|
||||||
- container_restart
|
- container_restart
|
||||||
vars:
|
vars:
|
||||||
default_container_groups: "{{ groups[hostvars[inventory_hostname]['container_types']] }}"
|
default_container_groups: "{{ hostvars[inventory_hostname]['container_types'] }}"
|
||||||
container_groups: "{{ groups[container_group]|default(default_container_groups) }}"
|
container_groups: "{{ groups[container_group|default(default_container_groups)] }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user