Re: [Puppet Users] Can I get a list of affected hosts of a class change?

2010-02-16 Thread Scott Smith
On 2/15/10 7:04 PM, number4 wrote: Hello puppet-users, Long-time listener, first-time caller ;) I was wondering if anyone has a good way to find all the classes and/or hosts that are affected by a change in a given module. You could parse the report yaml. That shows what classes were changed

Re: [Puppet Users] Re: Exec doesn't work with Ubuntu Server 10.04 (Lucid Lynx) 64bit

2010-02-16 Thread Nigel Kersten
On Tue, Feb 16, 2010 at 12:23 PM, Nigel Kersten wrote: > On Sat, Feb 13, 2010 at 6:13 PM, Joshua Anderson > wrote: >> I'm afraid that I couldn't reproduce this on a Debian VM with Kai's example. > > Joshua, I was just having issues reproducing it as well on a 4 core system. > > As soon as I ran 3

[Puppet Users] Re: Can I get a list of affected hosts of a class change?

2010-02-16 Thread number4
Ahh, yes. That's an angle I hadn't thought of. Thanks for the tip, Tim! I guess my only concern is relying on on a manual entry for the classes. So, if somebody creates a new class and forgets to add the register, we've lost integrity, but then again, it's a whole lot better than what I have ;) T

Re: [Puppet Users] Re: Exec doesn't work with Ubuntu Server 10.04 (Lucid Lynx) 64bit

2010-02-16 Thread Nigel Kersten
On Sat, Feb 13, 2010 at 6:13 PM, Joshua Anderson wrote: > I'm afraid that I couldn't reproduce this on a Debian VM with Kai's example. Joshua, I was just having issues reproducing it as well on a 4 core system. As soon as I ran 3 instances of: while : ; do openssl speed; done to peg 3 of the c

Re: [Puppet Users] vmwaretools

2010-02-16 Thread Dick Davies
On Tue, Feb 16, 2010 at 3:00 PM, Rob McBroom wrote: > On Feb 11, 2010, at 7:10 AM, Marc Fournier wrote: > >> [²] http://github.com/camptocamp/puppet-openvmtools > > Pardon my ignorance, but why run the `install-open-vm-tools.sh` or > `vmware-config-tools.pl` at all? > > My manifests for VMWare gu

Re: [Puppet Users] Puppetmaster child processes hang

2010-02-16 Thread S H
On Tue, Feb 16, 2010 at 1:13 PM, Scott Smith wrote: > S H wrote: > >> After an unexpected and unreasonably long hiatus, I've finally returned to >> implementing Puppet in my environment. >> >> My puppetmaster: Puppet 0.25.4, Facter 1.5.7, Ruby 1.8.7, and FreeBSD 8.0. >> >> I've got five clients u

Re: [Puppet Users] Puppetmaster child processes hang

2010-02-16 Thread Scott Smith
S H wrote: After an unexpected and unreasonably long hiatus, I've finally returned to implementing Puppet in my environment. My puppetmaster: Puppet 0.25.4, Facter 1.5.7, Ruby 1.8.7, and FreeBSD 8.0. I've got five clients using the puppetmaster so far. After about 24 hours, I've got three pup

Re: [Puppet Users] Puppetmaster child processes hang

2010-02-16 Thread S H
On Tue, Feb 16, 2010 at 12:11 PM, Nigel Kersten wrote: > On Tue, Feb 16, 2010 at 9:05 AM, S H wrote: > > After an unexpected and unreasonably long hiatus, I've finally returned > to > > implementing Puppet in my environment. > > > > My puppetmaster: Puppet 0.25.4, Facter 1.5.7, Ruby 1.8.7, and F

Re: [Puppet Users] How can I set up multiple puppetmasterd?

2010-02-16 Thread Scott Smith
Nobuchika Tanaka wrote: Hi all. I have a question how to setup that one pupppetd host connects with more than two puppetmasterd host. Hi, You can set up load balanced Puppetmasters with a stand-alone CA. And in the process I suggest using Apache with mod_passenger: http://reductivelabs.co

Re: [Puppet Users] using puppet to manage active-passive pairs?

2010-02-16 Thread Scott Smith
Dick Davies wrote: I'm building a LAMP stack with Puppet, so far it's been great for doing the 'roads and sewers' standard build bits. I'm a bit unsure how to use it to manage e.g. the MySQL active-passive pair we plan to use, though. Need a bit of guidance from veterans I think. It's not HAed

Re: [Puppet Users] Puppetmaster child processes hang

2010-02-16 Thread Nigel Kersten
On Tue, Feb 16, 2010 at 9:05 AM, S H wrote: > After an unexpected and unreasonably long hiatus, I've finally returned to > implementing Puppet in my environment. > > My puppetmaster: Puppet 0.25.4, Facter 1.5.7, Ruby 1.8.7, and FreeBSD 8.0. Is this ruby 1.8.7 patch level 249 SH ? > > I've got

[Puppet Users] Puppetmaster child processes hang

2010-02-16 Thread S H
After an unexpected and unreasonably long hiatus, I've finally returned to implementing Puppet in my environment. My puppetmaster: Puppet 0.25.4, Facter 1.5.7, Ruby 1.8.7, and FreeBSD 8.0. I've got five clients using the puppetmaster so far. After about 24 hours, I've got three puppetmaster proce

[Puppet Users] using puppet to manage active-passive pairs?

2010-02-16 Thread Dick Davies
I'm building a LAMP stack with Puppet, so far it's been great for doing the 'roads and sewers' standard build bits. I'm a bit unsure how to use it to manage e.g. the MySQL active-passive pair we plan to use, though. Need a bit of guidance from veterans I think. It's not HAed, we just want a spar

Re: [Puppet Users] Re: satellite sites management

2010-02-16 Thread Nigel Kersten
On Tue, Feb 16, 2010 at 8:33 AM, Ohad Levy wrote: > thats correct, foreman will import the facts as soon as they have been > written to the yaml dir (or if you are using store config as soon as they > are written to the db by puppet). > in foreman deployment scenario, the first time puppet runs is

Re: [Puppet Users] Re: satellite sites management

2010-02-16 Thread Ohad Levy
thats correct, foreman will import the facts as soon as they have been written to the yaml dir (or if you are using store config as soon as they are written to the db by puppet). in foreman deployment scenario, the first time puppet runs is only to fetch the certificates (e.g. in OS post install),

Re: [Puppet Users] Re: satellite sites management

2010-02-16 Thread Nigel Kersten
On Tue, Feb 16, 2010 at 8:19 AM, Ohad Levy wrote: > probably dumb answer - use foreman as it includes the facts already ;) but if I understand Foreman correctly, it's getting these from the cached version server-side right? Either locally or as part of a task from other puppet servers? This mean

Re: [Puppet Users] Re: satellite sites management

2010-02-16 Thread Ohad Levy
probably dumb answer - use foreman as it includes the facts already ;) feature requests are welcomed cheers, Ohad On Tue, Feb 16, 2010 at 5:51 PM, Nigel Kersten wrote: > I'm going to ask what might be a dumb question now. > > Why can't we re-order things such that the external node classifier >

Re: [Puppet Users] My first type/provider - does nothing...

2010-02-16 Thread Nigel Kersten
On Mon, Feb 15, 2010 at 9:30 AM, Daniel Kerwin wrote: > Hi list, > > i tried to write my first type and provider that should create logical > volumes. Seems like i'm missing something as i get nothing when i use > it: No errors and no logical volume :-( This might be better for puppet-dev. It lo

Re: [Puppet Users] Re: satellite sites management

2010-02-16 Thread Nigel Kersten
I'm going to ask what might be a dumb question now. Why can't we re-order things such that the external node classifier doesn't simply get a certname as an argument, but instead receives all the client facts? There is an awful lot of logic I would like to remove from my manifests and push to the

Re: [Puppet Users] Cascaded conditionals possible ?

2010-02-16 Thread Alan Barrett
On Mon, 15 Feb 2010, Marcello de Sousa wrote: > I've been trying to use a resolv_conf recipe to setup the DNS servers based > on $domain and $location (a custom fact). > So I cascade the 2 conditionals, but it's not working. Is it supposed to > work ? Or should I look for an alternative ? Nested s

Re: [Puppet Users] vmwaretools

2010-02-16 Thread Rob McBroom
On Feb 11, 2010, at 7:10 AM, Marc Fournier wrote: > [²] http://github.com/camptocamp/puppet-openvmtools Pardon my ignorance, but why run the `install-open-vm-tools.sh` or `vmware-config-tools.pl` at all? My manifests for VMWare guests (running RHEL5) just do this: 1. set up a yumrepo for http

[Puppet Users] Re: Can I get a list of affected hosts of a class change?

2010-02-16 Thread Tim Stoop
Hi Jim, On 16 feb, 04:04, number4 wrote: > I was wondering if anyone has > a > good way to find all the classes and/or hosts that are affected by a > change > in a given module. Not sure if you consider this a 'good' way, but I have the following function: define register_class { @@line { "$f

Re: [Puppet Users] Cascaded conditionals possible ?

2010-02-16 Thread Christopher Johnston
I used a case statement for 12 or so datacenters that I have to support. Its becomes a big file, but not so out of control to look at it or modify (very rarely does it get modified). Its self contained and easy to sort through to make changes. Something like this below works great for my needs.

RE: [Puppet Users] Cascaded conditionals possible ?

2010-02-16 Thread Marcello de Sousa
"if/else" alternative would make it too big (and a bit ugly). Don't you think cascading the conditionals should make sense ? Would be quite neat solution I think. "case" could be an option, but also didn't get it to work here. It looks like case only works outside the puppet "type". My (ugly) work

[Puppet Users] Re: Checking availability of exported resource

2010-02-16 Thread Tim Stoop
Hi all, Ignore this, it's not needed. Should've tested it before I posted! On 16 feb, 12:30, Tim Stoop wrote: > Hi all, > > Is there any way to check if a certain exported resource already > exist, without collecting and realizing them first? I'd like to > automatically create a @@nagios_service

Re: [Puppet Users] Cascaded conditionals possible ?

2010-02-16 Thread Christopher Johnston
I found it easier to create a detector based recipe which applied usable variables/arrays then passed them down into a template. Sent from my iPhone On Feb 16, 2010, at 7:05 AM, Trevor Vaughan wrote: I haven't tried it that way, but it would seem that that wouldn't work to me. It does

Re: [Puppet Users] Cascaded conditionals possible ?

2010-02-16 Thread Trevor Vaughan
I haven't tried it that way, but it would seem that that wouldn't work to me. It does work with nested if/else statements. Trevor On Mon, Feb 15, 2010 at 4:12 PM, Marcello de Sousa wrote: > I've been trying to use a resolv_conf recipe to setup the DNS servers based > on $domain and $location (a

[Puppet Users] Checking availability of exported resource

2010-02-16 Thread Tim Stoop
Hi all, Is there any way to check if a certain exported resource already exist, without collecting and realizing them first? I'd like to automatically create a @@nagios_servicegroup when it's mentioned in a define that creates my service checks. Simply doing "if defined(Nagios_servicegroup['newnam