[Puppet Users] Re: Puppet and Amazon EC2

2009-09-14 Thread Robin Sheat
Op dinsdag 15 september 2009 01:29:09 schreef CaptTofu: > * Having the certificate requests for these new instances > automatically signed > * Creating a new node for a new instance, once it is up and I know the > host/ip. As you know, you don't know that until Amazon assigns this. > How could I au

[Puppet Users] Re: Notify someone on failure

2009-08-25 Thread Robin Sheat
Op woensdag 26 augustus 2009 15:44:21 schreef chakkerz: > Yeah, the timestamp is useful but only shows a complete failure, that > is one in which the host didn't make contact (i could be wrong). It has alerted me to faults where the catalogue wouldn't compile due to syntax errors or whatever (it'

[Puppet Users] Re: Notify someone on failure

2009-08-25 Thread Robin Sheat
Op woensdag 26 augustus 2009 12:52:13 schreef chakkerz: > I have puppet managing a fair few hosts but because we are still > testing (and later for peace of mind) we'd like to hear from hosts > that are failing their puppet run. I did this to make it work with Nagios: http://www.kallisti.net.nz/bl

[Puppet Users] Re: HTTP as a source for files

2009-07-01 Thread Robin Sheat
On Wednesday 01 July 2009 14:14:36 Greg wrote: > The main question would be in terms of how to detect file changes > without a full transfer - HTTP does provide some mechanisms for > checking this, but I'm not sure if they would be adequate if scripting > responses through HTTP... I use S3 as a fi

[Puppet Users] Re: Making a file out of fragments

2009-06-20 Thread Robin Sheat
On Sunday 21 June 2009 14:53:14 jchonig wrote: > I think I could do what I wanted by building a bunch of files into a > temp directory and then cattting them to /etc/apt/sources.list. But > I'm wondring if there is an easier way. Put files into /etc/apt/sources.d? Apt does support wildcard inclu

[Puppet Users] Re: trying to understand puppet internal

2009-06-12 Thread Robin Sheat
On Friday 12 June 2009 22:46:53 Arnau Bria wrote: > > For maximum performance you want to avoid any file-server operations > > (file.source with puppet://, filebucket to server}, > > I was thinking on implement an rsync in same puppet server and do a > rsync Exec... Can't you have puppet:/// serve

[Puppet Users] Re: HOT SEXY COLLEGE GIRLS VIDEOS

2009-06-08 Thread Robin Sheat
On Monday 08 June 2009 23:34:15 James Turnbull wrote: > It's called Spam (http://en.wikipedia.org/wiki/Spam_(electronic) and it > slipped through the Google filters obviously. So, it's not a new Puppet feature then? I was sure that it would have helped get buy-in to the idea...:) -- Robin Jabb

[Puppet Users] 'require' issue

2009-06-02 Thread Robin Sheat
This is most likely me being wrong-thinking somewhere, but I have: class apache2::modssl { include apache2::base File { notify => Service["apache2"], require => Package["apache2"], } file { "/etc/apache2/ssl": ensure =

[Puppet Users] Re: "Cannot access mount[plugins]" error with mongrel

2009-05-25 Thread Robin Sheat
On Monday 25 May 2009 22:15:16 Robin Sheat wrote: > Hi, my puppet master is now running behind apache, via mongrel. However > one of the clients (which is on a different subnet to the others) gives me > this error: Just a followup, if I do things like 'allow all' and so o

[Puppet Users] "Cannot access mount[plugins]" error with mongrel

2009-05-25 Thread Robin Sheat
(resend: I meant to send this to puppet-users rather than -dev, sorry) Hi, my puppet master is now running behind apache, via mongrel. However one of the clients (which is on a different subnet to the others) gives me this error: May 25 21:34:02 puppet puppetmasterd[23792]: (mount[plugins]) *cl

[Puppet Users] SSL connection errors

2009-05-08 Thread Robin Sheat
My puppet setup has been working nicely for a while, but recently I get errors like this a lot: May 9 15:46:33 puppet puppetd[22423]: (//Node[basenode]/nagios::nrpe/File[/usr/local/nagios/plugins/check_apt]) Failed to retrieve current state of resource: Connection reset by peer - SSL_connect

[Puppet Users] Re: set password of root

2009-05-06 Thread Robin Sheat
On Wed, 06 May 2009, 骡骡 wrote: > in 1st day of each month , change passwd of root. > exec { "rootpw": > command => "/usr/sbin/usermod -p $rootpw root", > onlyif => "/usr/bin/test `/bin/date -d now +%d` = '01'", Assuming you run puppet every 30 minutes, won'

[Puppet Users] Re: Conditionally install a file resource

2009-05-05 Thread Robin Sheat
On Wed, 06 May 2009, James Turnbull wrote: > http://projects.reductivelabs.com/issues/651 Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your redMine administrator for assistance. ...I saw this error yesterday when l

[Puppet Users] Re: Conditionally install a file resource

2009-05-04 Thread Robin Sheat
On Tuesday 05 May 2009 08:58:53 John Florian wrote: > I keep finding that I wish onlyif was a meta-parameter; right now I > want it on the file resource type. I think this would be good, too. I encountered exactly the same situation yesterday. -- Robin JabberID: http://www.kallisti.net.nz/bl

[Puppet Users] Re: Question about passwords

2009-04-29 Thread Robin Sheat
On Thursday 30 April 2009 00:24:41 Rob McBroom wrote: > There's probably a way to generate the encrypted string without the > account actually existing first, but I don't know it. On Linux: mkpasswd -m md5 will do it for you. -- Robin JabberID: http://www.kallisti.net.nz/blog |||

[Puppet Users] Re: puppet, openvz, hundreds of files, hundreds of sockets

2009-04-22 Thread Robin Sheat
On Thursday 23 April 2009 04:50:10 Justin B Newman wrote: > It appears that the client application opens a tcp socket for every > one of those files when it runs, as it computes the checksum. When it > hits 1024 sockets open, it is unable to open additional sockets. This I had exactly the same p

[Puppet Users] Re: Subscribe should override creates for exec resources?

2009-04-22 Thread Robin Sheat
On Wednesday 22 April 2009 19:50:11 Graham Stratton wrote: > That's rather unfortunate for my use-case, though. I want an exec to > run until a file has been created or whenever a config file is > updated. But that's not quite perfect, so maybe this will force me to > fix things more! I had

[Puppet Users] Re: require a define or similar

2009-04-17 Thread Robin Sheat
On Friday 17 April 2009 23:24:28 Matt wrote: > Ah, is it this bit you're referring to? That's the one, yeah. Credit where it's due, it's in the docs, but it took me a while to spot. -- Robin JabberID: http://www.kallisti.net.nz/blog ||| http://identi.ca/eythian PGP Key 0xA99CEB6D

[Puppet Users] Re: require a define or similar

2009-04-17 Thread Robin Sheat
On Friday 17 April 2009 19:44:53 Matt wrote: > The s3get function is unable to take a require as it does not support it. > However, I was able to put a require on the underlying Exec and just pass > in a variable to it, so that did work :-) If you have a look at the sample .pp file I included, you

[Puppet Users] Re: require a define or similar

2009-04-16 Thread Robin Sheat
On Friday 17 April 2009 06:52:50 Matt wrote: > This allows me to call s3get on a file in a bucket from Amazon S3. The > problem I have is that I can't see a way for an exec or package type to > wait (require) while the download is completed so I can complete tasks > within one poll. Why can't you

[Puppet Users] Notifications between definitions

2009-04-11 Thread Robin Sheat
I've been using 'define' to make a few custom types. For example, I have a simple 'file' like thing (s3::file) that downloads a file from S3, only if the one on the local machine doesn't match, and it can send out notifications if the file changed. This is basically an exec command that uses som