[Puppet Users] Re: Testing if a resource is already defined

2009-06-18 Thread Peter Meier
Hi > Is it possible to test if a particular resource has already been > defined? I'd like to do something like this: > > if !Host["$fqdn"] { > host {"$fqdn": ip => "$ipaddress_eth0" } > } > > Essentially, test to see if there is no Host resource defined for the > current server and if not

[Puppet Users] Re: Solaris Packages

2009-06-18 Thread David Schmitt
Andy Kocher wrote: > Hi, > > I'm having troubles installing more than one Solaris package. My > nodes.pp looks like: > > start > #/etc/puppet/test/manifests/node.pp > > node basenode { > include package_OpenSSH > include package_sudo > include package_SMCfping > } > > node default inherits

[Puppet Users] Re: Server Hierarchies and other configuration questions

2009-06-18 Thread David Schmitt
Don wrote: >> My own ntp module[1] only knows two kinds of ntp hosts: servers and >> clients. The former connect to each other and external sources, while >> the latter only connect to the local servers. The distinction is easily >> done: those nodes which have set $ntp_servers are those which con

[Puppet Users] Re: how to have "multilines" ?

2009-06-18 Thread David Schmitt
Serge LE LOUARNE wrote: > Hi, > > I install blender ;-) > > My pp file (in actual state, I have no backup of previous versions) : > > class blender { > file { "/tmp/blender-2.49-linux-glibc236-py25-i386.tar.bz2": >owner => root, >group => root, >mode =>

[Puppet Users] Problem with variable scoping

2009-06-18 Thread Saurabh Verma
I have two a base class *class A { $project = mailbox $nagios_hostgroup = "X" $nagios_contact_groups = "Y" include base_node## All the common classes goes here } node mailbox-base { include A } class A-nagios { include A-common # defines for nagios co

[Puppet Users] Re: passenger on Mac OS X question

2009-06-18 Thread Allan Marcus
No, I'm not. bash-3.2# ps ax | grep -i pup 10815 ?? Ss 0:00.02 /opt/local/bin/ruby /opt/local/bin/ puppetmasterd is there a special way I need to start puppetmasterd? Right now, since I'm just testing, I just start it on the command line as the root user. --- Thanks, Allan Marcus 505

[Puppet Users] puppet+mongrel+netstat

2009-06-18 Thread Arnau Bria
Hi all, my server runs puppet+mongrel: [r...@ser01 ~]# rpm -qa|grep mongrel rubygem-mongrel-1.0.1-6.el5 [r...@ser01 ~]# rpm -qa|grep puppet puppet-server-0.24.8-1.el5.1 puppet-0.24.8-1.el5.1 when I do netstat I see may connections in TIME_WAIT like this one: tcp0 0 localhost.local

[Puppet Users] subscribe implies require?

2009-06-18 Thread Dan Bode
I noticed in that many of the modules in lab42 have resources that use require and subscribe for the same resource. Doesn't subscribe imply require? (and notify implies before) class syslog file { "syslog.conf": .. } service { "syslog": .. require => Fi

[Puppet Users] Re: passenger on Mac OS X question

2009-06-18 Thread Nigel Kersten
On Thu, Jun 18, 2009 at 6:28 AM, Allan Marcus wrote: > > No, I'm not. > > bash-3.2# ps ax | grep -i pup > 10815 ?? Ss 0:00.02 /opt/local/bin/ruby /opt/local/bin/ > puppetmasterd > > is there a special way I need to start puppetmasterd? Right now, since > I'm just testing, I just start it o

[Puppet Users] puppet client on centos5 / apt-rpm

2009-06-18 Thread hyde
I have puppet client on centos5, but we don't use yum to install packages, we use apt-rpm to install packages, so it would be 'apt-get install packagename' instead of 'yum install packagename'. How can I customize puppet for the above? Thanks, Hai --~--~-~--~~~---~--

[Puppet Users] Re: puppet client on centos5 / apt-rpm

2009-06-18 Thread Nigel Kersten
On Thu, Jun 18, 2009 at 2:26 AM, hyde wrote: > > I have puppet client on centos5, but we don't use yum to install > packages, we use apt-rpm to install packages, so it would be 'apt-get > install packagename' instead of 'yum install packagename'. > > How can I customize puppet for the above? fo

[Puppet Users] Re: how to have "multilines" ?

2009-06-18 Thread Evan Hisey
> > Serge LE LOUARNE wrote: >> Hi, >> >> I install blender ;-) >> >> My pp file (in actual state, I have no backup of previous versions)  : >> >> class blender { >>     file { "/tmp/blender-2.49-linux-glibc236-py25-i386.tar.bz2": >>            owner => root, >>            group => root, >>        

[Puppet Users] Puppet Password Default

2009-06-18 Thread Pedro
Hi I need help, I want to know what user and password that the puppet has a default or if necessary create a user as you would Greetings --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post t

[Puppet Users] Re: subscribe implies require?

2009-06-18 Thread Paul Lathrop
Dan, You are correct: subscribe is a superset of require, and notify is a superset of before. --Paul On Thu, Jun 18, 2009 at 7:42 AM, Dan Bode wrote: > I noticed in that many of the modules in lab42 have resources that use > require and subscribe for the same resource. > > Doesn't subscribe imp

[Puppet Users] variable in node definition

2009-06-18 Thread Moty
Hi all, I have a question: I have my site setup similiar to the model of lab42example (infrastructure,roles,nodes) infrastructure.pp: node intranet { here I have some variable definitions } roles.pp: class minimal { include hosts_modules } nodes.pp: node 'some_node_name' inheri

[Puppet Users] Default Password PuppetShow

2009-06-18 Thread Pedro
Hi I need help, I want to know what user and password that the PuppetShow has a default or if necessary create a user as you would Greetings --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To pos

[Puppet Users] Re: Unable to exec 'sudo apt-get build-dep rubygems'

2009-06-18 Thread Swati Tiwari
Hi, I am sorry if I am being silly but what do you mean by running it from something with no terminal attached? I am sshing into a box and I run the particular command on that box. The command " sudo apt-get install rubygems" runs fine but within an exec in the puppet manifest returns a 1. Can an

[Puppet Users] Re: Puppet Password Default

2009-06-18 Thread Evan Hisey
On Thu, Jun 18, 2009 at 10:58 AM, Pedro wrote: > > Hi > I need help, I want to know what user and password that the puppet has > a default or if necessary create a user as you would > Greetings > Puppet has the user puppet on the server, but it does not have a user or password as you do not actua

[Puppet Users] Re: how do I submit a patch?

2009-06-18 Thread Dick Davies
Thanks Paul [r...@shoemaker ~]# ./lscpu Architecture: i686 CPU(s):1 Thread(s) per core:1 Core(s) per socket:1 CPU socket(s): 1 Vendor ID: GenuineIntel CPU family:6 Model: 15 Stepping: 11 CPU MHz:

[Puppet Users] Re: passenger on Mac OS X question

2009-06-18 Thread Allan Marcus
I think this might be a RUBYLIB issues. What is the best way to tell my system to look for the libraries? For example: /opt/local/lib/ruby/gems/1.8/gems/rack-0.4.0/lib Is there any logging from Passenger as it tries to run the config.ru file? --- Thanks, Allan Marcus 505-667-5666 On Ju