Re: [Puppet Users] puppet push mode

2010-10-08 Thread Felix Frank
On 10/07/2010 09:01 PM, Mohamed Lrhazi wrote: > Am thinking about configrung my clients this way: > > 1: Daemonized puppet runs from init.d script as normal with this: > > [r...@chapeau ~]# cat /etc/sysconfig/puppet > ... > PUPPET_EXTRA_OPTS=--no-client > ... > > [r...@chapeau ~]# cat /etc/puppe

Re: [Puppet Users] puppet push mode

2010-10-07 Thread Mohamed Lrhazi
Am thinking about configrung my clients this way: 1: Daemonized puppet runs from init.d script as normal with this: [r...@chapeau ~]# cat /etc/sysconfig/puppet ... PUPPET_EXTRA_OPTS=--no-client ... [r...@chapeau ~]# cat /etc/puppet/puppet.conf [puppetd] report = true listen = true 2: A

Re: [Puppet Users] puppet push mode

2010-10-07 Thread Ryan Y. Coleman
> > From the 2.6.1 man page: > > > > test: Enable the most common options used for testing. > > These are +onetime+, +verbose+, +ignorecache, > > +no-daemonize+, and +no-usecacheonfailure+. > > > > > >> > >> Because --test is what we are using constantly he

Re: [Puppet Users] puppet push mode

2010-10-07 Thread Felix Frank
>>> I'm guessing that it will work if you run it with the -no-deamonize >>> option. >>> >>> You really don't want to use --test. That will have other effects. >> >> Patrick, >> >> could you elaborate on that? > > From the 2.6.1 man page: > > test: Enable the most common options used

Re: [Puppet Users] puppet push mode

2010-10-07 Thread Ryan Y. Coleman
- Original Message - > From: "Felix Frank" > To: puppet-users@googlegroups.com > Sent: Thursday, October 7, 2010 3:40:01 AM > Subject: Re: [Puppet Users] puppet push mode > On 10/07/2010 04:48 AM, Patrick wrote: > > I'm guessing that it will work

Re: [Puppet Users] puppet push mode

2010-10-07 Thread Patrick
On Oct 7, 2010, at 12:40 AM, Felix Frank wrote: > On 10/07/2010 04:48 AM, Patrick wrote: >> >> On Oct 6, 2010, at 5:20 PM, Mohamed Lrhazi wrote: >> >>> On Wed, Oct 6, 2010 at 7:33 PM, James Louis wrote: if an instance of puppetd is already running then you'll get that error message w

Re: [Puppet Users] puppet push mode

2010-10-07 Thread Felix Frank
On 10/07/2010 04:48 AM, Patrick wrote: > > On Oct 6, 2010, at 5:20 PM, Mohamed Lrhazi wrote: > >> On Wed, Oct 6, 2010 at 7:33 PM, James Louis wrote: >>> if an instance of puppetd is already running then you'll get that error >>> message when you try to start up another instance. also there may b

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Patrick
On Oct 6, 2010, at 5:20 PM, Mohamed Lrhazi wrote: > On Wed, Oct 6, 2010 at 7:33 PM, James Louis wrote: >> if an instance of puppetd is already running then you'll get that error >> message when you try to start up another instance. also there may be a >> puppetd.pid left from the last time it wa

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
all I know is you should probably only run one instance at a time. I'm kinda of a noob at this too so I hope I've been helpful. On Wed, Oct 6, 2010 at 7:20 PM, Mohamed Lrhazi wrote: > On Wed, Oct 6, 2010 at 7:33 PM, James Louis wrote: > > if an instance of puppetd is already running then you'll

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
On Wed, Oct 6, 2010 at 7:33 PM, James Louis wrote: > if an instance of puppetd is already running then you'll get that error > message when you try to start up another instance. also there may be a > puppetd.pid left from the last time it was ran. you would then have to > remove that pid file. >

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
if an instance of puppetd is already running then you'll get that error message when you try to start up another instance. also there may be a puppetd.pid left from the last time it was ran. you would then have to remove that pid file. On Wed, Oct 6, 2010 at 6:16 PM, Mohamed Lrhazi wrote: > On W

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
On Wed, Oct 6, 2010 at 7:07 PM, James Louis wrote: > sounds like you have puppetd already running That's right. I am trying to see if I can run puppetd in listen mode, permanently. AND, from shell/cron, run puppetd --noop. Goal: - Receive constant reports about what needs to run (from the noop p

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
sounds like you have puppetd already running On Wed, Oct 6, 2010 at 5:42 PM, Mohamed Lrhazi wrote: > The error when run without --test is: > > # puppetd --noop --onetime > Could not prepare for execution: Could not create PID file: > /var/lib/puppet/run/puppetd.pid > > > > On Wed, Oct 6, 2010

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
The error when run without --test is: # puppetd --noop --onetime Could not prepare for execution: Could not create PID file: /var/lib/puppet/run/puppetd.pid On Wed, Oct 6, 2010 at 6:40 PM, Mohamed Lrhazi wrote: > On Wed, Oct 6, 2010 at 6:33 PM, James Louis wrote: >> that sounds like how I w

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
On Wed, Oct 6, 2010 at 6:33 PM, James Louis wrote: > that sounds like how I would set it up > One little problem though It I try to run puppetd from command line (and I assume from cron) with --onetime and --noop, while the listner is running, I get this: # puppetd --noop --test notice: Ign

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
that sounds like how I would set it up On Wed, Oct 6, 2010 at 4:42 PM, Mohamed Lrhazi wrote: > I think I got it... > > - Run puppetd with --no-client and listen mode. Activate changes by > calling puppetrun > - From cron, run puppetd --noop on regular basis to report on the config. > > Would thi

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
I think I got it... - Run puppetd with --no-client and listen mode. Activate changes by calling puppetrun - From cron, run puppetd --noop on regular basis to report on the config. Would this be proper configuration or would it be an unsupported hack ? Thanks a lot. Mohamed. -- You received thi

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
On Wed, Oct 6, 2010 at 4:33 PM, James Louis wrote: > you have to use --no-client on the command line when running puppetd. I've > set it up in my /etc/sysconfig/puppet file on CentOS so it's pulled in as > part of PUPPET_EXTRAOPTS. > Thanks a lot. That seems to work Now I know how to run pupp

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
you have to use --no-client on the command line when running puppetd. I've set it up in my /etc/sysconfig/puppet file on CentOS so it's pulled in as part of PUPPET_EXTRAOPTS. On Wed, Oct 6, 2010 at 3:09 PM, Mohamed Lrhazi wrote: > On Wed, Oct 6, 2010 at 9:01 AM, James Louis wrote: > > I couldn'

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
On Wed, Oct 6, 2010 at 9:01 AM, James Louis wrote: > I couldn't find anything that said the setting of runinterval would affect > the stopping of pull. Ohad, I did find the no-client option and have it in > effect. It does appear to stop the pull. > That does not work for me... what version are y

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Peter Meier
> Is there a central location for Puppet documentation? I would be glad to > add/update the docs. Seems there should be a chapter/paragraph on using push > only. The wiki is good starting point to add content. And James recently pointed out how to get things to the curated documentation [1]. But I

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
Pete, Is there a central location for Puppet documentation? I would be glad to add/update the docs. Seems there should be a chapter/paragraph on using push only. Jim On Wed, Oct 6, 2010 at 8:16 AM, Peter Meier wrote: > On 10/06/2010 03:01 PM, James Louis wrote: > > I couldn't find anything tha

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Peter Meier
On 10/06/2010 03:01 PM, James Louis wrote: > I couldn't find anything that said the setting of runinterval would affect > the stopping of pull. Ohad, I did find the no-client option and have it in > effect. It does appear to stop the pull. can you look a ticket to improve documentation? Or even co

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
I couldn't find anything that said the setting of runinterval would affect the stopping of pull. Ohad, I did find the no-client option and have it in effect. It does appear to stop the pull. On Wed, Oct 6, 2010 at 7:53 AM, Ohad Levy wrote: > --no-client > > Ohad > > On Tue, Oct 5, 2010 at 3:33 P

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Ohad Levy
--no-client Ohad On Tue, Oct 5, 2010 at 3:33 PM, James Louis wrote: > Hello All, > > I am trying to put puppet into push mode only. The instructions I've seen > have said to put listen=true in puppet.conf but that doesn't seem to have > stopped the pull every 30 minutes. What else needs to be s

RE: [Puppet Users] puppet push mode

2010-10-06 Thread Byron Pezan
man puppet.conf --- runinterval How often puppetd applies the client configuration; in seconds. * Default: 1800 --- i would assume that an interval of 0 would prevent puppet from running periodically, perhaps someone else can correct me if i'm wrong. byron From: puppet-users@go