Re: [Puppet Users] augeas / sudoers

2010-11-19 Thread Andrew Heagle
On Friday, November 19, 2010 07:50 EST, walexey wrote: > Hello everybody! > How can i create with puppet following sudoers file: > > User_Alias CENTREON=apache,nagios > CENTREON ALL = NOPASSWD: /etc/init.d/nagios* restart > CENTREON ALL = NOPASSWD: /etc/init.d/nagios* reload > CENTR

Re: [Puppet Users] puppetmaster can't find nodes in LDAP

2010-05-21 Thread Andrew Heagle
On May 21, 2010 08:51:59 am Dave Augustus wrote: > I have moved my node defs from files to LDAP but puppetmaster can't find > them. > > I am using puppet 25.4-1.el5 with 389 ldap server and I have configured > puppetmaster to use LDAP all running on Centos 5.4 x86_64. > > Here is the strange part

[Puppet Users] Re: puppetrun and ldap question

2010-04-20 Thread Andrew Heagle
On Apr 19, 8:19 am, Jamaludin Ahmad wrote: > Hi All, > > I'm new to puppet, I just recently setup it on my servers, using puppet > 0.25.4 with ldap external node and mongrel+nginx as frontend. Pretty much > happy about it, except by the fact that I can't get puppetrun to work as > expected. > >

[Puppet Users] Re: Evaluate the value of a variable's value

2010-04-20 Thread Andrew Heagle
On Apr 19, 8:05 am, Dan Carley wrote: > > It's possible with inline_template(): > > dan.car...@jim ~ $ puppet > $a = 1 > $x = "a" > notice("Bad:", inline_template("<%= x %>")) > notice("Good:", inline_template("<%= $x %>")) > ^D > notice: Scope(Class[main]): Bad: a > notice: Scope(Class[main]): Go

[Puppet Users] Evaluate the value of a variable's value

2010-04-17 Thread Andrew Heagle
Hi, Is it possible for puppet to do the equivalent to this in bash: and...@comet:~$ a=1 and...@comet:~$ x="a" and...@comet:~$ eval echo \$$x 1 Or this perl: #!/usr/bin/perl $a=1; $x="a"; print $$x; (Output would be 1) Or would I need to write a function to do this? Thanks, Andrew -- You recei

Re: [Puppet Users] Magazine article comparing CPU usage of Puppet vs. Cfengine

2010-02-23 Thread Andrew Heagle
On Monday 22 February 2010 16:17:52 Toby Riddell wrote: > I received my copy of ;login (the Usenix magazine) today. There's an > article* comparing CPU utilisation of Puppet and Cfengine. To > abbreviate massively: Puppet requires much more CPU than Cfengine when > both verifying and fixing configu

[Puppet Users] "Dynamically" use file contents in variables

2009-08-31 Thread Andrew Heagle
Hi, We want to use files to set variables in some recipes in puppet, which works ok. However I have one problem. The first step of the recipe is to get an updated version of a "control file", which has some info to manage data. Even though the file has new data, the recipe reads the file contents

[Puppet Users] Re: puppetrun question

2009-08-16 Thread Andrew Heagle
On Friday 14 August 2009 06:38:21 Jordi Funollet wrote: > If your host has a firewall, remeber to open tcp/8193. > > Try this to get more information: > ># puppetrun --debug --foreground --host puppt-7-lab-vm > It just shows: # puppetrun --debug --foreground --host puppt-7-lab-vm debug: Parsi

[Puppet Users] puppetrun question

2009-08-12 Thread Andrew Heagle
Hi, I am trying to get puppetrun to work in our lab for some testing, it doesn't appear to be doing anything: # puppetrun --host puppt-7-lab-vm Finished #echo $? 0 We are using LDAP to store NODE information, and so when I use puppetrun with --class and puppt-7-lab-vm is in that class, it works