Search code examples
puppetforeman

puppetrun is automatically called in foreman for every 3 min. how to stop this


Please check the attached screenshot, puppetrun is called repeatedly for every 3 min and its keep on running certain critical services repeatedly. I want puppetrun to be called on demand. not an automated call like this. In puppet.conf file, Do I have to enable any parameters to stop this repeated puppetrun invoke ? or I have to make any changes in foreman ? or is it the puppetmaster triggering this call on all clients ?

enter image description here


Solution

  • Do you mean every 30 minutes? The screenshot shows only three runs, possibly within a two hour period.

    Usually the Puppet agent is running as a service which can be stopped and disabled - commands vary depending on your OS. For a systemd-based OS:

    systemctl stop puppet
    systemctl disable puppet
    

    service puppet stop should at least stop it on others, check your OS docs for commands to disable the service at startup.

    However when using Puppet, it should be perfectly safe for the agent to run continually and ensure state. The catalog shouldn't be affecting a service every time it runs, it suggests an error.