Re: [Puppet Users] Puppet in the DMZ

2011-02-10 Thread Patrick
On Feb 10, 2011, at 10:25 PM, John Warburton wrote: > Curse GW Bush and his 'Axis of Evil' - my google searches are contaminated > with hits to Korea, and other such fun... > > Does anyone have any experiences with puppet in the DMZ they can share? > > At my puppet master training (Hi Hunter),

[Puppet Users] Puppet in the DMZ

2011-02-10 Thread John Warburton
Curse GW Bush and his 'Axis of Evil' - my google searches are contaminated with hits to Korea, and other such fun... Does anyone have any experiences with puppet in the DMZ they can share? At my puppet master training (Hi Hunter), it was mentioned some people compile their catalogs inside, then s

[Puppet Users] Re: Unable to use facts

2011-02-10 Thread windowsrefund
On Feb 10, 8:47 pm, Mohamed Lrhazi wrote: > On a client, does facter show the fact: > As I mentioned above, facter runs fine on every client. In addition, manifests compile as expected when they're served via webrick. This situation only occurs when I serve via nginx/passenger. -- You receive

Re: [Puppet Users] Unable to use facts

2011-02-10 Thread Mohamed Lrhazi
On a client, does facter show the fact: # facter | grep operatingsystem On Thu, Feb 10, 2011 at 4:37 PM, windowsrefund wrote: > operatingsystem -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@

Re: [Puppet Users] host classification based on hostnames

2011-02-10 Thread Joe Gross
On Wed, Feb 9, 2011 at 3:06 AM, Nigel Kersten wrote: > > > This is actually my favorite way of doing things. A single default > node that includes a single module "base" which then decides which > other modules to include. > > This does work best if you distribute custom facts that provide more >

Re: [Puppet Users] Re: puppetmaster 100%cpu usage on 2.6 (not on 0.24)

2011-02-10 Thread John Warburton
On 8 February 2011 06:15, Ashley Penney wrote: > I just upgraded the master, I was too lazy to do the nodes yet. > > > On Mon, Feb 7, 2011 at 1:56 PM, Brice Figureau < > brice-pup...@daysofwonder.com> wrote: > >> On 07/02/11 17:23, Ashley Penney wrote: >> > Because I like to live dangerously I up

Re: [Puppet Users] dot in file path

2011-02-10 Thread Rohan McGovern
dragonfly said: > I wish to have puppet copy a file to /etc/cron.hourly/ on target > machines, however when puppetmaster attempts to build the catalog it > complains about a syntax error in both nodes.pp as well as in the > manifest init.pp for this class. I have experimented with various > quotin

[Puppet Users] dot in file path

2011-02-10 Thread dragonfly
I wish to have puppet copy a file to /etc/cron.hourly/ on target machines, however when puppetmaster attempts to build the catalog it complains about a syntax error in both nodes.pp as well as in the manifest init.pp for this class. I have experimented with various quotings as well as escaping the

[Puppet Users] Re: facter to display all active networks

2011-02-10 Thread John Lyman
You could probably get away with using template or an inline template. On Feb 10, 5:00 pm, windowsrefund wrote: > On Feb 10, 3:59 pm, Forrie wrote: > > > Facter will display the values associated with network_* specific > > settings.   Shouldn't there be a way to display all connected (active)

Re: [Puppet Users] Unwanted whitespace generated by template

2011-02-10 Thread Mohamed Lrhazi
Thanks a lot. Turns out I also had an actual whitespace after the "if tag" !! On Thu, Feb 10, 2011 at 5:19 PM, Nan Liu wrote: > On Thu, Feb 10, 2011 at 2:15 PM, Mohamed Lrhazi wrote: >> I have this in a template: >> >> ===cut here= >> # Allow ICMP traffic >> -A RH

Re: [Puppet Users] Unwanted whitespace generated by template

2011-02-10 Thread Nan Liu
On Thu, Feb 10, 2011 at 2:15 PM, Mohamed Lrhazi wrote: > I have this in a template: > > ===cut here= > # Allow ICMP traffic > -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT > > <% if netbackup_master_servers %> Suppress the new line with a -%> <% if netb

Re: [Puppet Users] Unwanted whitespace generated by template

2011-02-10 Thread Adam Gibbins
On 10 February 2011 22:15, Mohamed Lrhazi wrote: > I have this in a template: > > ===cut here= > # Allow ICMP traffic > -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT > > <% if netbackup_master_servers %> > <% netbackup_master_servers.each do |master_serve

[Puppet Users] Unwanted whitespace generated by template

2011-02-10 Thread Mohamed Lrhazi
I have this in a template: ===cut here= # Allow ICMP traffic -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT <% if netbackup_master_servers %> <% netbackup_master_servers.each do |master_server| -%> # Allow communication with NetBackup master server <%= ma

[Puppet Users] Re: array of arrays in manifests?

2011-02-10 Thread Mohamed Lrhazi
Sorry am confused... it's end of day This does seem to flatten my array: $myarray = [ ["a","b"],["c","d"] ] While this does not: $myarray1=["a","b"] $myarray2=["c","d"] $myarray = [ $myarray1,$myarray2 ] Thanks. -- You received this message because you are subscribed to the Google Group

[Puppet Users] Re: facter to display all active networks

2011-02-10 Thread windowsrefund
On Feb 10, 3:59 pm, Forrie wrote: > Facter will display the values associated with network_* specific > settings.   Shouldn't there be a way to display all connected (active) > networks in one command?    For example: > > # facter networks > 192.168.1.2 > 10.0.1.1 > 10.10.23.0 > Sounds like it

[Puppet Users] Re: array of arrays in manifests?

2011-02-10 Thread Mohamed Lrhazi
Please ignore... was describing the wrong array... this var works as expected. On Thu, Feb 10, 2011 at 4:44 PM, Mohamed Lrhazi wrote: > I defined a var like so: > > $myarray = [ ["a","b"],["c","d"] ] > > Then in a template I tried something like: > > <% myarray.each do |element| -%> >  <%= elemen

[Puppet Users] array of arrays in manifests?

2011-02-10 Thread Mohamed Lrhazi
I defined a var like so: $myarray = [ ["a","b"],["c","d"] ] Then in a template I tried something like: <% myarray.each do |element| -%> <%= element[0] %> <% end -%> It does not result in what I expect It seems as if myarray was flattened. are multi-dimensional arrays supported? Thanks,

[Puppet Users] Unable to use facts

2011-02-10 Thread windowsrefund
I'm seeing some odd failures on my newly installed Puppet master. The manifest being served seems to be unable to use the client's facts. For the sake of troubleshooting, I've reduced the details down to a single file resource in manifests/site.pp file { "/tmp/puppet.wtf": ensure => presen

Re: [Puppet Users] convert yum repos into manifest

2011-02-10 Thread Michael Knox
Hi Ashley, Not a problem I've added a release to Puppet Forge ... http://forge.puppetlabs.com/mikeknox/zypprepo It's derived from the yumrepo type in Puppet core (0.25.5). It hasn't been updated it for 2.6.x yet, works fine, but I noticed some warnings about 'audit' when I tried ralsh on it.

[Puppet Users] facter to display all active networks

2011-02-10 Thread Forrie
Facter will display the values associated with network_* specific settings. Shouldn't there be a way to display all connected (active) networks in one command?For example: # facter networks 192.168.1.2 10.0.1.1 10.10.23.0 I could then formulate a conditional based on the available networks

Re: [Puppet Users] puppet server not responding

2011-02-10 Thread Patrick
On Feb 10, 2011, at 7:13 AM, Tim Dunphy wrote: > Hi Guys, > > Changing the server directive in the puppet conf worked!!! Thanks so > much for your help!! > > Also I sent an email yesterday regarding file sharing to the list. > Sorry to be a bother, but I am still struggling with this issue. >

[Puppet Users] exec: creates overrides onlyif?

2011-02-10 Thread Matthew Pounsett
The docs are vague on how the two interact.. but it seems to me that 'creates' will override 'onlyif' in an exec clause. i.e. if the file named by 'creates' exists, then 'onlyif' is ignored. Is someone able to confirm that? Thanks! -- You received this message because you are subscribed to

Re: [Puppet Users] Re: puppetmaster 100%cpu usage on 2.6 (not on 0.24)

2011-02-10 Thread Patrick
On Feb 10, 2011, at 6:55 AM, Udo Waechter wrote: > Hello, > I am one of those who have this problem. Some people suggested using Ruby > Enterprise. I looked at its installation, it looked a little bit > time-consuming, so I did not try that one out. Well, I find it takes about 30 min at the mo

[Puppet Users] Re: Stored configs in MySQL

2011-02-10 Thread Richard Crowley
On Thursday, February 10, 2011 at 11:20 AM, Joe McDonagh wrote: Sounds like you're running the wrong version of the mysql rubygem. If > memory serves, this was a known issue. > We're on 2.7.3 packaged by CentOS. http://projects.puppetlabs.com/issues/3238 seems to indicate the problem exists even

[Puppet Users] Testing custom function and puupet LoadError

2011-02-10 Thread Mohamed Lrhazi
I am using ruby-enterprise, installed under: /opt/ruby-enterprise, when I try to run ruby interpreter I get error about loading puppet: # ruby -rpuppet netbackup_servers.rb ruby: no such file to load -- puppet (LoadError) What do I need to set RUBYLIB env var to? I tried this: export RUBYLIB=$RU

Re: [Puppet Users] Stored configs in MySQL

2011-02-10 Thread Joe McDonagh
Sounds like you're running the wrong version of the mysql rubygem. If memory serves, this was a known issue. -- Joe McDonagh AIM: YoosingYoonickz IRC: joe-mac on freenode L'ennui est contre-révolutionnaire -- You received this message because you are subscribed to the Google Groups "Puppet Use

[Puppet Users] Re: Problem with file serving and envrionments.

2011-02-10 Thread trey85stang
one more thing to note. If I turn off all the evironments, restart puppetmaster and then everything works fine; and just one more clairification it's only "new" modules being created that have the problem. On Feb 10, 10:23 am, trey85stang wrote: > Hey all,  Im still new to puppet so I may be d

[Puppet Users] Re: Stored configs in MySQL

2011-02-10 Thread Richard Crowley
Trouble is, each time a node checks into puppet, a new db handle is > opened without the old one being closed. With a few nodes, it doesn't > take long before there are tens or hundreds of handles, and the db > server won't accept any more. I've just run into this issue as well with the followin

Re: [Puppet Users] duplicate base name error

2011-02-10 Thread Arnau Bria
Hi, not main but [base] you have only one [base] section in your working conf and twon on broken one. Try changin one base to something else. Cheers, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send emai

Re: [Puppet Users] duplicate base name error

2011-02-10 Thread Tim Dunphy
hmmm well my /etc/yum.repos.d directory on the server I am having a problem with is pretty much an rsync of another server that has both yum and puppetd --test working correctly. working server: [root@VIRTCENT04:~] #puppetd --test info: Caching catalog for virtcent04.summitnjhome.com info: Apply

[Puppet Users] Complex data structures: working around a parser bug

2011-02-10 Thread Matthew Pounsett
A few days ago another user posted an issue with complex hashes[1]; it looks like a parser bug, and a bug report was opened[2]. I seem to be having a similar problem, but I haven't been able to make the same workaround function. This is the data structure I'd like to be using, but puppet doesn'

Re: [Puppet Users] duplicate base name error

2011-02-10 Thread Arnau Bria
On Thu, 10 Feb 2011 12:10:54 -0500 Tim Dunphy wrote: > Hello list! Hello, [...] > [root@mclient ~]# puppetd --test > info: Caching catalog for mclient.acadaca.net > info: Applying configuration version '1297357383' > err: //centos/Yumrepo[rpmforge]: Failed to retrieve current state of > resource:

[Puppet Users] duplicate base name error

2011-02-10 Thread Tim Dunphy
Hello list! I am getting an error when I run puppetd --test on the client and I could use some pointers on chasing this down: [root@mclient ~]# puppetd --test info: Caching catalog for mclient.acadaca.net info: Applying configuration version '1297357383' err: //centos/Yumrepo[rpmforge]: Failed t

Re: [Puppet Users] Re: returning a hash (json object) from custom function?

2011-02-10 Thread Peter Meier
> Ok, I was mistaken. Returning a hash works. It would be helpful if > the ruby exceptions bubbled up to puppet reported the correct line > number from the ruby source -- if that is possible. Could you file a bugreport[1], if there isn't yet one? Thanks! Then the chances are high that it will ge

[Puppet Users] Problem with file serving and envrionments.

2011-02-10 Thread trey85stang
Hey all, Im still new to puppet so I may be doing something wrong. The problem I am having is I have setup multiple environments. Going from one environment. To get started with testing that I copied my manifests directory and modules dirctories into a handful of different directories to setup t

Re: [Puppet Users] convert yum repos into manifest

2011-02-10 Thread Ashley Gould
hey Michael, Where did you get zypprepo type? Did you write it? Can you post it? On Wed, Feb 09, 2011 at 11:30:25AM +1100, Michael Knox wrote: > Try ralsh yumrepo > > Just discovered that ralsh can even use custom types out of my > modules ... cool > > $ ralsh zypprepo > zypprepo { 'repo-oss

Re: [Puppet Users] Re: puppetmaster 100%cpu usage on 2.6 (not on 0.24)

2011-02-10 Thread Brice Figureau
On Thu, 2011-02-10 at 15:55 +0100, Udo Waechter wrote: > Hello, > I am one of those who have this problem. Some people suggested using Ruby > Enterprise. I looked at its installation, it looked a little bit > time-consuming, so I did not try that one out. > I upgraded to debian squeeze (of course

Re: [Puppet Users] puppet server not responding

2011-02-10 Thread Tim Dunphy
Hi Guys, Changing the server directive in the puppet conf worked!!! Thanks so much for your help!! Also I sent an email yesterday regarding file sharing to the list. Sorry to be a bother, but I am still struggling with this issue. Does anyone have any advice regarding this? Here is the emai

Re: [Puppet Users] Re: puppetmaster 100%cpu usage on 2.6 (not on 0.24)

2011-02-10 Thread Udo Waechter
Hello, I am one of those who have this problem. Some people suggested using Ruby Enterprise. I looked at its installation, it looked a little bit time-consuming, so I did not try that one out. I upgraded to debian squeeze (of course), and the problem persists. Thus I did some tests: 1. got ruby

[Puppet Users] Stored configs in MySQL

2011-02-10 Thread Jonathan Gazeley
Hi all, I've been looking at using stored configs to generate my Nagios configs. I followed this guide[1] to set up the remote MySQL database for this purpose, like this: [puppetmasterd] storeconfigs = true dbadapter = mysql dbuser = puppet dbpassword = password dbserver = mydb.bris.ac.uk #db

[Puppet Users] Re: multiple puppetmasters (w/ Passenger) behind load balancer

2011-02-10 Thread CraftyTech
Thanks Adrian !! I'll certainly try it out in QA. On the other hand, for those who followed this thread, I've found problem, and corrected it. It turns out, that space after any of the values, would basically break your config. I just edited the file, and removed all extra spaces, and everyt

[Puppet Users] Re: multiple puppetmasters (w/ Passenger) behind load balancer

2011-02-10 Thread Monachus
I run two 0.25.5 puppetmasters behind an haproxy load balancer with both production and QA puppetmasters on different ports on each host. These resolve to puppet.arces.net and puppet-qa.arces.net on our load balancer and go to host-a and host-b on 8140 for production and 8150 for QA. It all works

Re: [Puppet Users] multiple puppetmasters (w/ Passenger) behind load balancer

2011-02-10 Thread CraftyTech
If I just leave it with [puppetmasterd] certname = puppet-test01.dev.domain.com ca = falsa it works.. it just breaks after I put in the rest of the options I need to work my way through all the options -- You received this message because you are subscribed to the Google Groups "