Prevent First Run - Puppet Install
Is there a way in Windows to prevent the first run that auto-executes after you install?
Set the MSI property PUPPET_AGENT_STARTUP_MODE=Manual during installation. See https://docs.puppetlabs.com/guides/installpuppet/installwindows.html#automated-installation for more information.
I am trying to set it up so that the service will automatically run, but that it will not automatically execute a
puppet agent --test right after install.
Our users want the service to be Automatic as it is default, but they want to be able to watch the logging on the very first time they run it. I suppose I could just add some lines to tell puppet to turn itself to automatic?
That way when they install it , it will get installed as Manual, so they can watch it run the first time through, and then when they initiate the first run, it would then set puppet to Auto. Think that would be the best course of action?
I did have an issue doing that, but there's a simple workaround. Not sure if it's been fixed in later versions of the Puppet Agent install. As my ticket is still open, I assume not.
Workaround; Run MD "%PROGRAMDATA%\PuppetLabs\puppet\var\state\graphs" after you install the puppet agent.
Asked: 2014-09-09 14:08:33 -0500
Seen: 182 times
Last updated: Sep 15 '14