[Puppet Users] moving the puppetmaster

2008-11-07 Thread Ed Greenberg
I created a new puppetmaster and copied my manifests and files over. My clients don't like this much. I get errors like: Nov 7 12:14:00 test2 puppetd[21307]: (//Node[test2.geni.com]/centos5/File[/root/scripts/lcd.pl]) Failed to retrieve current state of resource: Certificates were not trusted

[Puppet Users] Re: wildcards in file type?

2008-11-07 Thread joe
Though with recurse => true, puppet does look at the mtime of the individual files, per my output sample from previous email. My last question was really why won't it do default checksum (md5) on the files in the directory when I have recurse => true. It only looks at the files in the directory

[Puppet Users] Re: Adobe Reader Recipe

2008-11-07 Thread Simon J Mudd
[EMAIL PROTECTED] ("Evan Hisey") writes: ... >>> >>> I get the feeling that I don't have to create ar-8.1.3-1.install.sh >>> script and that the whole thing can be done in puppet or facteur. >> >> We've started doing this with another non-rpm package on >> Linux. however I was startled to see at

[Puppet Users] Re: wildcards in file type?

2008-11-07 Thread Paul Lathrop
Sorry, I wasn't clear on the mechanism of why this works. Thanks for the correction. On Fri, Nov 7, 2008 at 1:24 PM, Steven VanDevender <[EMAIL PROTECTED]> wrote: > > Paul Lathrop writes: > > When a file in the directory changes, it will change the mtime of the > > directory which will trigger

[Puppet Users] Re: Decisions made based on nework or Ip address.

2008-11-07 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lawrence W wrote: > I need to be able to set up several server settings (DNS/Zabbix/etc) > based on the network that a server is connected to. Could someone show > me a straight forward way of doing this? > > if generate supported pipes I might be ab

[Puppet Users] wildcards in file type?

2008-11-07 Thread Steven VanDevender
Paul Lathrop writes: > When a file in the directory changes, it will change the mtime of the > directory which will trigger an event on any resources which subscribe > to the directory. > > I have used this method a number of times to great success. The mtime on the directory won't change u

[Puppet Users] Re: wildcards in file type?

2008-11-07 Thread joe
I don't think it's a bug that puppet sees two reasons to bounce the service, I think it's a bug that it's only doing it when I change the checksum to mtime. The default is md5 (I think) and it would appear that when you define a file resource that is a directory with recurse => true, puppet shoul

[Puppet Users] puppetlast nagios monitoring plugin

2008-11-07 Thread The Anarcat
We had nodes on which puppetd keeps on dying and we like to know about it. So I wrote a small Nagios plugin (that we run through NRPE, naturally), to process the output of 'puppetlast' regularly and monitor for boundary conditions. The source is maintaned here: http://hg.koumbit.net/module-puppe

[Puppet Users] Decisions made based on nework or Ip address.

2008-11-07 Thread Lawrence W
I need to be able to set up several server settings (DNS/Zabbix/etc) based on the network that a server is connected to. Could someone show me a straight forward way of doing this? if generate supported pipes I might be able to swing this but apparently I need some help. --~--~-~--~~

[Puppet Users] Re: wildcards in file type?

2008-11-07 Thread Paul Lathrop
No, not a bug at all. Why do you think it might be? There is no reason to be concerned by the multiple notifications, either; Puppet is smart enough to only refresh the service once. --Paul On Fri, Nov 7, 2008 at 12:52 PM, joe <[EMAIL PROTECTED]> wrote: > > This is interesting. What you descri

[Puppet Users] Re: wildcards in file type?

2008-11-07 Thread joe
This is interesting. What you describe does work, but it appears there's a bug somewhere. I'm getting 2 reasons to bounce the service out of the single file definition when checksum is mtime. Here is the output: # puppetd --test info: Caching catalog at /var/lib/puppet/localconfig.yaml notice:

[Puppet Users] Re: wildcards in file type?

2008-11-07 Thread Paul Lathrop
Wrong. Set the checksum property to "mtime" on the directory resource. When a file in the directory changes, it will change the mtime of the directory which will trigger an event on any resources which subscribe to the directory. I have used this method a number of times to great success. --Paul

[Puppet Users] Re: Symbolic Links

2008-11-07 Thread Paul Lathrop
Karl, Please check out the Type Reference. You are specifically looking for the File type which handles files, directories, and symlinks. (http://reductivelabs.com/trac/puppet/wiki/TypeReference#file) --Paul On Fri, Nov 7, 2008 at 10:08 AM, Loobster <[EMAIL PROTECTED]> wrote: > > I would like t

[Puppet Users] nss_ldap: could not get LDAP result - Timed out

2008-11-07 Thread Ed Greenberg
I see this in my logs: Nov 7 10:29:23 sn-008 puppetd[3048] nss_ldap: could not get LDAP result - Timed out and I'm not sure what Puppet is doing that relates to ldap. Grepping for LDAP in my manifests yields only references to managing File['/etc/ldap.conf'] The server is setup for ldap to ma

[Puppet Users] Symbolic Links

2008-11-07 Thread Loobster
I would like to update some symbolic links on a puppet system. Is there a syntax in puppet to do this or do I just create a an exec with rm symlink and another with ln symlink? Thanks, Karl --~--~-~--~~~---~--~~ You received this message because you are subscri

[Puppet Users] Re: RRDtool.so vs RRD.so was [Reports and Reporting]

2008-11-07 Thread Evan Hisey
On Fri, Nov 7, 2008 at 10:21 AM, Arnau Bria <[EMAIL PROTECTED]> wrote: > > On Fri, 7 Nov 2008 10:06:17 -0600 > Evan Hisey wrote: > > [...] >> Okay simple check, as you did not install by Yum, do you rrdtool >> installed? I would think you do but wanted to check. >> Also the current >> version of p

[Puppet Users] Re: use of arrays with templates

2008-11-07 Thread Trevor Vaughan
I think I remember discovering that the translation from a variable into a template smashes the array together. Try passing it through a define and see what happens. I feel that this is a bug as well. Trevor On Fri, Nov 7, 2008 at 10:18, tek-ops <[EMAIL PROTECTED]> wrote: > > /etc/puppet/manif

[Puppet Users] Re: RRDtool.so vs RRD.so was [Reports and Reporting]

2008-11-07 Thread Arnau Bria
On Fri, 7 Nov 2008 10:06:17 -0600 Evan Hisey wrote: [...] > Okay simple check, as you did not install by Yum, do you rrdtool > installed? I would think you do but wanted to check. > Also the current > version of puppet for Centos/RHEL is 0.24.5, not 0.22. I really > suggest you upgrade. I suspec

[Puppet Users] Re: RRDtool.so vs RRD.so was [Reports and Reporting]

2008-11-07 Thread Evan Hisey
On Fri, Nov 7, 2008 at 9:56 AM, Evan Hisey <[EMAIL PROTECTED]> wrote: > On Fri, Nov 7, 2008 at 9:21 AM, Arnau Bria <[EMAIL PROTECTED]> wrote: >> >> On Fri, 7 Nov 2008 09:09:02 -0600 > >>> > >> >> Installing your rpm points to same problem: >> >> [EMAIL PROTECTED] ~]# wget -c >> http://unix.eng.ua

[Puppet Users] Re: RRDtool.so vs RRD.so was [Reports and Reporting]

2008-11-07 Thread Evan Hisey
On Fri, Nov 7, 2008 at 9:21 AM, Arnau Bria <[EMAIL PROTECTED]> wrote: > > On Fri, 7 Nov 2008 09:09:02 -0600 >> > > > Installing your rpm points to same problem: > > [EMAIL PROTECTED] ~]# wget -c > http://unix.eng.ua.edu/~barnowl/RubyRRDtool-0.6.0-1.i386.rpm > --16:18:41-- http://unix.eng.ua.edu

[Puppet Users] Re: use of arrays with templates

2008-11-07 Thread tek-ops
I've actually submitted this as a bug (Bug #1738) http://projects.reductivelabs.com/issues/show/1738 As this seems like it was intended to work. On Nov 7, 10:18 am, tek-ops <[EMAIL PROTECTED]> wrote: > /etc/puppet/manifests/nodes.pp >

[Puppet Users] Re: Adobe Reader Recipe

2008-11-07 Thread Evan Hisey
>> >> We've started doing this with another non-rpm package on >> Linux. however I was startled to see at least on our setup that it >> took several minutes to copy the directory including the binary and >> install script over. Total space about 40MB. Very slow. >> >> Is this the expected speed? >

[Puppet Users] Re: Reports and Reporting

2008-11-07 Thread Evan Hisey
On Thu, Nov 6, 2008 at 10:33 AM, Arnau Bria <[EMAIL PROTECTED]> wrote: > > On Thu, 6 Nov 2008 16:43:31 +0100 > Arnau Bria wrote: > >> err: Report rrdgraph failed: Could not create RRD >> file /var/lib/puppet/rrd/td234.pic.es/time.rrd: invalid argument - >> Bignum, expected T_STRING or T_FIXNUM on

[Puppet Users] Re: RRDtool.so vs RRD.so was [Reports and Reporting]

2008-11-07 Thread Arnau Bria
On Fri, 7 Nov 2008 09:09:02 -0600 Evan Hisey wrote: Hi Evan, > I already did a rebuild. I ran in to this a while ago setting up > puppetview. Here is the package I built for Centos and Puppet: > http://unix.eng.ua.edu/~barnowl/RubyRRDtool-0.6.0-1.i386.rpm Yep, I followed your treat: > > http:

[Puppet Users] Re: RRDtool.so vs RRD.so was [Reports and Reporting]

2008-11-07 Thread Evan Hisey
On Fri, Nov 7, 2008 at 5:46 AM, Arnau Bria <[EMAIL PROTECTED]> wrote: > > Hi all, > > > well, I think I have some things clear now. > I still have same error: > warning: RRD library is missing; cannot store metrics > > But I think I have the source of the problem, maybe it's a development > issue.

[Puppet Users] Re: use of arrays with templates

2008-11-07 Thread tek-ops
/etc/puppet/manifests/nodes.pp node "test1" { $nameservers = ["192.168.0.2", "192.168.0.3"] $domain = "nfs.example.com" } node "test2" { $nameservers = ["10.0.0.2", "10.0.0.3"] $domain

[Puppet Users] Re: Adobe Reader Recipe

2008-11-07 Thread Evan Hisey
On Thu, Nov 6, 2008 at 1:21 PM, Simon J Mudd <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] (Loobster) writes: > >> I was thinking of creating a little script (ar-8.1.3-1.install.sh) to >> do that and also figure out which version of reader is installed. >> >> -bash-3.00$ /opt/Adobe/Reader8/bin/

[Puppet Users] Re: RRDtool.so vs RRD.so was [Reports and Reporting]

2008-11-07 Thread Arnau Bria
Hi all, well, I think I have some things clear now. I still have same error: warning: RRD library is missing; cannot store metrics But I think I have the source of the problem, maybe it's a development issue. My scenario: # cat /etc/redhat-release CentOS release 5.2 (Final) # rpm -qa|grep pu

[Puppet Users] Re: Run a script when a file changes

2008-11-07 Thread Peter Meier
Hi > Here's the scenario :) > > 1. I have a config file stored on the puppet master. > 2. When this file is updated I want it be sent to client(s). > 3. Once this is done I want to run a script on the client. > > 1 & 2 I can do, 3. is proving to be a problem, suggestions anyone ? file{'foobar

[Puppet Users] Run a script when a file changes

2008-11-07 Thread AndrewHolt
Hi, Here's the scenario :) 1. I have a config file stored on the puppet master. 2. When this file is updated I want it be sent to client(s). 3. Once this is done I want to run a script on the client. 1 & 2 I can do, 3. is proving to be a problem, suggestions anyone ? Regards, Andrew --~--~--

[Puppet Users] Re: introduction with david's munin module question

2008-11-07 Thread David Schmitt
adamou s. nacer schrieb: > Hi all, > I am new to puppet and also newcomer in this group. > I heart good things about puppet and I decided to give it a try 2 weeks now. > After reading various documentation, I began using the complete > configuration collection of puppet modules (thanks to David).

[Puppet Users] Re: use of arrays with templates

2008-11-07 Thread Marcin Owsiany
On Thu, Nov 06, 2008 at 07:36:51AM -0800, tek-ops wrote: > > for me, that only works if I specify $nameserver in the manifest for > my resolv.conf module. If I specify it in the node (i.e. configuring > one node to use different name servers), it concatenates the two > nameserver array elements