Windows puppet agent not making any changes

asked 2017-05-24 10:05:29 -0500

fr0stxm gravatar image


I have setup Puppet OS on a Linux server in AWS; where I have created manifests to be ran on my environments, as you would expect. The manifests will do very simple tasks, and against my Windows machines, they will run a powershell script.

The windows agents have been built using Packer, which has installed the agent using Chocolatey; the puppet.conf file (on the agent) is very skinny and contains the defaults; installation completes without any visible issues.

My issue is that; I can see the Windows agent checking into the Linux server; by tailing the logs:

2017-05-24 15:56:38,261 INFO  [qtp32244594-69] [puppetserver] Puppet Caching node for
2017-05-24 15:56:40,785 INFO  [qtp32244594-67] [puppetserver] Puppet Caching node for
2017-05-24 15:56:40,900 INFO  [qtp32244594-67] [puppetserver] Scope(Class[Company::Roles::Iiswebserver]) Installed started on as class [company::roles::iiswebserver]
2017-05-24 15:56:40,943 INFO  [qtp32244594-67] [puppetserver] Puppet Compiled catalog for in environment production in 0.15 seconds

Now whilst it has checked in, and visible "done" something, it hasn't actually done anything. If I execute the puppet agent manually on the Windows machine or run

puppet agent -t --debug --verbose

I can see it perform the same check in, and then actually complete the manifest. However, it doesn't do anything if left to its own devices. Have I done something wrong?

edit retag flag offensive close merge delete