Portable one-liner to enable the Puppet noop mode

April 29, 2018, 2:08 a.m.
puppet resource augeas setnoop \
  "context=/files/etc/puppetlabs/puppet/puppet.conf/agent" \
  "changes=set noop true" \
&& { systemctl try-restart puppet || service puppet condrestart; }