Ask Your Question
0

Puppet agent only run on demand on a windows agent

asked 2017-01-06 10:23:36 -0500

dj50x gravatar image

updated 2017-01-06 11:14:20 -0500

I have a large list of machine that I've deployed puppet agent on that are at customer location and could be very sensitive to changes. They are all running windows desktop OS's. I want to disable runinterval on all of them. I can't seem to figure out how to do that. The help section of the agent doesn't seem have any option that implies that might help with that. Runinterval doesn't seem to have numeric or boolean value to disable it. It says to use --no-client but that seems to be depreciated and wouldn't work on the windows service. There's a post stating to set daemonize to off for this however, the help documentation for puppet.conf implies that this option is already set to off on windows. Any suggestions? I assume this would be alot easier to accomplish. I'm surprised runinterval just doesn't accept a negative number to set it to 'off'.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-01-06 17:04:52 -0500

lavaman gravatar image

It wouldn't really make sense to have a service running that does nothing, which is what setting the runinterval as you suggest would do. The proper thing to do is to not run it as a service at all. You can do a puppet agent run without the service running at all, and that appears to be what you want.

edit flag offensive delete link more

Comments

I find that a little confusing. So I can simply turn off the windows service and I'll be able to run puppet the CLI or console? Without the service there should be no puppet agent process and without an agent process I don't see what the puppet master would connect to.

dj50x gravatar imagedj50x ( 2017-01-10 08:57:36 -0500 )edit

The agent connects to the master, not the other way around. You can do an ad-hoc (manual) puppet agent run and it will connect to the master just as it would if the service were running. The only thing different about the service is that it automatically runs periodically (every 30 min by default)

lavaman gravatar imagelavaman ( 2017-01-11 15:45:12 -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

1 follower

Stats

Asked: 2017-01-06 10:23:36 -0500

Seen: 39 times

Last updated: Jan 06