[Puppet Users] Re: Resource ordering

2009-07-22 Thread David Schmitt
Luke Kanies wrote: > On Jul 21, 2009, at 5:31 PM, Trevor Vaughan wrote: >> Is there any way to make some things fail softly so that they can be >> less hard than class-wise fatal? > > Hmm, no one's ever asked before. > > It seems reasonable that we could mark some resources as non-fatal, > but

[Puppet Users] Re: Resource ordering

2009-07-22 Thread Trevor Vaughan
I was thinking of this in a very fine grained way, such as a metaparameter. The situation that made me think of this is: class foo { file { 'super/important': ensure => 'file', content => 'something great\n' } exec { 'nice to have happen': command => 'check stuff and set a fil

[Puppet Users] Re: Resource ordering

2009-07-22 Thread Peter Meier
Hi > [discussion about soft failing] hmm I don't see why you'd like to have your environment in a semi-satisfied state. Either your environment is in the state is broken or you have to fix it. Everything else is imho just scary... cheers pete --~--~-~--~~~---~--

[Puppet Users] Re: Performance of Passenger vs. Mongrel

2009-07-22 Thread Larry Ludwig
An update on this thread working with Mark at USG: The example Apache config file with Puppet is not correct. I have submitted a patch so the example configuration file is correct. http://projects.reductivelabs.com/issues/2430 In communication with USG, once the options were properly set, th

[Puppet Users] Re: Resource ordering

2009-07-22 Thread Trevor Vaughan
It's not semi-satisfied in cases where you might be waiting for cross-system semaphores to complete and you don't want to fire anything else off until they are. Trevor > On Wed, Jul 22, 2009 at 08:26, Peter Meier wrote: >> Hi >> >>> [discussion about soft failing] >> >> hmm I don't see why you'd

[Puppet Users] Re: multi-case selectors

2009-07-22 Thread Larry Ludwig
On Jul 21, 2009, at 1:00 PM, jc.listmail wrote: > > Hi- > > I've been using Puppet for a few months now and am trying to work my > recipes into something a little more elegant and efficient. > > One of the things I am trying to do is better selection. What I would > really like to be able to do

[Puppet Users] Re: Resource ordering

2009-07-22 Thread Nigel Kersten
On Wed, Jul 22, 2009 at 5:03 AM, Trevor Vaughan wrote: > > I was thinking of this in a very fine grained way, such as a metaparameter. > > The situation that made me think of this is: > > class foo { >  file { 'super/important': >    ensure => 'file', >    content => 'something great\n' >  } > >  

[Puppet Users] Re: Resource ordering

2009-07-22 Thread Trevor Vaughan
For the most part, execs is it, but sometimes you might use it for a file or for a custom type. I suppose that it could be built into each type as necessary with just as much effectiveness. In this case though, we might want to set up logging for the exec only on specific failure states. I.e. 2

[Puppet Users] Re: Custom type fails when requiring another plugin

2009-07-22 Thread S H
On Tue, Jul 21, 2009 at 10:14 AM, jcbollinger wrote: > > > On Jul 16, 4:48 pm, S H wrote: > > Puppet 0.24.8. > > > > I'm building a custom type and have run into a bit of a snag. If I try to > > require another plugin, my type fails to load on the "Retrieving plugins" > > stage of the client run.

[Puppet Users] cron, package and provider

2009-07-22 Thread seph
I'd like to use puppet to manage some cron jobs. Unfortunately, I do not have cron installed on my servers. So, I'd like to use puppet to install cron. Unfortunately, this doesn't seem to work. Puppet complains about the lack of provider before it runs down the dependencies. For example, this ough

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Nigel Kersten
On Wed, Jul 22, 2009 at 8:35 AM, seph wrote: > > I'd like to use puppet to manage some cron jobs. Unfortunately, I do not > have cron installed on my servers. So, I'd like to use puppet to install > cron. Unfortunately, this doesn't seem to work. Puppet complains about > the lack of provider befor

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Teyo Tyree
Delivered from mobile device. On Jul 22, 2009, at 8:40 AM, Nigel Kersten wrote: > > On Wed, Jul 22, 2009 at 8:35 AM, seph wrote: >> >> I'd like to use puppet to manage some cron jobs. Unfortunately, I >> do not >> have cron installed on my servers. So, I'd like to use puppet to >> install

[Puppet Users] Newbie provider development: Failed to retrieve current state of resource

2009-07-22 Thread S H
As I mentioned in another thread, I'm trying to work through the kinks in developing my own types/providers. I appear to be doing something very wrong, but I don't know what. On my puppetmaster, I've got the following: - # modules/test/plugins/puppet/ty

[Puppet Users] passenger for Hardy

2009-07-22 Thread Mark Foster
Just wanted to put the word out, if you are interested in running Puppet on Passenger with Ubuntu Hardy, the updated packages can be found @ the BitPusher PPA on Launchpad. https://launchpad.net/~bitpusher/+archive/ppa --~--~-~--~~~---~--~~ You received this messag

[Puppet Users] Re: passenger for Hardy

2009-07-22 Thread Nigel Kersten
On Wed, Jul 22, 2009 at 9:05 AM, Mark Foster wrote: > Just wanted to put the word out, if you are interested in running Puppet on > Passenger with Ubuntu Hardy, the updated packages can be found @ the > BitPusher PPA on Launchpad. > > https://launchpad.net/~bitpusher/+archive/ppa How do these com

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread seph
Sorry, package["anacron"] is a bad example, since that package doesn't actually provide cron. But it behaves identically with package["cron"]. The issue is as Teyo describes -- the failure occurs before the package resource is ever executed. I get the same error if the package doesn't exist, or

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: > Sorry, package["anacron"] is a bad example, since that package doesn't > actually provide cron. But it behaves identically with > package["cron"]. > > The issue is as Teyo describes -- the failure occurs before the package > resource is ever executed. I get the same error if the pa

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread seph
Still fails for me. Perhaps it changed in some puppet version? r...@puppet-test:~# puppet -V 0.24.8 r...@puppet-test:~# cat /var/tmp/puppet-cron.pp package{ "cron": ensure => "latest", } Cron { require => [ Package["cron"], Service["cron"] ], } cron {"puppet cron test"

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: > Still fails for me. Perhaps it changed in some puppet version? > > r...@puppet-test:~# puppet -V > 0.24.8 > > r...@puppet-test:~# cat /var/tmp/puppet-cron.pp > package{ "cron": > ensure => "latest", > } > > Cron { > require => [ Package["cron"], Service["cron"] ]

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread seph
I'm running on ubuntu. Anyhow, I'm running puppet with only that file. Nothing more. So if it needs an explicit service definition, it should complain about it. Anyhow I tried it, same error. The cron thing fails out before it gets anywhere. seph Joe McDonagh writes: > seph wrote: >> Still fa

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: > I'm running on ubuntu. Anyhow, I'm running puppet with only that > file. Nothing more. So if it needs an explicit service definition, it > should complain about it. Anyhow I tried it, same error. The cron thing > fails out before it gets anywhere. > > seph > > > Joe McDonagh writes:

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread seph
Joe McDonagh writes: > I think it would be non-trivial to make the provider aware of what > packages and what services it needs, which it would need to do to tell > you anything more than the provider can't be found. Is the cron package > installed after you run the manifest? This is exactly

[Puppet Users] Re: Custom type fails when requiring another plugin

2009-07-22 Thread Luke Kanies
On Jul 16, 2009, at 2:48 PM, S H wrote: > Puppet 0.24.8. > > I'm building a custom type and have run into a bit of a snag. If I > try to require another plugin, my type fails to load on the > "Retrieving plugins" stage of the client run. Puppet immediately loads all downloaded ruby files, wi

[Puppet Users] Re: Newbie provider development: Failed to retrieve current state of resource

2009-07-22 Thread Luke Kanies
On Jul 22, 2009, at 8:55 AM, S H wrote: > As I mentioned in another thread, I'm trying to work through the > kinks in developing my own types/providers. I appear to be doing > something very wrong, but I don't know what. > > On my puppetmaster, I've got the following: > >

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: > Joe McDonagh writes: > > >> I think it would be non-trivial to make the provider aware of what >> packages and what services it needs, which it would need to do to tell >> you anything more than the provider can't be found. Is the cron package >> installed after you run the ma

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread seph
These are the ubuntu packages. r...@puppet-test:~# dpkg -s puppet | grep Version Version: 0.24.8-1 r...@puppet-test:~# dpkg -s facter | grep Version Version: 1.5.1-0.1 seph Joe McDonagh writes: > IDK if you saw my previous e-mail, but did you get this from > ftp.ubuntu.com or rubyge

[Puppet Users] Re: Newbie provider development: Failed to retrieve current state of resource

2009-07-22 Thread S H
On Wed, Jul 22, 2009 at 1:59 PM, Luke Kanies wrote: > > On Jul 22, 2009, at 8:55 AM, S H wrote: > > > As I mentioned in another thread, I'm trying to work through the > > kinks in developing my own types/providers. I appear to be doing > > something very wrong, but I don't know what. > > > > On m

[Puppet Users] Re: Custom type fails when requiring another plugin

2009-07-22 Thread S H
On Wed, Jul 22, 2009 at 1:56 PM, Luke Kanies wrote: > > On Jul 16, 2009, at 2:48 PM, S H wrote: > > > Puppet 0.24.8. > > > > I'm building a custom type and have run into a bit of a snag. If I > > try to require another plugin, my type fails to load on the > > "Retrieving plugins" stage of the cli

[Puppet Users] Re: In the catalog, /Settings[*] is what?

2009-07-22 Thread nicholas
Puppetmasterd runs as root, though I suppose I could start it as puppet The main thing I am trying to do here is not have the CA directory, and all its files owned by root I want all the CA stuff to continue to be owned by the puppet user. I guess what I mean is that I want to be able to specif

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: > These are the ubuntu packages. > > r...@puppet-test:~# dpkg -s puppet | grep Version > Version: 0.24.8-1 > > r...@puppet-test:~# dpkg -s facter | grep Version > Version: 1.5.1-0.1 > > seph > > Joe McDonagh writes: > > >> IDK if you saw my previous e-mail, but did you get

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread seph
I got the same error when it was run from a puppetmaster, I switched to a simpler local example to debug it. If you don't have cron installed, does puppet error out, or install it like it ought? seph Joe McDonagh writes: > I'm running out of ideas, I do this same thing, on the same OS and >

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: > I got the same error when it was run from a puppetmaster, I switched to > a simpler local example to debug it. > > If you don't have cron installed, does puppet error out, or install it > like it ought? > > seph > > Joe McDonagh writes: > > >> I'm running out of ideas, I do this

[Puppet Users] Re: puppetshow

2009-07-22 Thread Moty
After encountering more problems such as no ability to compile RubyRRDtool-0.6.0.tgz when no other rrd library is working,,, I decided (not happily) to move from my Ubuntu jaunty 9.04 to RHEL5.3 and it solved both problems. Moty On Jun 22, 11:48 pm, Moty wrote: > Hi all > > How do I get

[Puppet Users] Re: passenger for Hardy

2009-07-22 Thread Mark Foster
On Jul 22, 9:11 am, Nigel Kersten wrote: > On Wed, Jul 22, 2009 at 9:05 AM, Mark Foster wrote: > > Just wanted to put the word out, if you are interested in running Puppet on > > Passenger with Ubuntu Hardy, the updated packages can be found @ the > > BitPusher PPA on Launchpad. > > >https://la

[Puppet Users] Re: passenger for Hardy

2009-07-22 Thread Nigel Kersten
On Wed, Jul 22, 2009 at 1:31 PM, Mark Foster wrote: > > > > On Jul 22, 9:11 am, Nigel Kersten wrote: >> On Wed, Jul 22, 2009 at 9:05 AM, Mark Foster wrote: >> > Just wanted to put the word out, if you are interested in running Puppet on >> > Passenger with Ubuntu Hardy, the updated packages can b

[Puppet Users] Re: optional file{ ensure => file}

2009-07-22 Thread David Sowder
That works inversely proportionally to the number of "special" boxes you have for a particular resource and since we have a handful or resources that work this way, we'd definitely prefer something similar to the approach we're currently using in 0.22.4. If we have to though, we do already hav

[Puppet Users] Re: passenger for Hardy

2009-07-22 Thread Julian Simpson
I've happily used the Brightbox Hardy packages on two different systems. Quite happy with them, though it's my first time using Passenger, so I can't really judge. At least some of the sources are on GitHub, too: http://github.com/johnl/deb-passenger/tree/master Julian. 2009/7/22 Nigel Kerste

[Puppet Users] service{} hooks on FreeBSD

2009-07-22 Thread Brian A. Seklecki
All: We're going to need to reevaluate provider/service/freebsd.rb in big ways. For example: service { "cron": enable => "true", ensure => "running" } Will write /etc/rc.conf.d/cron w/ cron_enable=YES despite /etc/defaults/rc.conf having cron_enable=YES Intel

[Puppet Users] Re: Change Management Practices.

2009-07-22 Thread Andreas Zuber
I try to explain how we implemented our workflow. We developed some strategies to make puppet module development easy to test and we have a way to rollout our configuration to different environments by simply taging the versions we think they are stable enough. Basically we use the power of th

[Puppet Users] puppet class syntax error

2009-07-22 Thread al...@leapfrog
I'm in the process of setting up our puppet environment, and am creating dummy classes so that I can test/use our node classification script, however my dummy classes are throwing the following error. puppetmasterd[3908]: Could not parse for environment production: Syntax error at 'Stage_cis2' at

[Puppet Users] Re: puppet class syntax error

2009-07-22 Thread Teyo Tyree
On Wed, Jul 22, 2009 at 2:00 PM, al...@leapfrog wrote: > > I'm in the process of setting up our puppet environment, and am > creating dummy classes so that I can test/use our node classification > script, however my dummy classes are throwing the following error. > > puppetmasterd[3908]: Could no