diff options
Diffstat (limited to 'puppet-nm-dispatcher.systemd')
-rw-r--r-- | puppet-nm-dispatcher.systemd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet-nm-dispatcher.systemd b/puppet-nm-dispatcher.systemd new file mode 100644 index 0000000..3e5eeee --- /dev/null +++ b/puppet-nm-dispatcher.systemd @@ -0,0 +1,8 @@ +#!/bin/bash +# +# Restart puppet on network changes to pickup changes to /etc/resolv.conf +# +# https://projects.puppetlabs.com/issues/2776 +# https://bugzilla.redhat.com/532085 + +[[ $2 =~ ^(up|down)$ ]] && /bin/systemctl condrestart puppetagent.service || : |