Change Request: /etc/hosts on hosted2

Todd Zullinger tmz at pobox.com
Thu May 20 14:13:11 UTC 2010


Ricky Zhou wrote:
> +1, use sudo /usr/sbin/puppetd --disable to disable puppet there.
> Don't forget to reenable it later though.

Where I work we have nagios monitoring puppet (via the state.yaml
files, which Seth mentioned in IRC I see).  And as part of that check,
we read the contents /var/lib/puppet/state/puppetdlock, if there are
any, and display them in nagios.

When an admin needs to temporarily disable puppet, they use (a
slightly overengineered) script that drops the reason and their uid
into the lock file.  The nagios check then knows it's disabled
intentionally and only warns rather than going critical if puppet
hasn't run in over X hours.  It also displays nicely in the web
interface e.g.:

    WARN: Puppet is disabled: Testing hosted2 changes (codeblock)

This has been very handy for the various admins to keep track of not
only when puppet is disabled but who did it and why.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Careful. We don't want to learn from this.
    -- Calvin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20100520/980be731/attachment.bin 


More information about the infrastructure mailing list