[Puppet Users] Re: Stage help

2011-01-28 Thread TT
Found the answer. The import statements in my modules were causing the install manifest to run when I didn't expect it to. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To un

Re: [Puppet Users] Run stage introduces dependency cycle

2011-01-28 Thread Dan Urist
On Fri, 28 Jan 2011 11:40:38 -0800 Nan Liu wrote: > You can require disable_upstart class as a conditional by operating > system and it should be part of your ssh module rather than a separate > class. If I understand correctly, you mean I shouldn't use run stages at all. The problem with this a

Re: [Puppet Users] Re: slave-facts on puppetmaster

2011-01-28 Thread Stefan Schulte
On Fri, Jan 28, 2011 at 01:03:24PM -0800, bowlby wrote: > Sorry for reviving this old post but I'm having trouble with the above > setup. > > Everytime one of my slaves changes it's IP the hostfile on the ssh- > gateway gets updated. So for, so good. But the update just adds an > entry to the host

[Puppet Users] Stage help

2011-01-28 Thread TT
I've been beating my head against the wall with stages. No matter what I do, it seems to ignore the stages and always runs the classes in the order of the statements specified, not the order of the specified stages. In the below example, I've split out the stage definition into an order class, but

Re: [Puppet Users] .net client for mcollective agent

2011-01-28 Thread R.I.Pienaar
- Original Message - > Where would your recommend starting on this effort? Evertyhing in > SimpleRPC is described via Ruby. There's a few options, you can create a REST bridge of which there's a simple sample provided[1] or you can go about writing your own client. We'd like to make wr

Re: [Puppet Users] Re: slave-facts on puppetmaster

2011-01-28 Thread Jeff McCune
If you're managing all of the entries in /etc hosts with puppet, you can use the resources resource to purge entries that do not have resources declared in the catalog. resources { host: purge => true } WARNING this will delete entries you have not declared in the catalog. Test things out with -

[Puppet Users] Re: slave-facts on puppetmaster

2011-01-28 Thread bowlby
Sorry for reviving this old post but I'm having trouble with the above setup. Everytime one of my slaves changes it's IP the hostfile on the ssh- gateway gets updated. So for, so good. But the update just adds an entry to the hosts-file, thereby leaving the old entry intact. So I end up with: 10.

[Puppet Users] apache frontend not running puppetmaster.

2011-01-28 Thread trey85stang
Hey All, does anyone know how I would go about creating a front-end apache config for a set of 3 puppetmaster backend servers? Id rather not run puppetmaster on the apache front-end. How do I handle the clients? My though is the following for my setup: standalone Puppet CA server that will han

[Puppet Users] Re: Create a file only under certain conditions

2011-01-28 Thread jcbollinger
On Jan 28, 8:12 am, Patrick Cervicek wrote: > Is there a way to create a file only under certain conditions? What Daniel said. For the record, though: > class hibernate { > >          notice("hibernate") > >          exec { "echo": >                  alias       => "echo", > #               on

[Puppet Users] Application / database deployment coordination

2011-01-28 Thread Pete Ehlke
Folks: Just getting started with puppet in a large legacy environment that has never had meaningful systems automation. After a couple of weeks in the lab, we're extremely happy with the spectacularly quick progress we've been able to make, and the obvious promise that puppet holds. However (and

Re: [Puppet Users] Run stage introduces dependency cycle

2011-01-28 Thread Nan Liu
On Fri, Jan 28, 2011 at 11:22 AM, Dan Urist wrote: > On Fri, 28 Jan 2011 11:13:18 -0800 > Nan Liu wrote: > >> This does not appear to be a bug. There's an implicit dependency for >> the file /etc/init/ssh.conf on file resource /etc/init. File /etc/init >> is in stage main, and File /etc/init/ssh.

Re: [Puppet Users] Run stage introduces dependency cycle

2011-01-28 Thread Dan Urist
On Fri, 28 Jan 2011 11:13:18 -0800 Nan Liu wrote: > This does not appear to be a bug. There's an implicit dependency for > the file /etc/init/ssh.conf on file resource /etc/init. File /etc/init > is in stage main, and File /etc/init/ssh.conf in in stage pre which > cause a dependency loop. In thi

Re: [Puppet Users] Run stage introduces dependency cycle

2011-01-28 Thread Nan Liu
On Fri, Jan 28, 2011 at 9:28 AM, Dan Urist wrote: > A little background: I'm using puppet to manage the configurations of a > group of linux vservers running Ubuntu Lucid. Ubuntu has switched to > using upstart for their boot process; unfortunately there are some > peculiar interactions with vserv

Re: [Puppet Users] Possible to disable puppets internal CA, and use wildcard certs from DigiCert CA?

2011-01-28 Thread Daniel Pittman
On Fri, Jan 28, 2011 at 06:47, Jed wrote: > i'm new to puppet, sorry if the question comes off a little green- > thumb We all start off that way. :) > I have a puppet server and a puppet client (both running latest > versions) > > we have wildcard certs for all our internal domains, we use thes

Re: [Puppet Users] Re: CIDR-matching in puppet manifests?

2011-01-28 Thread Daniel Pittman
On Fri, Jan 28, 2011 at 09:22, Nick Moffitt wrote: > Roberto Bouza: > >> Inline templates are a little bit dirty to do this, but they will >> work. > > Yeah, it's totally a stopgap. FWIW, a custom function that took two arguments (ip, cidr) would not be very hard to write, and would be a nice add

Re: [Puppet Users] Is this the best place to ask puppet on AIX questions?

2011-01-28 Thread Daniel Pittman
On Fri, Jan 28, 2011 at 10:16, Parker Johnson wrote: G'day Parker. > I have been messing around with puppet on AIX a bit recently and have > all kinds of questions about how puppet integrates with AIX, > specifically regarding how the "service" and "package" resources work > with AIX's native co

Re: [Puppet Users] Run stage introduces dependency cycle

2011-01-28 Thread Dan Urist
I've entered a bug for this: http://projects.puppetlabs.com/issues/6064 On Fri, 28 Jan 2011 11:01:53 -0700 Dan Urist wrote: > On Fri, 28 Jan 2011 09:58:31 -0800 > Patrick wrote: > > > > > On Jan 28, 2011, at 9:28 AM, Dan Urist wrote: > > > > > Now, if /etc/init/ssh.conf exists, puppet will c

Re: [Puppet Users] Client and Server on Same System

2011-01-28 Thread Douglas Garstang
On Fri, Jan 28, 2011 at 10:23 AM, Douglas Garstang wrote: > On Fri, Jan 28, 2011 at 10:11 AM, Douglas Garstang < > doug.garst...@gmail.com> wrote: > >> On Fri, Jan 28, 2011 at 9:59 AM, Jeff McCune wrote: >> >>> On Fri, Jan 28, 2011 at 9:44 AM, Douglas Garstang >>> wrote: >>> > I'm trying to run

Re: [Puppet Users] Client and Server on Same System

2011-01-28 Thread Douglas Garstang
On Fri, Jan 28, 2011 at 10:11 AM, Douglas Garstang wrote: > On Fri, Jan 28, 2011 at 9:59 AM, Jeff McCune wrote: > >> On Fri, Jan 28, 2011 at 9:44 AM, Douglas Garstang >> wrote: >> > I'm trying to run both the puppetmaster and client on the same server. >> > Starting the puppetmaster for the firs

[Puppet Users] Is this the best place to ask puppet on AIX questions?

2011-01-28 Thread Parker Johnson
Hello. First post. I have been messing around with puppet on AIX a bit recently and have all kinds of questions about how puppet integrates with AIX, specifically regarding how the "service" and "package" resources work with AIX's native commands (installp/lssrc/etc). Some searches of this grou

Re: [Puppet Users] Client and Server on Same System

2011-01-28 Thread Douglas Garstang
On Fri, Jan 28, 2011 at 9:59 AM, Jeff McCune wrote: > On Fri, Jan 28, 2011 at 9:44 AM, Douglas Garstang > wrote: > > I'm trying to run both the puppetmaster and client on the same server. > > Starting the puppetmaster for the first time is fine, I get this: > > Jan 28 17:40:58 s_...@prov01.den.x

[Puppet Users] .net client for mcollective agent

2011-01-28 Thread mmalamud
Where would your recommend starting on this effort? Evertyhing in SimpleRPC is described via Ruby. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group

Re: [Puppet Users] Run stage introduces dependency cycle

2011-01-28 Thread Dan Urist
On Fri, 28 Jan 2011 09:58:31 -0800 Patrick wrote: > > On Jan 28, 2011, at 9:28 AM, Dan Urist wrote: > > > Now, if /etc/init/ssh.conf exists, puppet will correctly remove it > > and the run will complete without error, but on the *next* and all > > subsequent puppet runs I get a long dependency

Re: [Puppet Users] Client and Server on Same System

2011-01-28 Thread Jeff McCune
On Fri, Jan 28, 2011 at 9:44 AM, Douglas Garstang wrote: > I'm trying to run both the puppetmaster and client on the same server. > Starting the puppetmaster for the first time is fine, I get this: > Jan 28 17:40:58 s_...@prov01.den.xxx.com puppet-master[27424]: Signed > certificate request for pr

Re: [Puppet Users] Run stage introduces dependency cycle

2011-01-28 Thread Patrick
On Jan 28, 2011, at 9:28 AM, Dan Urist wrote: > Now, if /etc/init/ssh.conf exists, puppet will correctly remove it and > the run will complete without error, but on the *next* and all > subsequent puppet runs I get a long dependency cycle error. > > If /etc/init/ssh.conf does not exist, I get no

[Puppet Users] Client and Server on Same System

2011-01-28 Thread Douglas Garstang
I'm trying to run both the puppetmaster and client on the same server. Starting the puppetmaster for the first time is fine, I get this: Jan 28 17:40:58 s_...@prov01.den.xxx.com puppet-master[27424]: Signed certificate request for prov01.den.xxx.com Jan 28 17:40:58 s_...@prov01.den.xxx.com puppet

[Puppet Users] Run stage introduces dependency cycle

2011-01-28 Thread Dan Urist
A little background: I'm using puppet to manage the configurations of a group of linux vservers running Ubuntu Lucid. Ubuntu has switched to using upstart for their boot process; unfortunately there are some peculiar interactions with vservers which causes openssh to hang during upgrade, so I need

Re: [Puppet Users] Re: CIDR-matching in puppet manifests?

2011-01-28 Thread Nick Moffitt
Roberto Bouza: > Inline templates are a little bit dirty to do this, but they will > work. Yeah, it's totally a stopgap. > A ruby file for mapping (all the CIDRs). and then a few libraries to > use the ipaddr ruby lib and do calculations etc. Yeah, my problem is that I'm not in a position where

Re: [Puppet Users] Wierd debian package issue...

2011-01-28 Thread Peter Berghold
Hanging head in shame... I've been looking at that line off and on for the last two weeks and didn't see the one instead of "el" Gotta change the font in emacs I guess... Peter L. Berghold Owner, Shark River Technical Solutions LLC -- You received this message because you are subscribed to t

Re: [Puppet Users] Wierd debian package issue...

2011-01-28 Thread Adam Gibbins
On 28 January 2011 16:52, Peter Berghold wrote: > This one has me scratching my head. Simply enough I have the following in > one of my manifests: > > package { postgresq1: ensure => latest } > > I checked with the Debian site to ensure that I had the correct package > name, puppetd did its th

Re: [Puppet Users] Wierd debian package issue...

2011-01-28 Thread Daniel Piddock
On 28/01/11 16:52, Peter Berghold wrote: > This one has me scratching my head. Simply enough I have the > following in one of my manifests: > > package { postgresq1: ensure => latest } I'm not sure if this is a special typo for the mailing list but that looks like a One at the end of postgresql

[Puppet Users] Wierd debian package issue...

2011-01-28 Thread Peter Berghold
This one has me scratching my head. Simply enough I have the following in one of my manifests: package { postgresq1: ensure => latest } I checked with the Debian site to ensure that I had the correct package name, puppetd did its thing and lo and behold I get the following error message: err:

Re: [Puppet Users] Create a file only under certain conditions

2011-01-28 Thread Daniel Pittman
On Jan 28, 2011 6:12 AM, "Patrick Cervicek" < patr...@googlealtert.spamtrap.fht-esslingen.de> wrote: > > Is there a way to create a file only under certain conditions? Totally, and we did it routinely. The process is perhaps not quite as simple as you might expect though: You need to write a cust

Re: [Puppet Users] puppetmasterd verbose log

2011-01-28 Thread Daniel Pittman
On Jan 28, 2011 7:56 AM, "Romain Pelisse" wrote: > > Ok, I found why : messages are going to /var/log/messages, not the /var/log/puppet folders... Oh, good. Y'all found the reason. Pupput pretty uniformly defaults our logs to the console in interactive runs, and syslog if we daemonize. You can c

[Puppet Users] Re: CIDR-matching in puppet manifests?

2011-01-28 Thread Roberto Bouza
Well... Inline templates are a little bit dirty to do this, but they will work. We are doing something similar so we can set up the interfaces of a host based on the group it belongs too. We created a module called custom and there we added in the lib directory as part of the facts a bunch of ru

Re: [Puppet Users] puppetmasterd verbose log

2011-01-28 Thread Romain Pelisse
Ok, I found why : messages are going to /var/log/messages, not the /var/log/puppet folders... On 28 January 2011 14:52, Romain Pelisse wrote: > No, the clients are supposed to pull. > > What client version is this? I've seen 0.24.5 clients crash when the > master went down, and seen 0.25.5 clien

Re: [Puppet Users] CIDR-matching in puppet manifests?

2011-01-28 Thread Nick Moffitt
Martijn Grendelman: > Would you be so kind to post the solution you cho(o)se in the end? I am > interested in this too.. Thank you! At the moment I'm attempting something like a case statement that does inline_template("<%= require 'ipaddr'; IPAddr.new('$thecidr').include?IPAddr.new('$theip') -%>

[Puppet Users] Possible to disable puppets internal CA, and use wildcard certs from DigiCert CA?

2011-01-28 Thread Jed
Hi All, i'm new to puppet, sorry if the question comes off a little green- thumb I have a puppet server and a puppet client (both running latest versions) we have wildcard certs for all our internal domains, we use these certs for SSL ldap posix auth, apache, jetty..etc.etc. ie. *.priv.tech.com

Re: [Puppet Users] CIDR-matching in puppet manifests?

2011-01-28 Thread Martijn Grendelman
On 27-01-11 22:21, Nick Moffitt wrote: > Mohamed Lrhazi: >> I guess my answer was: you can use ruby's library ipaddr inside >> templates, not sure about manifests. > > That is an interesting approach, and suggests possible inline_template() > hacks. I note that of course Puppet itself can do CIDR

[Puppet Users] Create a file only under certain conditions

2011-01-28 Thread Patrick Cervicek
Is there a way to create a file only under certain conditions? I would like to check if a certain device exists and the config file is still missing. If the file ist missing, create the file and update the initramdisk. (This device exists only on our notebooks, otherwise it is a desktop and no

[Puppet Users] puppetmasterd verbose log

2011-01-28 Thread Romain Pelisse
No, the clients are supposed to pull. What client version is this? I've seen 0.24.5 clients crash when the master went down, and seen 0.25.5 clients end up in a (apparent) sort of deadlock. No further logging in either scenario. I haven't tried 2.6 yet. 0.25.5, lastest available for Fedora (well

Re: [Puppet Users] puppetmasterd verbose log

2011-01-28 Thread Felix Frank
On 01/28/2011 02:36 PM, Romain Pelisse wrote: > I'm not making myself very clear also :)(as you are also in Berlin, > you can realize my first question was rather late in the night ;) ) > > I do apologize. Here is an hopefully enlightening snippet: > > $ grep -e 'server' /etc/puppet/puppet.co

Re: [Puppet Users] puppetmasterd verbose log

2011-01-28 Thread Romain Pelisse
I'm not making myself very clear also :)(as you are also in Berlin, you can realize my first question was rather late in the night ;) ) I do apologize. Here is an hopefully enlightening snippet: $ grep -e 'server' /etc/puppet/puppet.conf server = puppetmaster $ ping puppetmaster (host down) #

Re: [Puppet Users] puppetmasterd verbose log

2011-01-28 Thread Felix Frank
On 01/28/2011 02:07 PM, Romain Pelisse wrote: > Oh, sorry, actually there is no error. The puppetmaster is not running > yet. I just wanted to check out a little bit what the log would like > like. However, I found that strange that if puppet can't connect to the > puppetmaster, there is no complai

Re: [Puppet Users] puppetmasterd verbose log

2011-01-28 Thread Romain Pelisse
Oh, sorry, actually there is no error. The puppetmaster is not running yet. I just wanted to check out a little bit what the log would like like. However, I found that strange that if puppet can't connect to the puppetmaster, there is no complaint (in a log) about it... On 28 January 2011 12:50, F

Re: [Puppet Users] puppetmasterd verbose log

2011-01-28 Thread Felix Frank
On 01/28/2011 11:54 AM, Romain Pelisse wrote: > Well, this was my assumption. I did so, but no messages end up in > /var/log/puppet/ (as configured in the puppet.conf), which I find weird > because my puppet is currently unable to connect to the puppetmaster ! > So it should fill the log with a fai

Re: [Puppet Users] puppetmasterd verbose log

2011-01-28 Thread Romain Pelisse
Well, this was my assumption. I did so, but no messages end up in /var/log/puppet/ (as configured in the puppet.conf), which I find weird because my puppet is currently unable to connect to the puppetmaster ! So it should fill the log with a failure every half an hour... On 28 January 2011 06:18,

[Puppet Users] Exported resources with more than one condition

2011-01-28 Thread Carles Amigó
When trying to use more than one condition in exported resources doing something like this: File <<| tag == $fqdn and title == "/etc/passwd" |>> I'm getting the following error in puppet: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet does not currently suppor

Re: [Puppet Users] high 500 error rate on file metadata operations

2011-01-28 Thread Brice Figureau
On Thu, 2011-01-27 at 15:59 -0800, Jason Wright wrote: > On Thu, Jan 27, 2011 at 1:46 PM, Brice Figureau > wrote: > > > Regarding the first stacktrace you posted in your first e-mail, I'm sure > > this is the writelock multiprocess issue we fixed in 2.6 and that I > > referred to in a previous e-