f85b78
#!/bin/bash
f85b78
#
f85b78
# Restart puppet on network changes to pickup changes to /etc/resolv.conf
f85b78
#
f85b78
# https://projects.puppetlabs.com/issues/2776
f85b78
# https://bugzilla.redhat.com/532085
f85b78
f85b78
[[ $2 =~ ^(up|down)$ ]] && /bin/systemctl condrestart puppetagent.service || :