From 288ab590ff7f6857d03c04cad4b7606565e06a79 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 23 Oct 2024 10:05:14 +0000 Subject: automatic import of puppet --- puppet-nm-dispatcher.systemd | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 puppet-nm-dispatcher.systemd (limited to 'puppet-nm-dispatcher.systemd') 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 || : -- cgit v1.2.3