Merge "Add lxc.haltsignal to container configs"
This commit is contained in:
commit
52ac75ca14
@ -173,8 +173,7 @@
|
|||||||
mode: "0755"
|
mode: "0755"
|
||||||
delegate_to: "{{ physical_host }}"
|
delegate_to: "{{ physical_host }}"
|
||||||
|
|
||||||
# This is being defined due to an issue with dangling veth pairs.
|
- name: Defines a pre, post, and haltsignal configs
|
||||||
- name: Defines a pre and post hook script
|
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: "/var/lib/lxc/{{ inventory_hostname }}/config"
|
dest: "/var/lib/lxc/{{ inventory_hostname }}/config"
|
||||||
line: "{{ item }}"
|
line: "{{ item }}"
|
||||||
@ -182,6 +181,7 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- "lxc.hook.pre-start = /var/lib/lxc/{{ inventory_hostname }}/veth-cleanup.sh"
|
- "lxc.hook.pre-start = /var/lib/lxc/{{ inventory_hostname }}/veth-cleanup.sh"
|
||||||
- "lxc.hook.post-stop = /var/lib/lxc/{{ inventory_hostname }}/veth-cleanup.sh"
|
- "lxc.hook.post-stop = /var/lib/lxc/{{ inventory_hostname }}/veth-cleanup.sh"
|
||||||
|
- "lxc.haltsignal = SIGRTMIN+4"
|
||||||
delegate_to: "{{ physical_host }}"
|
delegate_to: "{{ physical_host }}"
|
||||||
|
|
||||||
- name: Run veth wiring
|
- name: Run veth wiring
|
||||||
|
Loading…
Reference in New Issue
Block a user