How to set puppet runintervel to neverrun?

41 views
Skip to first unread message

Ayyanar

unread,
Aug 17, 2015, 5:38:34 AM8/17/15
to Puppet Users
I don't want to fetch the configuration for particular interval.

example default runintervel = 30min.
I want to never fetch the configuration.
How to set this value.

Martin Alfke

unread,
Aug 17, 2015, 6:37:23 AM8/17/15
to puppet...@googlegroups.com
The “default_runinterval” only has a meaning when you have the puppet agent running.
Maybe you want to ensure the service is stopped and removed from run levels?

service { ‘puppet’:
ensure => stopped,
enable => false,
}

or: (from defaults.rb):
:runinterval => {
:default => "30m",
:type => :duration,
:desc => "How often puppet agent applies the catalog.
Note that a runinterval of 0 means \"run continuously\" rather than
\"never run.\" If you want puppet agent to never run, you should start
it with the `--no-client` option. #{AS_DURATION}",
},


> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0f170975-28a0-438f-a88f-45684bf54fc8%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Ayyanar

unread,
Aug 18, 2015, 2:08:00 AM8/18/15
to Puppet Users


On Monday, 17 August 2015 16:07:23 UTC+5:30, Martin Alfke wrote:

On 17 Aug 2015, at 11:38, Ayyanar <ayyan...@gmail.com> wrote:

> I don't want to fetch the configuration for particular interval.
>
> example default runintervel = 30min.
> I want to never fetch the configuration.
> How to set this value.
>
The “default_runinterval” only has a meaning when you have the puppet agent running.
Maybe you want to ensure the service is stopped and removed from run levels?

service { ‘puppet’:
  ensure => stopped,
  enable => false,
}

or: (from defaults.rb):
    :runinterval => {
      :default  => "30m",
      :type     => :duration,
      :desc     => "How often puppet agent applies the catalog.
          Note that a runinterval of 0 means \"run continuously\" rather than
          \"never run.\" If you want puppet agent to never run, you should start
          it with the `--no-client` option. #{AS_DURATION}",
    },



Hi Martin


Path => /etc/puppet/manifest/site.pp

In main site.pp file contain these scripts.
node "agent-node-domain" {
         file { "/var/lib/test":
                ensure => "directory",
                owner => ayyanar,
                group => ayyanar,
                mode => "755",
                recurse => true,
               
        }

}

This configuration is automatically fetched every 30 min from agent.  I don't want to check the master every 30 min.  I want to set the agent  to "never-run".



I started the puppet agent

{
[ayyanar@h1 ~]$ sudo service puppet start --no-client
Starting puppet agent:                                     [  OK  ]
[ayyanar@h1 ~]$
}

Is this correct method. I started the puppet agent with --no-client but it is again automatically fetch the configuration. I don't know why. How to solve this.


Thanks,
Ayyanar

Reply all
Reply to author
Forward
0 new messages