Ask Your Question
0

How to tell if puppet ran manually or automatically.

asked 2015-03-04 11:40:16 -0500

tek0011 gravatar image

I had some nodes last night that ran when they werent suppose to. How can I tell what kicked them off?

puppet.conf run_interval is set to 1000y (dont ask).

I dont know if it accepts 1000y and perhaps reverts to 1000 hours? I have looked at every log I can look at and cant figure out where you tell if it was initiated automatically or manually

edit retag flag offensive close merge delete

Comments

The runinterval value can take years as units, although I haven't tried it with 1000y: https://docs.puppetlabs.com/references/latest/configuration.html#runinterval

GregLarkin gravatar imageGregLarkin ( 2015-03-04 18:15:48 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-04 13:48:37 -0500

mckownam gravatar image

Look for the puppet service running on the agent (which can be accidentally started by simply typing "puppet agent" instead of "puppet agent -t"). The master's logs should tell you which agents started up, so as long as you have permission to log into the agents themselves, you can check puppet's status as a service via the following methods:

Linux: Type "ps aux | grep puppet" on the agent. This will tell you whether or not a puppet service is running. Alternatively, use puppet to disable its own service by entering "puppet resource service puppet ensure=stopped enable=false"; this will make puppet incapable of demonizing by accident again and will stop a daemonized puppet service if one is running.

Windows: go to the start menu and either search for "services" or go to Administrative Tools > Services (there are other methods; it depends on your version of Windows). In the services Window, scroll down to the puppet agent. The puppet service is automatically enabled on Windows machines and needs to be manually set to 'disabled' if you do not want it to start up automatically.

edit flag offensive delete link more

Comments

I have discovered that Windows agents dont notify event viewer who started the agent. It should list SYSTEM vs. User but instead just report N/A. I will file an enhancement request.

tek0011 gravatar imagetek0011 ( 2015-03-05 06:08:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-03-04 11:40:16 -0500

Seen: 293 times

Last updated: Mar 04 '15