-1

Is it possible to disable puppet runs (every 30 minutes) but it should be still listening?

I'm setting up puppetkick or mcollective. So the agents should be still running and listening so I can push updates but should not automatically run to look for updates, not even once (runinterval).

EDIT:

The answers in the topic (link below) doesn't address or resolve the problem. They're onto disabling agent, disabling start-up, or change run interval. Also the daemonize=false, just hangs puppet init start, nothing happens.

I want the agent to be in listening mode, if its possible

How to disable automatic scheduled Puppet runs that occur every 30 minutes?

anon
  • 9

3 Answers3

2

MCollective does not connect directly to the puppet daemon.
It uses it's own daemon (mcollectived) which will get commands from its configured queue server.

Puppet does not need to run at all in your setup.
Runs will be triggered via mco puppet runonce ....

faker
  • 17,686
0

puppetkick is deprecated, so don't build on that :) If you're using FOSS Puppet, you want to use mcollective. Configure puppet to not start the agent (however you do that) and mcollective will have no trouble running the agent in runonce mode. The official docs for that (linked to by the deprecation warning) are here. If you're using PE you can still use mcollective, or (in sufficiently recent versions) use puppet jobs with the orchestrator.

Bill Weiss
  • 11,266
0

You can disable puppet agent schedule typing: /opt/puppetlabs/bin/puppet resource service puppet ensure=stopped enable=false

So, agent only runs when you invoque directly from konsole: puppet agent -t