Possible to make Puppet run only once after deployment?

Latest response

Is there a way to configure Satellite or the kickstart scripts to configure Puppet to only run once after the reboot? I'm sure there's a more elegant solution than creating a script or playbook to run a while after the reboot when Puppet fires up and applies. The puppet scripts were in place to perform the configurations, lockdowns, etc. for our generic build according to policies, but some of the changes to be made for post deployment will get wiped out when Puppet runs again.

Responses

Sure. You can

  • Update the puppet provisioning template to systemctl disable puppet, to keep the agent from running
  • Make a startup script or systemd unit that runs puppet agent --test --verbose (or similar) as a one shot basis
  • Ensure said script/unit is deployed during provisioning.
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.