[Puppet Users] Re: template command

2009-07-24 Thread Bjørn Dyresen
On Jul 25, 2009, at 2:09 AM, lance dillon wrote: > > >> Try with something like: >> >> <%- if role == "fast" -%> >><%- line = "The line you want to print" -%> >> <%- end -%> >> <%= line -%> >> >> > > A bit to quick there. For this to work you have to feed the template > with the variable.

[Puppet Users] Re: template command

2009-07-24 Thread lance dillon
Try with something like: > > <%- if role == "fast" -%> ><%- line = "The line you want to print" -%> > <%- end -%> > <%= line -%> > > > > A bit to quick there. For this to work you have to feed the template with > the variable. You can just feed $role with a default value. eg default.. > > The

[Puppet Users] Re: Notifying a service when exported resources go away

2009-07-24 Thread Teyo Tyree
On Fri, Jul 24, 2009 at 12:47 PM, Eric Gerlach wrote: > > Hi, > > I'm working with nagios, and if I'm de-configuring a server manually, I'd > like > to have the monitoring system not complain about it vanishing. > > So, for each host I have: > >@@nagios_host { "$fqdn": >use => "generic

[Puppet Users] command to list intra-class references?

2009-07-24 Thread eagleheart
Hi, If I have a resource in a class like file { somefile: ensure => present, ... } Is there a puppet command to list any reference to it, e.g. - " require => File[somefile] " - among all the class definitions? Of course there's always unix grep, but a puppet command would be n

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-07-24 Thread Digant C Kasundra
> * Environments and the workflow surrounding them > > There is already UsingMultipleEnvironments, which has all the > technical > stuff. Perhaps a few sentences about how to use the production, > testing, > and development environment. I'd love to be able to update that down the line (probabl

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-07-24 Thread Digant C Kasundra
- "Paul Lathrop" wrote: > Hi Puppeteers, > > I spent some time tonight making a first pass at what I hope will > eventually be a good replacement for the current "Puppet Best > Practices" page on the wiki. I know this needs *tons of work, but I > hit a good pausing point and decided it was

[Puppet Users] Re: template command

2009-07-24 Thread Bjørn Dyresen
On Jul 24, 2009, at 11:27 PM, Bjørn Dyresen wrote: > > On Jul 24, 2009, at 10:17 PM, lance dillon wrote: > >> I need to be able to include a line in a template, based on >> presence and value of a variable, something like this: >> >> # file.erb >> blah >> blah blah >> <% if role == "fast" -%>

[Puppet Users] Re: template command

2009-07-24 Thread Bjørn Dyresen
On Jul 24, 2009, at 10:17 PM, lance dillon wrote: > I need to be able to include a line in a template, based on presence > and value of a variable, something like this: > > # file.erb > blah > blah blah > <% if role == "fast" -%> > this line is here now > <% end -%> > > > > I only want the li

[Puppet Users] Re: Source Arrays and Template Arrays

2009-07-24 Thread jb
It doesn't seem to work from me, bombing out if the template specified first doesn't exist. you'd expect it to gracefully ignore and try the next...this a bug? running puppet-0.24.6-1.1 On Jul 23, 12:31 pm, Udo Waechter wrote: > hmmm, right after sending the provious mail, I realised somethin

[Puppet Users] template command

2009-07-24 Thread lance dillon
I need to be able to include a line in a template, based on presence and value of a variable, something like this: # file.erb blah blah blah <% if role == "fast" -%> this line is here now <% end -%> I only want the line to be included if $role exists and is equal to fast. If $role doesn't exis

[Puppet Users] Notifying a service when exported resources go away

2009-07-24 Thread Eric Gerlach
Hi, I'm working with nagios, and if I'm de-configuring a server manually, I'd like to have the monitoring system not complain about it vanishing. So, for each host I have: @@nagios_host { "$fqdn": use => "generic-host", address => $fqdn, contact_groups => "itstaff",

[Puppet Users] Re: puppetd no-daemonize

2009-07-24 Thread Derek Yarnell
--test does do the right thing and doesn't fork a copy into the background and does what I need it to do running the built in version of ruby (1.8.1) or running the new ruby (1.8.7). Anyway thanks again, derek On Fri, Jul 24, 2009 at 1:05 PM, Trevor Hemsley wrote: > > I no longer have a RHEL4 s

[Puppet Users] Re: puppetd no-daemonize

2009-07-24 Thread Trevor Hemsley
I no longer have a RHEL4 system to try it on but our standard until a few months ago was RHEL4 and puppetd --test certainly used to work (--test includes --no-daemonize) I seem to remember that we had other problems with Ruby as supplied by Centos4 so we installed these: ruby-1.8.5-5.el4.centos.

[Puppet Users] Re: uninstall package on ubuntu

2009-07-24 Thread Wes Reneau
The puppetmaster was still on 8.04. Upgrading to 9.04 hopefully solve my problems. How stupid of me. On Fri, Jul 24, 2009 at 12:25 PM, Wes Reneau wrote: > Replied in line, blue. > > On Fri, Jul 24, 2009 at 11:10 AM, Udo Waechter < > udo.waech...@uni-osnabrueck.de> wrote: > >> Hi, >> several p

[Puppet Users] Re: puppetd no-daemonize

2009-07-24 Thread Derek Yarnell
I spoke too soon, I recompiled with ruby 1.8.7, added rubygems and installed puppet and got the same behavior on RHEL4. Can anyone confirm that --no-daemonize works for them on RHEL4? puppetd --onetime --no-daemonize --verbose --debug Thanks, derek On Thu, Jul 23, 2009 at 7:40 PM, Derek Yarn

[Puppet Users] Re: uninstall package on ubuntu

2009-07-24 Thread Wes Reneau
Replied in line, blue. On Fri, Jul 24, 2009 at 11:10 AM, Udo Waechter < udo.waech...@uni-osnabrueck.de> wrote: > Hi, > several problems: > On 24.07.2009, at 16:52, Wes Reneau wrote: > > Ubuntu 9.04 (Juanty) Server and Client run Jaunty >> Puppetmaster 0.24.4-3 >> Puppet (client)0.24.5-3 >> >> U

[Puppet Users] Re: uninstall package on ubuntu

2009-07-24 Thread Udo Waechter
Hi, several problems: On 24.07.2009, at 16:52, Wes Reneau wrote: Ubuntu 9.04 (Juanty) Server and Client run Jaunty Puppetmaster 0.24.4-3 Puppet (client)0.24.5-3 Usually you should not run newer puppet-clients againts older puppet- master. The other way round usually works. If Jaunty has diff

[Puppet Users] Re: uninstall package on ubuntu

2009-07-24 Thread Wes Reneau
Ubuntu 9.04 (Juanty) Server and Client run Jaunty Puppetmaster 0.24.4-3 Puppet (client)0.24.5-3 sudo puppetd --verbose err: Could not create PID file: /var/run/puppet/puppetd.pid Seems that I have underlying problems. On Fri, Jul 24, 2009 at 10:38 AM, Udo Waechter < udo.waech...@uni-osnabrue

[Puppet Users] Re: uninstall package on ubuntu

2009-07-24 Thread Udo Waechter
Hi. This is really strange and should not be. We use ubuntu (hardy/intrepid) a lot and package management with puppet works really well. What ubuntu version and what puppet version? What happens if you user --verbose for puppetd? That should show you a message about the Package["vlc"] What

[Puppet Users] Re: uninstall package on ubuntu

2009-07-24 Thread Wes Reneau
So, back to my original question, how would I purge vlc and the other dependencies that are installed as a result of the original recipe? Thanks On Thu, Jul 23, 2009 at 8:12 PM, Scott Smith wrote: > > Avi Miller wrote: > > Scott Smith wrote: > >> Am fairly certain --test implies --dry-run and

[Puppet Users] Re: class dependencies

2009-07-24 Thread jcbollinger
On Jul 23, 11:17 pm, Greg wrote: > Simple answer - no. Dependencies can only be between objects in > 0.24.x... For what it's worth, this is reputed to be a new feature of Puppet 0.25, which release is currently in beta testing. --~--~-~--~~~---~--~~ You received

[Puppet Users] Re: Solaris SMF services and their dependencies...

2009-07-24 Thread Matthew Hyclak
On Thu, Jul 23, 2009 at 11:33 PM, Greg wrote: > > Hi all, > > I have an NFS server on our network sharing out package files for > Puppet to install to all and sundry. The clients access said NFS > server via an automounter configuration (I don't want the packages > share mounted all the time, only

[Puppet Users] Re: Tidy symlinks

2009-07-24 Thread Trevor Vaughan
This has turned into a bit of an interesting adventure in the syntax of Tidy. Environment: puppet 0.24.8 on Fedora Core 11 After each run, I touch /tmp/foodir/bar to have something to tidy. Test code: # Environment Setup $testdir = "/tmp/foodir" $subdir = "$testdir/subdir" file { "$testdir":

[Puppet Users] Re: passenger vs mongrel performance

2009-07-24 Thread Larry Ludwig
Ohad, Now that we know that passenger is configured in Mark's case, try rubyEE and let us know the result. -L -- Larry Ludwig Reductive Labs --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group.

[Puppet Users] Re: passenger vs mongrel performance

2009-07-24 Thread Mark Plaksin
Ohad Levy writes: > Hi All, > > I've recently upgraded all of my mongrels to passenger on all of my > puppetmasters, and I'm seeing some performance degradations, hopefully > someone can provide some feedback.. > > i see an increase in cpu and load indicators, and i've calculated that the > actu

[Puppet Users] Re: Adding users to multiple groups

2009-07-24 Thread Bryan Ross
> Try using: ingroups => ['wheel', 'devel'] I was hoping to keep my users organised in neat classes as per the Best Practices documentation, rather than have to define all the groups a specific user is in all in a single place. However, as you point out, it is a valid work around. I presume 'in