Re: [Puppet Users] apache module file sharing issue

2011-03-11 Thread Mark Stanislav
How's about: source => "puppet:///modules/apache/krome/httpd/conf.d/php.conf" On Mar 11, 2011, at 6:55 PM, Tim Dunphy wrote: > sorry I accidentally mispsated one of the entries above.. there > actually is a closing brace on php.conf > >file { > "/etc/httpd/conf.d/php.conf": > owner =>

Re: [Puppet Users] apache module file sharing issue

2011-03-11 Thread Tim Dunphy
sorry I accidentally mispsated one of the entries above.. there actually is a closing brace on php.conf file { "/etc/httpd/conf.d/php.conf": owner => root, group => root, mode => 440, require => Exec["create httpd conf dir"], source => "puppet:///apache/files/k

Re: [Puppet Users] apache module file sharing issue

2011-03-11 Thread Tim Dunphy
Hello Denmat! Thanks for responding ! That was a tremendous help! I was able to correct a couple of issues. I corrected the paths and all of the files are shared but one.. I would appreciate your insight here as well. ## puppet error err: //apache/File[/etc/httpd/conf.d/php.conf]: Failed to ret

[Puppet Users] Re: Passenger, Puppet/ nodes.pp ignored with external nodes script?

2011-03-11 Thread trey85stang
I know its been a while, but that is exactly what I was doing.. returning nothing. Added the blank yaml and all is working. On Feb 19, 5:40 pm, Gary Larizza wrote: > With regard to the External Nodes problem - are you returning an empty block > of YAML if the node isn't defined in the external

Re: [Puppet Users] Pycon 2011

2011-03-11 Thread Richard Crowley
I'm the one giving the talk. Airlines have forced it to be rescheduled for today at 4:55 in Centenial 2. On Friday, March 11, 2011, Corey Osman wrote: > Hi,  someone is giving a talk about puppet at pycon.  Are there any other > puppet users at pycon? > > Sent from my iPhone > > -- > You receive

Re: [Puppet Users] Providing stdin to exec

2011-03-11 Thread Daniel Pittman
On Mon, Feb 21, 2011 at 20:07, Ty C wrote: > We've several use cases where we'd like to define stdin as an exec param. My > searches didn't reveal anything relevant, but I did dredge up a 3-year old, > unimplemented ticket concerning this matter: > https://projects.puppetlabs.com/issues/653 > >

[Puppet Users] Re: question about auto requiring resources

2011-03-11 Thread Nick Fagerlund
Hi, Stefan. I can't reproduce this on my 2.6.4 machines. Here's what I've got: # moduledir/autoreqproblems/manifests/init.pp class autoreqproblems {} # moduledir/autoreqproblems/manifests/myfile.pp class autoreqproblems::myfile { file {"/tmp/myfile": ensure => file, owner => "

[Puppet Users] Pycon 2011

2011-03-11 Thread Corey Osman
Hi, someone is giving a talk about puppet at pycon. Are there any other puppet users at pycon? Sent from my iPhone -- 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 unsubsc

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

2011-03-11 Thread Mohamed Lrhazi
On Tue, Mar 8, 2011 at 4:00 PM, trey85stang wrote: >  exec { "bash prescript": >    path => "/path/to/prescript_dir", >    unless => "grep -q $desiredver /path/to/somefile", >  } The above might work.. but it's really saying that *bash* is to be found in */path/to/prescript_dir* Right? Mohamed.

[Puppet Users] Re: [Puppet-dev] ANNOUNCE: Puppet 2.6.6 available!

2011-03-11 Thread Jeff McCune
On Wed, Mar 9, 2011 at 5:30 PM, Jacob Helwig wrote: > This maintenance release fixes two issues with Puppet 2.6.5. Enterprise Linux 5 RPM's have been posted to the Puppet Labs prosvc repository as well. This is available via rsync if you're keeping a local mirror. I recommend not using --delete

Re: [Puppet Users] Deduplication (was: Why is it so hard to make a sane nagios server config?)

2011-03-11 Thread Brian Gallew
On Mar 11, 2011, at 7:52 AM, Nick Moffitt wrote: >> I'm not sure what you mean by deduplicating. Puppet won't let you >> have duplicate *anything*, exported or not. If you mean "filtering", >> that's doable, but any non-trivial filtering rule will require to you >> write evil Puppet functions th

Re: [Puppet Users] Variables, extlookup and inheritance from includes

2011-03-11 Thread Mark Phillips
On 11 Mar 2011, at 14:39, Felix Frank wrote: > A sane approach here might be the following: > > class motd::motd($os,$region) { > file "/etc/motd": > owner => root, group => sys, mode => 0644, > content => template("motd/motd.$operatingsystem.erb"), > } > } > > Then instantiate

Re: [Puppet Users] Deduplication (was: Why is it so hard to make a sane nagios server config?)

2011-03-11 Thread Nick Moffitt
Brian Gallew: > A cons cell isn't actually that hard to produce in Puppet: you can use > a hash. Each key is the member of the cell you want to keep, while > the value is a throwaway. Sure. I was actually talking about Nagios there, not Puppet. > I'm not sure what you mean by deduplicating.

Re: [Puppet Users] Deduplication (was: Why is it so hard to make a sane nagios server config?)

2011-03-11 Thread Brian Gallew
A cons cell isn't actually that hard to produce in Puppet: you can use a hash. Each key is the member of the cell you want to keep, while the value is a throwaway. But. Puppet's non-determinate evaluation order is pretty much guaranteed to bite you in the butt. You can really only get the "full

Re: [Puppet Users] Why is it so hard to make a sane nagios server config?

2011-03-11 Thread Brian Gallew
My setup also has a worst-case propagation delay of 90 minutes. I have a custom fact that collects all of the information in classes.txt on the client. That, in turn, is used (for Nagios) by a custom parser function that produces the hostgroup list for when the nagios_host resource is exported.

Re: [Puppet Users] Variables, extlookup and inheritance from includes

2011-03-11 Thread Felix Frank
On 03/09/2011 03:01 PM, Mark Phillips wrote: > Hi all, > > I've been testing something today that I can't get to play ball the > way I'd like. Here's the setup: > > site.pp > import "nodes" > $extlookup_datadir = "/etc/puppet/envs/poc/extdata" > $extlookup_precedence = ["%{fqdn}", "common"] > >

Re: [Puppet Users] Proposal: "strict" mode for manifests

2011-03-11 Thread Felix Frank
On 03/08/2011 11:37 PM, Robin Bowes wrote: > Nigel suggested I posted this here - he likes the idea. > > I'm constantly getting bitten by small typos in my manifests, eg. when I > do something like: > > $var1 = extlookup('foo') > $var2 = extlookup('foo') > # set $var3 true if $var1 is same as $va

[Puppet Users] Deduplication (was: Why is it so hard to make a sane nagios server config?)

2011-03-11 Thread Nick Moffitt
Martijn Grendelman: > I'm afraid not. This is distressing news. I feel like there are two things conspiring to defeat me, here: one is that nagios resource types like to enumerate *children* instead of *parent* relationships. Having to maintain these static lists of "members" is part of the cri

Re: [Puppet Users] Re: failed to retrieve certificate on Amazon EC2

2011-03-11 Thread Romain Pelisse
> > I don't know webrick much at all to be honest, but I'm sure it can > support more than one. Forgive the stupid question but you don't have > another host with the same name somewhere that you're confusing log > messages with? > No need to apologies, it's always good to check this kind of thing

Re: [Puppet Users] Why is it so hard to make a sane nagios server config?

2011-03-11 Thread Martijn Grendelman
On 11-03-11 12:46, Martijn Grendelman wrote: [snip] > I did exactly what you did: use exported concat-fragments to collect the > hostgroups on the puppetmaster and then use generate() to provision the > hostgroups parameter of the nagios_host. [snip] > The biggest downside of my system so far, i

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

2011-03-11 Thread Felix Frank
On 03/08/2011 10:09 PM, Disconnect wrote: > class app { > exec { "prescript": > refreshonly => true, command => .., > } > package { package1: ensure => installed, require => Exec["prescript"], > notify => Exec["postscript"] } > package { package2: ensure => installed, require => > Pac

[Puppet Users] Re: failed to retrieve certificate on Amazon EC2

2011-03-11 Thread Luke Bigum
On Mar 11, 1:49 pm, Romain Pelisse wrote: > On 11 March 2011 14:41, Luke Bigum wrote: > > "Connection refused" sounds like networking or a firewall is in your > > way. On your new Puppet client, can you "telnet puppetmaster.domain > > 8140"? Assuming your Puppet Master is running on the default

Re: [Puppet Users] Re: failed to retrieve certificate on Amazon EC2

2011-03-11 Thread Romain Pelisse
On 11 March 2011 14:41, Luke Bigum wrote: > > I actually tried --waitforcert 48 ! But it still hang and end up into > a > > certificate timeout : puppetd[2078]: Could not request certificate: > > Connection refused - connect(2) > > "Connection refused" sounds like networking or a firewall is

[Puppet Users] Re: failed to retrieve certificate on Amazon EC2

2011-03-11 Thread Luke Bigum
> I actually tried --waitforcert 48 ! But it still hang and end up into a > certificate timeout : puppetd[2078]: Could not request certificate: > Connection refused - connect(2) "Connection refused" sounds like networking or a firewall is in your way. On your new Puppet client, can you "telnet

Re: [Puppet Users] failed to retrieve certificate on Amazon EC2

2011-03-11 Thread Romain Pelisse
Hi, Thanks for you quick reply. Try puppetd --test --waitforcert 15 > I actually tried --waitforcert 48 ! But it still hang and end up into a certificate timeout : puppetd[2078]: Could not request certificate: Connection refused - connect(2) > I think it's complaining about waitforcert bec

Re: [Puppet Users] failed to retrieve certificate on Amazon EC2

2011-03-11 Thread Tim Dunphy
Try puppetd --test --waitforcert 15 I think it's complaining about waitforcert because you need that flag to retrieve the cert from the server. But it would have been nice to see the actual command you used to produce that error. :) The number is the interval that the puppet client will pause

[Puppet Users] failed to retrieve certificate on Amazon EC2

2011-03-11 Thread Romain Pelisse
Hi, I'm using puppet on EC2 to setup my VMs with the following configuration: # puppetd --version 0.25.5 # uname -a Linux hostname.domain 2.6.16-xenU #1 SMP Mon May 28 03:41:49 SAST 2007 i686 i686 i386 GNU/Linux But I keep facing some timeout from puppetd: warning: peer certificate won't be ver

Re: [Puppet Users] Why is it so hard to make a sane nagios server config?

2011-03-11 Thread Martijn Grendelman
Hi Nick, > I've tried to achieve my overall goals with several different features > of Puppet, but I've hit a bit of a wall here. I think it's time for me > to explain what I'm trying to accomplish: > > I want the enabling of a service in my manifests to configure > the monitoring of

[Puppet Users] Why is it so hard to make a sane nagios server config?

2011-03-11 Thread Nick Moffitt
I've tried to achieve my overall goals with several different features of Puppet, but I've hit a bit of a wall here. I think it's time for me to explain what I'm trying to accomplish: I want the enabling of a service in my manifests to configure the monitoring of that service by a

Re: [Puppet Users] symlink noop error

2011-03-11 Thread Stefan Schulte
On Fri, Mar 11, 2011 at 03:20:20PM +1100, John Warburton wrote: > Hi All > > I have a bit of a strange one, and am not sure I'm doing this right. This is > with 2.6.4 on Solaris 10 > > We want to create a sym link from a source file that is created by a > package. If the package isn't installed,

Re: [Puppet Users] keeping a service running properly

2011-03-11 Thread Stefan Schulte
On Fri, Mar 11, 2011 at 11:37:42AM +1000, Ian Mortimer wrote: > Hi > > The service in this case is ypbind but it could apply to other > services. The problem is that `service ypbind status' returns 0 > if the service is running even if it's not bound to the domain. > What are the reasons that yo

[Puppet Users] Re: Force resigning of existing certificates

2011-03-11 Thread Patrick
On 8 Mrz., 14:54, Disconnect wrote: > Alternately, running the puppetca clean before starting the new client will > result in the standard unsigned behavior. Maybe, but it would be nice to save this extra afford. In our case, we do not want the security features of puppet. > (I do think its p