Merge "Add cap NET_ADMIN for ironic_dnsmasq"
This commit is contained in:
commit
f27ca1a395
@ -51,6 +51,8 @@ ironic_services:
|
||||
container_name: ironic_dnsmasq
|
||||
group: ironic-inspector
|
||||
enabled: true
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
image: "{{ ironic_dnsmasq_image_full }}"
|
||||
volumes:
|
||||
- "{{ node_config_directory }}/ironic-dnsmasq/:{{ container_config_directory }}/:ro"
|
||||
|
@ -103,6 +103,7 @@
|
||||
name: "{{ service.container_name }}"
|
||||
image: "{{ service.image }}"
|
||||
volumes: "{{ service.volumes }}"
|
||||
cap_add: "{{ service.cap_add }}"
|
||||
when:
|
||||
- action != "config"
|
||||
- inventory_hostname in groups[service.group]
|
||||
|
@ -196,6 +196,7 @@
|
||||
name: "{{ item.value.container_name }}"
|
||||
image: "{{ item.value.image }}"
|
||||
privileged: "{{ item.value.privileged|default(False) }}"
|
||||
cap_add: "{{ item.value.cap_add|default([]) }}"
|
||||
volumes: "{{ item.value.volumes }}"
|
||||
register: check_ironic_containers
|
||||
when:
|
||||
|
Loading…
x
Reference in New Issue
Block a user