[Puppet Users] Using variables in virtual resources

2009-09-18 Thread Kenneth Holter
Hi. I've defined a virtual user "kenneth", and depending on a variable in the node definiton I'd like to add the users to different groups. Consider this example: ## Code start node "server.example.com" { $server_type = "typeA" realize User[kenneth] } @user {"kenneth": ensur

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

2009-09-18 Thread David Schmitt
Julian Simpson wrote: > I would have assumed that you'd always want to qualify the module > names as the best practise. Collisions in namespaces wreak havoc in > many other domains. I'm thinking of Java class names being bound to > domain names as an approach that works elsewhere. Like rpm/deb

[Puppet Users] Re: cannot parse template when fact does not exist

2009-09-18 Thread David Schmitt
Chris Blumentritt wrote: > I receive the following error when trying to do the puppet below: > Failed to parse template s_apache_site/site.conf.erb: Could not find > value for 'ipaddress_eth0_0' > > As far as I can tell the ipaddress_eth0_0 fact has to exist on the > client before it will parse

[Puppet Users] ensure => true not working for sshd

2009-09-18 Thread Ben Lavender
Hello, I'm confused why puppet wont start a service I have configured. In the module, which is definitely being run (everything else in it works): service { ssh: name => 'sshd', ensure => true, enable => true } As I understand the docs, the ensure => true should start sshd if it is n

[Puppet Users] Re: ensure => true not working for sshd

2009-09-18 Thread David Schmitt
Ben Lavender wrote: > Hello, > > I'm confused why puppet wont start a service I have configured. > > In the module, which is definitely being run (everything else in it > works): > > service { ssh: >name => 'sshd', >ensure => true, >enable => true > } > > As I understand the docs,

[Puppet Users] Re: Array of values for (exec) return?

2009-09-18 Thread David Schmitt
John Ingersoll wrote: > Hi, > > I have an exec {} that runs a command line script, for which 0 and 1 are > both good return codes. (Specifically, spamassassin update; 1 means no > new downloads). I tried > > returns => [0,1], I'm using this for sa-update, in an exec: > /usr/bin/sa-update

[Puppet Users] Re: ensure => true not working for sshd

2009-09-18 Thread Ben Lavender
Thanks for your response. I went through the type reference a little more closely. I had assumed that the provider => redhat (I am running rhel 5) would give me service xyz start/status/stop/restart on everything, but I see now that's not the case. Modules are being updated accordingly :) Howe

[Puppet Users] Re: ensure => true not working for sshd

2009-09-18 Thread David Schmitt
Ben Lavender wrote: > Thanks for your response. > > I went through the type reference a little more closely. I had > assumed that the provider => redhat (I am running rhel 5) would give > me service xyz start/status/stop/restart on everything, but I see now > that's not the case. Modules are be

[Puppet Users] Re: puppetd --server and server option in puppetd.conf

2009-09-18 Thread jcbollinger
On Sep 17, 2:53 pm, David Sowder wrote: > I'm in the process of upgrading a bunch of our Puppet clients from 0.22.4 to > 0.24.8 after recently upgrading our puppetmaster similarly. > > I've run into a problem that seems like it'd be so likely seen by someone > else that if the problem isn't l

[Puppet Users] Re: puppetd --server and server option in puppetd.conf

2009-09-18 Thread Neil Prockter
jcbollinger wrote: > > > On Sep 17, 2:53 pm, David Sowder wrote: >> I'm in the process of upgrading a bunch of our Puppet clients from 0.22.4 to >> 0.24.8 after recently upgrading our puppetmaster similarly. >> >> I've run into a problem that seems like it'd be so likely seen by someone >> el

[Puppet Users] Re: puppetd --server and server option in puppetd.conf

2009-09-18 Thread Todd Zullinger
jcbollinger wrote: > I have no idea what you may have done wrong, if anything, but for my > CentOS 5 / x86(32) environment I downloaded the 0.24.8 source tarball > from ReductiveLabs, updated the included rpm spec file slightly (reply > to me by e-mail if you want details), and built it. May I ask

[Puppet Users] SLES 10 Install trouble

2009-09-18 Thread Hariharan Gopalan
I am having a hard time installing puppet on an SLES 10 system. I managed to install ruby, but the x86_64 rpm of puppet from opensuse repository does not recognize the ruby installation from source. Was wondering if any one has puppet running on x86_64 SLES10 Thanks Hari --~--~-~--~

[Puppet Users] Mac Domainname and facter

2009-09-18 Thread engle
We have a large number of Macs that are using puppet to install packages. The source of the packages is determined by the domain name of the client. We are using ISC's dhcpd. The macs seem to pick up the correct domain name from the dhcp server but facter is not picking it up. If I type "domainnam

[Puppet Users] Is this bug 2617?

2009-09-18 Thread Allan Marcus
I think this is the same as http://projects.reductivelabs.com/issues/2617 I'm seeing this on Mac OS X 10.5 and puppet 0.25.0. Everything seem to work with mongrel, but with passenger, I see on the client: info: Retrieving fact debug: Using cached certificate for ca debug: Using cached certific

[Puppet Users] Re: Mac Domainname and facter

2009-09-18 Thread Allan Marcus
/Library/Ruby/Site/1.8/facter/domain.rb I think for the Mac you need to set the search domain in the Network System Pref, and that is what facter uses, but I'm not sure I'm reading the code right. --- Thanks, Allan Marcus 505-667-5666 On Sep 18, 2009, at 10:11 AM, engle wrote: > > We ha

[Puppet Users] Re: Mac Domainname and facter

2009-09-18 Thread Allan Marcus
whoops, /Library/Ruby/Site/1.8/facter/hostname.rb also seems to play a part. The hostname command is used, then it's parsed with regex magic. --- Thanks, Allan Marcus 505-667-5666 On Sep 18, 2009, at 12:16 PM, Allan Marcus wrote: > > /Library/Ruby/Site/1.8/facter/domain.rb > > I think for

[Puppet Users] Re: Mac Domainname and facter

2009-09-18 Thread Nigel Kersten
On Fri, Sep 18, 2009 at 11:16 AM, Allan Marcus wrote: > > /Library/Ruby/Site/1.8/facter/domain.rb > > I think for the Mac you need to set the search domain in the Network > System Pref, and that is what facter uses, but I'm not sure I'm > reading the code right. No, if you're using DHCP it shoul

[Puppet Users] Re: Array of values for (exec) return?

2009-09-18 Thread John Ingersoll
On Fri, Sep 18, 2009 at 4:46 AM, David Schmitt wrote: > > John Ingersoll wrote: > > Hi, > > > > I have an exec {} that runs a command line script, for which 0 and 1 are > > both good return codes. (Specifically, spamassassin update; 1 means no > > new downloads). I tried > > > > returns => [0

[Puppet Users] copying file from multiple sources

2009-09-18 Thread Luke Schierer
I am looking at migrating a set of servers from cfengine management to puppet management. For the most part, the move has been relatively straight forward, and I am pleased with the way that puppet's modules have made some of the things I did in cfengine2 much cleaner. There is one thing though t

[Puppet Users] Re: copying file from multiple sources

2009-09-18 Thread Disconnect
(Wow, hi Luke! LTNT!) 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 On Fri, Sep 18, 2009 at 4:37 PM, Luke Schierer wrote: > I am looking at mi

[Puppet Users] Define inside 'if'

2009-09-18 Thread Trevor Vaughan
Should I be able to put a define inside of an 'if' block? It doesn't seem to be working in 0.24.8. Thanks, Trevor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send e

[Puppet Users] Re: copying file from multiple sources

2009-09-18 Thread Luke Schierer
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"] > - check for modules/foo/file-www4, then file-jaunty, then

[Puppet Users] failing to make rrdgraph to work

2009-09-18 Thread Asif Iqbal
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 metricsSep 18 23:46:36 sys-ubuntu puppetmasterd[30748]: RRD library is missing; cannot graph metrics Sep 18 23:46:36 sys-ubuntu