[Puppet Users] More global information for nodes

2009-10-08 Thread Wout
Hello all I work at a company using Puppet. Our configuration requires that one node needs information about (all) the other nodes (which are the backup servers, what is their IP, building firewall rules, DNS, ...). So I have an array of all the nodes with their IP('s): $nodes = [ "fqdn

[Puppet Users] Re: More global information for nodes

2009-10-08 Thread David Schmitt
Wout wrote: > Could I get some feedback about this approach? Is something like this > possible without the custom function? Is someone doing this on a > better > way? It looks like they are not many functions to work with arrays. While it may be quite an initial implementation hump, it will prob

[Puppet Users] Re: More global information for nodes

2009-10-08 Thread Wout
On Oct 8, 10:38 am, David Schmitt wrote: > While it may be quite an initial implementation hump, it will probably > save you many headaches down the line if you look into using an external > node classifier. There you can maintain your system's and architecture's > information in a format of your

[Puppet Users] Re: long catalog run times and random connection timeouts

2009-10-08 Thread Jean-Baptiste Quenot
2009/5/4 Michael Conigliaro : > > Ok guys, this was a tough nut to crack, but I think I figured it out. > > This problem only occurred on clients that lived within a certain > security zone behind my firewall. When a client was on the same vlan as > the puppetmaster, everything worked fine. As soo

[Puppet Users] Troubleshooting domain name and certificate problems

2009-10-08 Thread Bogdan Bivolaru
I've had a problem with configuring the puppet client on the same machine as the puppetmaster (hostname: artbazaar, DNS names: artbazaar.example.com, puppet.example.com). The problem is now solved, this is just a description of my solution and a discussion on how to solve it easier. Please comment

[Puppet Users] Re: More global information for nodes

2009-10-08 Thread David Schmitt
Wout wrote: > On Oct 8, 10:38 am, David Schmitt wrote: >> While it may be quite an initial implementation hump, it will probably >> save you many headaches down the line if you look into using an external >> node classifier. There you can maintain your system's and architecture's >> information i

[Puppet Users] Re: Mixing Ruby and Puppet

2009-10-08 Thread jcbollinger
On Oct 7, 5:44 am, Luis Bruno wrote: > I'm trying to put user definitions in a single string, and make > something like the following. Should I go down this way, or should I > use a template that takes the array and creates all users in one go? > >     $users = [ >         "223 sip.login allyou

[Puppet Users] quick split function question

2009-10-08 Thread Matt
With 0.25 we can use the split function to parse a string in to an array. In puppet how can I reference a single element of that array? $temp = "1,2,3,4" Then i'd lilke to do : $val = split($temp,',')[0] Thanks, Matt --~--~-~--~~~---~--~~ You received this me

[Puppet Users] Re: Mac OS X plist resource type spec

2009-10-08 Thread Carl Caum
Sorry it took me so long to reply. I don't actually remember why we decided on auth_membership exactly. I remember I originally had it as purge but that was confusing for obvious reasons. If auth_membership was set to true, it would blow away every other entry in that dict/array that was not know

[Puppet Users] Re: quick split function question

2009-10-08 Thread Trevor Vaughan
Heh...PERL. temp = '1,2,3,4' val = temp.split(',')[0] Trevor On Thu, Oct 8, 2009 at 11:40, Matt wrote: > > With 0.25 we can use the split function to parse a string in to an array. > > In puppet how can I reference a single element of that array? > > $temp = "1,2,3,4" > > Then i'd lilke to do

[Puppet Users] Re: quick split function question

2009-10-08 Thread R.I.Pienaar
hello, - "Trevor Vaughan" wrote: > Heh...PERL. > > temp = '1,2,3,4' > val = temp.split(',')[0] I suspect he wants to use the new split() parser function available in manifests and not in a template. In that case, no you cannot reference a specific array member in the puppet DSL at pres

[Puppet Users] Re: quick split function question

2009-10-08 Thread Trevor Vaughan
$temp = '1,2,3,4' $val = inline_template(<%= temp.split(',')[0] %>) Trevor On Thu, Oct 8, 2009 at 14:18, R.I.Pienaar wrote: > > hello, > > - "Trevor Vaughan" wrote: > >> Heh...PERL. >> >> temp = '1,2,3,4' >> val = temp.split(',')[0] > > I suspect he wants to use the new split() parser func

[Puppet Users] Installing libhildonfm2-dev for scratchbox

2009-10-08 Thread armenzg
What seems to be an easy thing to do as to install a library into scratchbox is being something difficult to debug. The command "/scratchbox/moz_scratchbox -p apt-get --yes --force-yes install libhildonfm2-dev" can be run in a linux vm with the account "cltbld" without any problems but when I try

[Puppet Users] Re: Installing libhildonfm2-dev for scratchbox

2009-10-08 Thread armenzg
I am a little better now. scratchbox does not allow to run anything as root so I tried this: "su - cltbld -c '/scratchbox/moz_scratchbox -p apt-get --yes --force- yes install libhildonfm2-dev'" I now got this problem: err: Could not create su - cltbld -c '/scratchbox/moz_scratchbox -p apt-get --ye

[Puppet Users] Same exec but different working directories

2009-10-08 Thread Scott
So I ran into a situation where I'd like to execute the same command (make) but in 2 different working directories, anyone know how I can do that without adding superfluous options to the exec to make it unique? Cheers, Scott --~--~-~--~~~---~--~~ You received this

[Puppet Users] Re: Service started with "onestart" instead of "start"

2009-10-08 Thread Lisa
Hello, I am not sure if I can upgrade to latest facter and puppet. I need to ask my system administrator. Best wishes. On Oct 6, 2:42 pm, Peter Meier wrote: > Hi > > > I use Ubuntu 7.10 inside Vmware. > > When I run "puppetd -v -o --test", I also get the warning message: > > "warning: Found mu

[Puppet Users] Re: Same exec but different working directories

2009-10-08 Thread Joe McDonagh
Scott wrote: > So I ran into a situation where I'd like to execute the same command > (make) but in 2 different working directories, anyone know how I can > do that without adding superfluous options to the exec to make it > unique? > > Cheers, > Scott > > > I'm not sure I understand- you want

[Puppet Users] Re: Installing libhildonfm2-dev for scratchbox

2009-10-08 Thread armenzg
All I had to is to add the "path" variable. In my case the minimum I needed was "path => '/bin',". Here is another post that had a brief mention of my problem: http://groups.google.com/group/puppet-users/browse_frm/thread/c60e8ae314ae687b/3b51f6664348e557?lnk=gst&q=is+both+unqualifed+and+specifi

[Puppet Users] Re: Same exec but different working directories

2009-10-08 Thread Nigel Kersten
On Thu, Oct 8, 2009 at 2:36 PM, Scott wrote: > > So I ran into a situation where I'd like to execute the same command > (make) but in 2 different working directories, anyone know how I can > do that without adding superfluous options to the exec to make it > unique? exec { "foo": command => "

[Puppet Users] tagmail configuration

2009-10-08 Thread Luke Schierer
I am trying to configure tagmail to send emails to different segments of the team based on the classes that are loaded. For the most part it seems to be working, but I'm having trouble with getting a rule that will send an email for everything except events related to a particular class, or those

[Puppet Users] Re: Same exec but different working directories

2009-10-08 Thread Scott
Nigel, thanks! I tried something similar more than a year ago that didn't work so it didn't occur to me to try that. Scott On Oct 8, 5:52 pm, Nigel Kersten wrote: > On Thu, Oct 8, 2009 at 2:36 PM, Scott wrote: > > > So I ran into a situation where I'd like to execute the same command > > (ma

[Puppet Users] puppetbucket.addfile: execution expired

2009-10-08 Thread Douglas Garstang
I'm having some trouble serving out files with puppet. The following is appearing in the log: Oct 8 15:52:42 app1.fr.xxx.com puppetd[7045]: Connection timeout calling puppetbucket.addfile: execution expired My /etc/puppet/fileserver.conf has: [files] path /etc/puppet allow *.fr.xxx.com al