Re: [Puppet Users] Re: Testing if a puppet class is going to be installed

2011-07-07 Thread Disconnect
On Thu, Jul 7, 2011 at 2:10 PM, Keith Minkler wrote: > Thanks Luke, > > > This use case comes up a lot. There are some functions but > > historically they have not been reliable due to Puppet's random parse > > order for resources and classes. > > This is the trouble I had with the defined() func

Re: [Puppet Users] Re: Client updates

2011-05-26 Thread Disconnect
Most of that is a documentation gap - you need to go under settings (in the new version - far-right dropdown in new and old) and populate the various forms there. Things like distributions, host groups, etc.. The #foreman channel on freenode or the mailing list are both really good resources. On T

Re: [Puppet Users] Client updates

2011-05-25 Thread Disconnect
Foreman can email error reports automatically. (Without having to use the GUI..) IIRC you can also make it email actions (changes) - if not, it shouldn't be that hard to add. We use nagios to check puppet's state file for age - if it is too old, puppet hasn't run. Between those two, afaict, we're

Re: [Puppet Users] Re: chicken and the egg.. pushing custom facter plugins for use within puppet..

2011-05-10 Thread Disconnect
t find it.. :/ On Thu, May 5, 2011 at 12:44 AM, Michael Dodwell wrote: > > We work around it by checking the existence of the fact/value before > using it > > Is this done in the template file or somewhere else? Can you please > supply dummy code as an example? > > Thanks > >

Re: [Puppet Users] chicken and the egg.. pushing custom facter plugins for use within puppet..

2011-05-04 Thread Disconnect
Although good advice (pluginsync is win) that still doesn't solve the chicken/egg problem - puppet won't evaluate the new facts on the first run. We work around it by checking the existence of the fact/value before using it. Not ideal but it works. (And on brand new hosts, we run puppetd -t --tags

Re: [Puppet Users] Need ideas on how to deploy custom software package... Stages?

2011-03-08 Thread Disconnect
class app { exec { "prescript": refreshonly => true, command => .., } package { package1: ensure => installed, require => Exec["prescript"], notify => Exec["postscript"] } package { package2: ensure => installed, require => Package["package1"], notify => Exec["postscript"] } # or requ

Re: [Puppet Users] ldap.conf modification problem

2011-03-08 Thread Disconnect
If you are changing how the system sees users (eg before the run, 'id user' would fail) then the "some provider" is puppet. The workaround is to do two runs - a bootstrap base environment that sets up ldap, then a second run that uses those users. On Thu, Feb 17, 2011 at 6:50 AM, Felix Frank < fe

Re: [Puppet Users] Force resigning of existing certificates

2011-03-08 Thread Disconnect
Alternately, running the puppetca clean before starting the new client will result in the standard unsigned behavior. (I do think its pretty broken that trying once with the wrong cert poisons the client - if it is an attack, they can just wipe the client cert again, and if it isn't - eg in your c

Re: [Puppet Users] Re: Puppet features

2011-03-01 Thread Disconnect
As far as guis and provisioning, those are covered by Foreman (under heavy development at http://theforeman.org/) (It doesn't do class building either, afaik nothing does right now.) On Tue, Mar 1, 2011 at 1:28 PM, Luis Miguel Silva < luismiguelferreirasi...@gmail.com> wrote: > Thank you so much

Re: [Puppet Users] Two file mode bugs in puppet 0.25?

2011-02-02 Thread Disconnect
On Wed, Feb 2, 2011 at 3:21 AM, Felix Frank wrote: > > file { "/usr/src/php": > > ensure => directory, > > } > > > > This results in /usr/src/php being created as mode 400. One could argue > > this is not a bug since 400 is the default mode. However on its second > > run puppet changes th

Re: [Puppet Users] Small documentation addition

2010-12-22 Thread Disconnect
tion contribution by anyone not already a puppet developer is very high, and this isn't the first time that "I have a minor fix for you" has been answered this way. On Wed, Dec 22, 2010 at 11:28 AM, Nigel Kersten wrote: > On Wed, Dec 22, 2010 at 7:54 AM, Disconnect > wrote: >

Re: [Puppet Users] Small documentation addition

2010-12-22 Thread Disconnect
Wait, lets see if I understand the requirements for a 5 word addition to the documentation, from a user who doesn't already use git: 1: go to the page below 2: discover it requires git 3: figure out what git is 4: install a git client 5: figure out how to use same 6: clone the entire repo (I just c

Re: [Puppet Users] if then statement within file resource

2010-12-17 Thread Disconnect
You can do it magically with source, not sure about template though. source => ["puppet:///system/sudoers_$operatingsysstemrelease","puppet:///system/sudoers"] (it will look for them in order. We have several that go hostname, $lsbdistcodename, generic.) If it doesn't work for template, you can d

Re: [Puppet Users] Re: puppetmaster 100%cpu usage on 2.6 (not on 0.24)

2010-12-15 Thread Disconnect
.com> wrote: > On 15/12/10 20:24, Disconnect wrote: > > On Wed, Dec 15, 2010 at 2:14 PM, Brice Figureau > > mailto:brice-pup...@daysofwonder.com>> > > wrote: > >> > >> Note: we were talking about the puppet master taking 100% CPU, but > >> you

Re: [Puppet Users] Re: puppetmaster 100%cpu usage on 2.6 (not on 0.24)

2010-12-15 Thread Disconnect
On Wed, Dec 15, 2010 at 2:14 PM, Brice Figureau < brice-pup...@daysofwonder.com> wrote: > > Note: we were talking about the puppet master taking 100% CPU, but > you're apparently looking to the puppet agent, which is a different story. > The agent isn't taking cpu, it is hanging waiting for the ma

Re: [Puppet Users] Re: puppetmaster 100%cpu usage on 2.6 (not on 0.24)

2010-12-15 Thread Disconnect
Wed, Dec 15, 2010 at 1:35 PM, Disconnect wrote: > "me too". All the logs show nice quick compilations but the actual wall > clock to get anything done is HUGE. > > Dec 15 13:10:29 puppet puppet-master[31406]: Compiled catalog for > puppet.foo.com in environment production

Re: [Puppet Users] Re: puppetmaster 100%cpu usage on 2.6 (not on 0.24)

2010-12-15 Thread Disconnect
"me too". All the logs show nice quick compilations but the actual wall clock to get anything done is HUGE. Dec 15 13:10:29 puppet puppet-master[31406]: Compiled catalog for puppet.foo.com in environment production in 21.52 seconds Dec 15 13:10:51 puppet puppet-agent[8251]: Caching catalog for pup

Re: [Puppet Users] Variable of define is used more than once

2010-10-13 Thread Disconnect
Note that I didn't reply to the OP, I replied to Nigel's sarcasm. On Wed, Oct 13, 2010 at 10:43 AM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > On 10/13/2010 04:37 PM, Disconnect wrote: > >- lenny (stable) <http://packages.debian.org/lenny/puppet>

Re: [Puppet Users] Variable of define is used more than once

2010-10-13 Thread Disconnect
- lenny (stable) (admin): centralised configuration management for networks 0.24.5-3: all - lenny-backports (admin): centralised configuration management for networks 0.25.4-2~bpo50+1 [*backp

Re: [Puppet Users] Using puppet to update itself

2010-10-08 Thread Disconnect
We just use packages: package { "puppet": ensure => latest } On Fri, Oct 8, 2010 at 4:15 PM, Forrie wrote: > I'm just beginning with Puppet. One issue I've run into is updates. > As my nodes expand, updating each individual node via my manual method > becomes daunting. > > Could someone share

Re: [Puppet Users] Classes and Inheritence

2010-09-28 Thread Disconnect
You need to include or inherit the class that defines the service before you can notify it. (Or just redefine the service in the other module.) There is no link between smtpexternal and smtp. On Tue, Sep 28, 2010 at 12:15 PM, Matt Wallace wrote: > > Hi all, > > I'm going out of my mind trying to

Re: [Puppet Users] ANNOUNCE: Puppet 2.6.1 released!

2010-09-14 Thread Disconnect
On Mon, Sep 13, 2010 at 10:26 PM, James Turnbull wrote: > In the long Puppet tradition of fast releases and agile iteration comes > the 2.6.1 release! > > 2.6.1 is a maintenance release in the 2.6.x branch. > > It contains a number of functional and performance enhancements > including preliminary

Re: [Puppet Users] Push changes to clients

2010-08-13 Thread Disconnect
FYI there is a script around somewhere that works with puppetrun - it is a very lightweight daemon that just listens for puppetrun requests and launches the full daemon. On Fri, Aug 13, 2010 at 9:04 AM, Joe McDonagh wrote: > On 08/13/2010 05:05 AM, ScubaDude wrote: > >> I was wondering how to con

Re: [Puppet Users] Puppet and Andorid

2010-08-10 Thread Disconnect
layer of same.. Is there something I'm missing? (As an aside, 50 megs - only 3 shared - seems to be fairly standard for memory use when idle. That -screams- "not made for embedded" :) ..) On Tue, Aug 10, 2010 at 7:19 PM, Daniel Pittman wrote: > Disconnect writes: > >

Re: status of e-mail (Re: Re: [Puppet Users] Puppet and Andorid)

2010-08-10 Thread Disconnect
Enjoy your "off in the world", but how about not replying to list postings with this spam..? On Tue, Aug 10, 2010 at 10:34 AM, Joey B'Shalom wrote: > Hey, > > I’m often out in the world and only able to check email a couple of times > each day. I should be able to get back to you fairly soon, but

Re: [Puppet Users] Puppet and Andorid

2010-08-10 Thread Disconnect
Nothing that involves ruby counts as "scaling it down". At that point, you have so much spare ram and cpu that you are trying to use it all up somehow.. (That isn't a cut on ruby, although it does seem to be a little less efficient than, say, perl. The same thing would apply to any large interpret

Re: [Puppet Users] Re: Help with setting facts for MySQL replication

2010-07-28 Thread Disconnect
I use a custom fact in modules/mysql/lib/facter/server_id.rb: # Converts ip address to long for mysql id def get_mysql_id mysql_id = nil; mysql_id = Facter.ipaddress.split('.').inject(0) {|total,value| (total << 8 ) + value.to_i} end Facter.add("mysql_server_id") do setcode do

Re: [Puppet Users] header for puppet managed files

2010-06-21 Thread Disconnect
That is what we do (and we enforce it by convention rather than technically.) # MANAGED BY PUPPET! # /modules/foo/templates/bar.conf # ..any associated warnings, weirdness (eg template called from other module) etc On files that other groups might be touching, we add something like: # Changes WIL

Re: [Puppet Users] Nagios checks

2010-06-02 Thread Disconnect
I do a very simple check: # warn if the state files are 90 minutes old, critical at 150 minutes nagios::service { "puppet_running": check_command => "check_puppet_age!7500!9000!2048!2047", notifications_enabled => 0, } } check_puppet_age is: command_line => '/usr/li

Re: [Puppet Users] Re: Failed to generate additional resources using 'eval_generate': end of file reached

2010-03-25 Thread Disconnect
Ditto here, except since we're going through apache we get a huge query stream that starts with: Failed to generate additional resources using 'eval_generate': Error 502 on SERVER: 502 Proxy Error Proxy Error The proxy server received an invalid response from an upstream server. The proxy server

Re: [Puppet Users] Quiesce Puppet?

2010-03-23 Thread Disconnect
ls -l /var/lib/puppet/state/puppetdlock (path may vary..) If its 0 bytes, either you ran out of disk space or its --disable'd. If its got a pid, that is the puppet daemon pid that is running an update. If it is missing, either puppet is not running at all or it is not running an update. On Fri, M

Re: [Puppet Users] Re: Magazine article comparing CPU usage of Puppet vs. Cfengine

2010-02-23 Thread Disconnect
..or perhaps they used the native hosts type that exists to manage /etc/hosts entries? On Tue, Feb 23, 2010 at 5:55 PM, Jeff McCune wrote: > On Tue, Feb 23, 2010 at 12:58 PM, tobyriddell > wrote: > > The result was either to add entries to /etc/hosts or to confirm the > > contents of /etc/hosts

[Puppet Users] Re: Explicit Repo, Package ordering

2009-10-29 Thread Disconnect
;t exist.) Looks like its http://projects.reductivelabs.com/issues/1409 On Thu, Oct 29, 2009 at 6:45 AM, Thomas Bellman wrote: > > Disconnect top-posted thus: > >> ISTR trying that and having the same problems. >> >> User depends on class ldap-users. (So in theory, anything

[Puppet Users] Re: Explicit Repo, Package ordering

2009-10-28 Thread Disconnect
ug though.. On Wed, Oct 28, 2009 at 12:21 PM, Thomas Bellman wrote: > > Disconnect wrote: > >> In general, it seems like the best way to handle "must go first" >> bootstrap items like that is with environments. (We haven't gotten >> there yet, but we

[Puppet Users] Re: Explicit Repo, Package ordering

2009-10-27 Thread Disconnect
In general, it seems like the best way to handle "must go first" bootstrap items like that is with environments. (We haven't gotten there yet, but we're moving in that direction.) New node comes up in environment bootstrap, where there is a generic definition and 1 class that just grabs the bare

[Puppet Users] Re: copying file from multiple sources

2009-09-19 Thread Disconnect
On Fri, Sep 18, 2009 at 10:08 PM, Luke Schierer wrote: > On Sep 18, 2009, at 18:30 EDT, Disconnect wrote: >> (Wow, hi Luke! LTNT!) > Yes, it has! >> >> The standard way to do that is: >> source => >> ["puppet:///foo/file-$hostname","puppet

[Puppet Users] Re: copying file from multiple sources

2009-09-18 Thread Disconnect
(Wow, hi Luke! LTNT!) The standard way to do that is: source => ["puppet:///foo/file-$hostname","puppet:///foo/file-$lsbdistcodename","puppet:///foo/file"] - check for modules/foo/file-www4, then file-jaunty, then file On Fri, Sep 18, 2009 at 4:37 PM, Luke Schierer wrote: > I am looking at mi

[Puppet Users] Re: commonly used, defacto standard web frontend to facter ... that everyone loves?

2009-09-14 Thread Disconnect
We use iClassify but it has been abandoned upstream. On Mon, Sep 14, 2009 at 1:37 PM, Richard Wurman wrote: > > I'm new to puppet in general - I just have a minimal node.pp defined > for 2 clients so far. Before I reinvent the wheel ... is there a good > web UI to facter that everyone uses? I've

[Puppet Users] Re: Storing puppet info in a database

2009-09-01 Thread Disconnect
We use iclassify - it works as an external node tool (feeds tags, facts etc to puppetmaster) and clients feed it with automated info (facts) and manual tags/info/descriptions/etc.. On Tue, Sep 1, 2009 at 1:00 PM, Kenneth Holter wrote: > Hi all. > We have a bunch of RHEL servers running Puppet. Th