Skip to content

Commit

Permalink
Merge "Remove chrony package if containerized chrony is enabled" into…
Browse files Browse the repository at this point in the history
… stable/ussuri
  • Loading branch information
Zuul authored and openstack-gerrit committed Jun 17, 2020
2 parents cd553f1 + 59b8b07 commit a7666a5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/roles/baremetal/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ ubuntu_pkg_removals:
- lxc
- libvirt-bin
- open-iscsi
- "{% if enable_chrony | bool %}chrony{% endif %}"

redhat_pkg_removals:
- libvirt
- libvirt-daemon
- iscsi-initiator-utils
- "{% if enable_chrony | bool %}chrony{% endif %}"

# Path to a virtualenv in which to install python packages. If None, a
# virtualenv will not be used.
Expand Down
16 changes: 16 additions & 0 deletions ansible/roles/baremetal/tasks/post-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,22 @@
- ansible_distribution == "Ubuntu"
- apparmor_libvirtd_profile.stat.exists

- name: Get stat of chronyd apparmor profile
stat:
path: /etc/apparmor.d/usr.sbin.chronyd
register: apparmor_chronyd_profile
when:
- ansible_os_family == "Debian"
- enable_chrony | bool

- name: Remove apparmor profile for chrony
command: apparmor_parser -R /etc/apparmor.d/usr.sbin.chronyd
become: True
when:
- ansible_os_family == "Debian"
- enable_chrony | bool
- apparmor_chronyd_profile.stat.exists

- name: Create docker group
group:
name: docker
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
fixes:
- |
Removing chrony package and AppArmor profile from docker host if
containerized chrony is enabled.
`LP#1882513 <https://bugs.launchpad.net/kolla-ansible/+bug/1882513>`__

0 comments on commit a7666a5

Please sign in to comment.