diff --git a/salt/libvirt/init.sls b/salt/libvirt/init.sls index 4321fdfb1..3e21089b2 100644 --- a/salt/libvirt/init.sls +++ b/salt/libvirt/init.sls @@ -18,6 +18,7 @@ include: - libvirt.64962 - libvirt.packages - libvirt.ssh.users + - salt.mine_functions install_libvirt: pkg.installed: @@ -99,6 +100,8 @@ down_original_mgmt_interface: - unless: - nmcli -f GENERAL.CONNECTION dev show {{ pillar.host.mainint }} | grep bridge-slave-{{ pillar.host.mainint }} - order: last + - onchanges_in: + - file: mine_functions # virtlogd service may not restart following reboot without this #semanage permissive -a virtlogd_t diff --git a/salt/salt/mine_functions.sls b/salt/salt/mine_functions.sls index 3b81fd4a3..6fc6fcb49 100644 --- a/salt/salt/mine_functions.sls +++ b/salt/salt/mine_functions.sls @@ -26,3 +26,9 @@ mine_functions: x509.get_pem_entries: - glob_path: '/etc/pki/ca.crt' {% endif -%} + +mine_update_mine_functions: + module.run: + - mine.update: [] + - onchanges: + - file: mine_functions