--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
If you are going this far, why not use "service puppet stop"? That sounds safer to me.
I believe puppet finishes the current catalog run when it receives a
SIGTERM.
--
Russell A Jackson <r...@csub.edu>
Network Analyst
California State University, Bakersfield
Having some issues disabling puppet. I want to use scripts to update RPM's, and obviously you need to quiesce puppet first.
The pid file directory is empty:[pax] app01 ~:# ls -l /var/run/puppet/total 0Puppet is stopped:[pax] app01 ~:# service puppet statuspuppetd is stoppedReally really stopped:[pax] app01 ~:# ps -ef | grep puppetroot 13079 7958 0 21:27 pts/0 00:00:00 grep puppetSo, I start puppet:[pax] app01 ~:# service puppet startStarting puppet: [ OK ]The pid file exists, and it's pid matches the running puppet:[pax] app01 ~:# cat /var/run/puppet/agent.pid13612[pax] app01 ~:# ps -ef | grep puppetroot 13612 1 22 21:28 ? 00:00:08 /usr/bin/ruby /usr/sbin/puppetdroot 13978 7958 0 21:28 pts/0 00:00:00 grep puppetAnd, then I try and disable puppet:[pax] app01 ~:# puppetd disableCould not prepare for execution: Could not create PID file: /var/run/puppet/agent.pidWhat's up with that?
This is puppet 2.6.1.Doug.
> On Thu, Oct 21, 2010 at 2:30 PM, Douglas Garstang <
> doug.g...@gmail.com > wrote:
>
>
>
> Having some issues disabling puppet. I want to use scripts to update
> RPM's, and obviously you need to quiesce puppet first.
>
>
> It does look like you may have found a bug around disabling (be great
> to see a bug report once you've nailed it down in this thread) but is
> it possible you can achieve what you want with a pre-run hook Douglas?
Related bug http://projects.puppetlabs.com/issues/3757
--
R.I.Pienaar
Shouldn't that be:
puppetd --disable
instead of
puppetd disable
(notice the missing double dash)
--
Brice Figureau
My Blog: http://www.masterzen.fr/