[Puppet Users] Re: Define inside 'if'

2009-09-19 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The error: undefined method `safeevaluate' for nil:NilClass at /srv/home/thanos/test.pp:7 on node sys0.homenet The code: class foo { if $operatingsystem == "Fedora" { define bar { notify { "baz": message => "Testing" } } } } inc

[Puppet Users] Re: failing to make rrdgraph to work

2009-09-19 Thread Asif Iqbal
On Sat, Sep 19, 2009 at 4:58 AM, James Turnbull wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Asif Iqbal wrote: > > I am running puppet 0.24.8 on ubuntu 9.04 > > > > I am failing to make the rrdgraph to work > > > > Sep 18 23:46:36 sys-ubuntu puppetmasterd[30748]: RRD library is m

[Puppet Users] Re: copying file from multiple sources

2009-09-19 Thread Disconnect
On Fri, Sep 18, 2009 at 10:08 PM, Luke Schierer wrote: > On Sep 18, 2009, at 18:30 EDT, Disconnect wrote: >> (Wow, hi Luke! LTNT!) > Yes, it has! >> >> The standard way to do that is: >> source => >> ["puppet:///foo/file-$hostname","puppet:///foo/file-$lsbdistcodename >> ","puppet:///foo/file"]

[Puppet Users] Re: copying file from multiple sources

2009-09-19 Thread Luke Schierer
On Sep 19, 2009, at 05:11 EDT, Peter Meier wrote: > > Hi > >>> The standard way to do that is: >>> source => >>> ["puppet:///foo/file-$hostname","puppet:///foo/file-$lsbdistcodename >>> ","puppet:///foo/file"] >>> - check for modules/foo/file-www4, then file-jaunty, then file >>> >> >> As I und

[Puppet Users] Re: failing to make rrdgraph to work

2009-09-19 Thread Ohad Levy
I take it back, after looking at http://groups.google.com/group/puppet-users/browse_thread/thread/b3dfe784d37cece2/09fb32664b579606?lnk=raot&pli=1and doble checking myself, RubyRRDtool does not copmile on Ubuntu 9.04. Sorry, maybe its time to move to another ruby RRD library? Ohad On Sat, Sep 19

[Puppet Users] Re: failing to make rrdgraph to work

2009-09-19 Thread Ohad Levy
I think that the gem RubyRRDtool is not available as a package under Ubuntu 9.04 If I'm right, try gem install RubyRRDtool (make sure you have the rrdtool-devel packages to build the native ext). Ohad On Sat, Sep 19, 2009 at 4:58 PM, James Turnbull wrote: > > -BEGIN PGP SIGNED MESSAGE-

[Puppet Users] Re: SLES 10 Install trouble

2009-09-19 Thread Silviu Paragina
From what I understand you compiled ruby from source. Package dependencies only see other packages, as opposed to what is actually on the system, so the rpm package for puppet does not see a ruby source installation, and that is how packages work. If you need packages that depend on ruby you

[Puppet Users] Re: copying file from multiple sources

2009-09-19 Thread Peter Meier
Hi >> The standard way to do that is: >> source => >> ["puppet:///foo/file-$hostname","puppet:///foo/file-$lsbdistcodename >> ","puppet:///foo/file"] >> - check for modules/foo/file-www4, then file-jaunty, then file >> > > As I understood source arrays, would only grab the first one to > suc

[Puppet Users] Re: failing to make rrdgraph to work

2009-09-19 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Asif Iqbal wrote: > I am running puppet 0.24.8 on ubuntu 9.04 > > I am failing to make the rrdgraph to work > > Sep 18 23:46:36 sys-ubuntu puppetmasterd[30748]: RRD library is missing; > cannot store metrics > Sep 18 23:46:36 sys-ubuntu puppetmaster

[Puppet Users] Re: Define inside 'if'

2009-09-19 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Trevor Vaughan wrote: > Should I be able to put a define inside of an 'if' block? > > It doesn't seem to be working in 0.24.8. > Show us the code and the error? Regards James Turnbull - -- Author of: * Pro Linux Systems Administration (http://ti