Add lxc3 compatibility to tests
lxc3 deprecates many legacy config keys [1]. [1] https://discuss.linuxcontainers.org/t/lxc-2-1-has-been-released/487 Depends-On: https://review.openstack.org/#/c/586898 Change-Id: I2947a633ea256460db4f43f7921d20d6dfec5aab
This commit is contained in:
parent
c6ffb8a729
commit
0d770a8b22
|
@ -24,3 +24,11 @@ container_networks:
|
|||
physical_host: localhost
|
||||
properties:
|
||||
service_name: "{{ inventory_hostname }}"
|
||||
|
||||
lxc2_container_config_list:
|
||||
- 'lxc.aa_profile=unconfined'
|
||||
|
||||
lxc3_container_config_list:
|
||||
- 'lxc.apparmor.profile=unconfined'
|
||||
|
||||
lxc_container_config_list: "{{ lookup('pipe', 'lxc-info --version || echo 2.0.0') is version_compare('3.0.0', 'lt') | ternary(lxc2_container_config_list, lxc3_container_config_list) }}"
|
||||
|
|
|
@ -27,8 +27,7 @@
|
|||
- name: Use the unconfined aa profile
|
||||
lxc_container:
|
||||
name: "{{ container_name }}"
|
||||
container_config:
|
||||
- "lxc.aa_profile=unconfined"
|
||||
container_config: "{{ lxc_container_config_list }}"
|
||||
delegate_to: "{{ physical_host }}"
|
||||
|
||||
- name: Set mount path for kernel modules (Ubuntu)
|
||||
|
|
Loading…
Reference in New Issue