Re: [Puppet Users] Re: copying files to the agent that matched hostname

2011-08-16 Thread Martin Alfke
Hi San, On 08/16/2011 08:46 PM, Sans wrote: > Thanks John! Is $hostname a puppet built-in variable like > $operatingsystem, $fqdn etc? These varaibles are made available to puppet by facter. You can run facter on command line to see facter output. Regards, Martin > > -San > > On Aug 16, 3:38

Re: [Puppet Users] fighting packaging

2011-08-16 Thread Jordan Sissel
On Fri, Aug 12, 2011 at 9:53 AM, Craig White wrote: > Clearly not a problem caused by puppet but something I can't apparently > deploy with puppet unless someone has an idea. > > Trying to automate a way to deploy mod_mono for apache > > from CLI, the problem seems obvious... > > apt-get install

[Puppet Users] Re: Redmine and Forge outages

2011-08-16 Thread Ben Hughes
On Tue, Aug 16, 2011 at 06:53:03PM -0700, Ben Hughes wrote: > Due to continuing problems with our datacenter, we're moving some > infrastructure this evening. Both Forge and Redmine are back, we have normality. (With the obligatory Hitch-Hikers Guide to the Galaxy reference of: Anything you stil

[Puppet Users] Redmine and Forge outages

2011-08-16 Thread Ben Hughes
Hey folks, Due to continuing problems with our datacenter, we're moving some infrastructure this evening. During this period, both Redmine (https://projects.puppetlabs.com/) and the Forge (http://forge.puppetlabs.com) will be unavailable. Sorry about the short notice of this, and the outage earl

Re: [Puppet Users] Dashboard table resource_statuses growing uncontrollably

2011-08-16 Thread Scott Smith
Try running optimize on it. -scott On Tue, Aug 16, 2011 at 5:53 PM, Sandor W. Sklar wrote: > Thanks, Scott. After posting this, I did some googling and pretty much > came up with the same solution. Unfortunately, because we're using ISAM > tables, the only way I know of to reclaim the space u

Re: [Puppet Users] Dashboard table resource_statuses growing uncontrollably

2011-08-16 Thread Sandor W. Sklar
Thanks, Scott. After posting this, I did some googling and pretty much came up with the same solution. Unfortunately, because we're using ISAM tables, the only way I know of to reclaim the space used by the datafiles is to do a mysqldump and then restore after clearing out the older reports.

Re: [Puppet Users] Dashboard table resource_statuses growing uncontrollably

2011-08-16 Thread Scott Smith
There should probably be a rake task for this (tbh, all that stuff should be rewritten, loading the whole Rails env to do it is ...ugly), but you can probably (caveat emptor, I don't know this table very well) do something like *delete from resource_statuses where time <= date_sub(now(), interval

Re: [Puppet Users] Re: scoping question - I want a node specific "global" var

2011-08-16 Thread Scott Smith
Some times doing things the right way requires going through the pain of changing your current practices for the better. On Tue, Aug 16, 2011 at 9:24 AM, Rich Rauenzahn wrote: > On Tue, Aug 16, 2011 at 6:23 AM, jcbollinger > wrote: > [Lots of good ideas] > > > > Of those, I would recommend eith

Re: [Puppet Users] ANNOUNCE: Puppet 2.7.3

2011-08-16 Thread Jacob Helwig
It's not just you. Unfortunately, it's down right now. Seems to be a hosting issue, so hopefully they'll get things sorted out quickly. On Tue, Aug 16, 2011 at 16:16, David L Ballenger wrote: > Okay, I'll file a bug report on this later today. I seem to be having > problems contacting the bug

Re: [Puppet Users] ANNOUNCE: Puppet 2.7.3

2011-08-16 Thread David L Ballenger
Okay, I'll file a bug report on this later today. I seem to be having problems contacting the bug tracker right now. On Aug 16, 2011, at 4:08 PM, Nigel Kersten wrote: > > > On Tue, Aug 16, 2011 at 4:00 PM, David L Ballenger > wrote: > > On Aug 16, 2011, at 10:48 AM, Nigel Kersten wrote: >

Re: [Puppet Users] ANNOUNCE: Puppet 2.7.3

2011-08-16 Thread Nigel Kersten
On Tue, Aug 16, 2011 at 4:00 PM, David L Ballenger wrote: > > On Aug 16, 2011, at 10:48 AM, Nigel Kersten wrote: > > > > On Mon, Aug 15, 2011 at 6:22 PM, David L Ballenger < > d...@davidlballenger.com> wrote: > >> Since upgrading for Puppet 2.7.1 to 2.7.3 I have been getting the >> following error

Re: [Puppet Users] ANNOUNCE: Puppet 2.7.3

2011-08-16 Thread David L Ballenger
On Aug 16, 2011, at 10:48 AM, Nigel Kersten wrote: > > > On Mon, Aug 15, 2011 at 6:22 PM, David L Ballenger > wrote: > Since upgrading for Puppet 2.7.1 to 2.7.3 I have been getting the following > error whenever a Puppet agent runs: > > err: Failed to apply catalog: Parameter options failed

[Puppet Users] Dashboard table resource_statuses growing uncontrollably

2011-08-16 Thread Sandor W. Sklar
I've "inherited" the administration of a puppet-dashboard (version 1.1.0, installed on RHEL 5.6 from puppetlabs RPM), and have hit a problem I'm hoping for some help with. In short, one table, "resource_statuses" appears to be growing at a rate far higher then the other tables: mysql> select coun

[Puppet Users] Re: scoping question - I want a node specific "global" var

2011-08-16 Thread Ramin K
I used extlookup to do something similar to this. For our Redis slaves I set redis_master,master01.my.domain.com in the $fqdn.csv <%- if redis_master != "" then -%> slaveof <%= redis_master %> 6379 <%- end -%> It's a bit of a hack, but it works cleanly. The pros are data is kept in extlookup and

[Puppet Users] Re: copying files to the agent that matched hostname

2011-08-16 Thread Sans
Thanks John! Is $hostname a puppet built-in variable like $operatingsystem, $fqdn etc? -San On Aug 16, 3:38 pm, jcbollinger wrote: > > You can interpolate the 'hostname' fact into the name of the resouce, > the name of the file on the file server, or both.  For example: > > file { "${hostname}-c

[Puppet Users] OSX 10.7: 2.7.3 createpackage.sh

2011-08-16 Thread Daniel DeFreez
I'm trying to build puppet packages to deploy the puppet agent on OSX Lion machines. This is my first time using create package.sh, so please bear with me if I am doing something silly. When I run the script, I get the following output: Installing Puppet to /tmp/puppetpkg.K5gt7Li1 Installing docs

Re: [Puppet Users] ANNOUNCE: Puppet 2.7.3

2011-08-16 Thread Nigel Kersten
On Mon, Aug 15, 2011 at 6:22 PM, David L Ballenger wrote: > Since upgrading for Puppet 2.7.1 to 2.7.3 I have been getting the following > error whenever a Puppet agent runs: > > err: Failed to apply catalog: Parameter options failed: Options must be > provided as an array, not a comma separated li

Re: [Puppet Users] Re: ANNOUNCE: Puppet 2.7.3

2011-08-16 Thread David L Ballenger
On Aug 16, 2011, at 7:56 AM, jcbollinger wrote: > > > On Aug 15, 8:22 pm, David L Ballenger > wrote: >> Since upgrading for Puppet 2.7.1 to 2.7.3 I have been getting the following >> error whenever a Puppet agent runs: >> >> err: Failed to apply catalog: Parameter options failed: Options mus

Re: [Puppet Users] mount "remounts" not working

2011-08-16 Thread Stefan Schulte
On Tue, Aug 16, 2011 at 03:34:02PM +0200, Arnau Bria wrote: > Hi all, > > I have some code like: > > { > '/srv/cloud' : > name => '/srv/cloud/' , > atboot => true , > device => 'iscsidisk01.domain.org:/volumes/POOL/one' , > fstyp

Re: [Puppet Users] Re: scoping question - I want a node specific "global" var

2011-08-16 Thread Rich Rauenzahn
On Tue, Aug 16, 2011 at 6:23 AM, jcbollinger wrote: [Lots of good ideas] > > Of those, I would recommend either extlookup() or your ENC (if you > have one), with my personal preference being extlookup().  I think > Hiera may offer an even better solution (though similar to > extlookup()), but I'm

[Puppet Users] creating a puppet resource from existing cron

2011-08-16 Thread Robert Citek
Is there a "puppetized" way for puppet to create a resource file from an existing crontab? Here's an example of what has worked for me: $ crontab -l * * * * * date > /tmp/date.log $ ralsh cron Could not run: You must specify a name or title for resources $ crontab -l | awk '!/^ *#/ {print "# Pu

[Puppet Users] Need feedback on Dashboard/filebucket interaction

2011-08-16 Thread Randall Hansen
Good people ~ We're in an unfortunate situation with Dashboard, having to patch a bug half-way for the Dashboard 1.2 release because we don't have time for a complete fix, and because a complete fix may require Puppet changes. Within Dashboard's report interface we show links to the filebucket ev

[Puppet Users] Re: Corrupted inventory.txt - how to rebuild?

2011-08-16 Thread Luke Bigum
Also I think Nigel posted a load balanced solution using entirely Apache that's floating around on the list, configs and all. Was a few months ago now if you want to go searching. On Aug 16, 4:12 pm, Luke Bigum wrote: > Sean, > > Previously I've set up a cluster of Puppet Masters with one machine

[Puppet Users] Re: Installing 'rpm' using puppet

2011-08-16 Thread jcbollinger
Or, even more likely, Puppet is passing the file URL to RPM. RPM does not understand the puppet: URL scheme. Note the Puppet documentation for this property, which explicitly says "This must be a [path ...] or a URL that your specific packaging type understands; Puppet will not retrieve [the pac

[Puppet Users] Re: Corrupted inventory.txt - how to rebuild?

2011-08-16 Thread Luke Bigum
Sean, Previously I've set up a cluster of Puppet Masters with one machine acting as the software load balancer (IPVS) as well as the Puppet Certificate Authority. The relevant puppet.conf options are ca_port and ca_server to specify where your CA is. The Puppet Master service on the CA server list

[Puppet Users] Re: Installing 'rpm' using puppet

2011-08-16 Thread jcbollinger
On Aug 15, 9:37 am, Sans wrote: > err: /Stage[main]/Xx_emi/Package[emi-release]/ensure: change from > absent to present failed: Execution of '/bin/rpm -i --oldpackage > puppet:///modules/g_repo/emi-release-1.0.0-1.sl5.noarch.rpm' returned > 1: error: open of puppet:///modules/g_repo/emi-release

[Puppet Users] Re: ANNOUNCE: Puppet 2.7.3

2011-08-16 Thread jcbollinger
On Aug 15, 8:22 pm, David L Ballenger wrote: > Since upgrading for Puppet 2.7.1 to 2.7.3 I have been getting the following > error whenever a Puppet agent runs: > > err: Failed to apply catalog: Parameter options failed: Options must be > provided as an array, not a comma separated list > > I

[Puppet Users] Re: Random error in the recovery catalog

2011-08-16 Thread ji...@goffaux.fr
Hello, I just set up Puppet / Passenger by following the documentation. For servers already authenticated key I do not encounter problems, but for new I have these errors: <--> root@server2:~# puppetd --test --no-daemonize warning: peer certificate won't be verified in this SSL session warning: p

[Puppet Users] Re: copying files to the agent that matched hostname

2011-08-16 Thread jcbollinger
On Aug 16, 2:59 am, Sans wrote: > Dear all, > > I need to copy some files to the various clients in some logical way. > The files are named in this way: "farm001-cert.pem", where the forst > part of the name (i.e. nfarm001) is the name of host where it should > be copied. How can I do that? Any

[Puppet Users] Re: Random error in the recovery catalog

2011-08-16 Thread ji...@goffaux.fr
Hello, I just set up Puppet / Passenger by following the documentation. For servers already authenticated key I do not encounter problems, but for new I have these errors: root@server2:~# puppetd --test --no-daemonize info: Retrieving plugin err: /File[/var/lib/puppet/lib]: Failed to generate ad

Re: [Puppet Users] Corrupted inventory.txt - how to rebuild?

2011-08-16 Thread Sean Carolan
> 0x is typically the CA cert, was the inventory.txt file blank when > this occurred? If you have all the certificates, you can use puppet > cert -pa and extract the serial number, date, and CN info. I'm not > sure if there's an automated way using openssl commands. This might be > reasonably c

[Puppet Users] mount "remounts" not working

2011-08-16 Thread Arnau Bria
Hi all, I have some code like: { '/srv/cloud' : name => '/srv/cloud/' , atboot => true , device => 'iscsidisk01.domain.org:/volumes/POOL/one' , fstype => 'nfs' , remounts => true , options => 'defaults'

[Puppet Users] Re: scoping question - I want a node specific "global" var

2011-08-16 Thread jcbollinger
On Aug 15, 4:02 pm, Rich Rauenzahn wrote: > Is it possible to do something like this within the new scoping rules? >  It seems that $::IMSPECIAL doesn't refer to the decl in node a.  And > I can't use class parms as the variable is evaluated in a base class. > > Suggestions?  Currently using pup

Re: [Puppet Users] question about tags

2011-08-16 Thread Martin Alfke
Hi Harold, On 08/16/2011 01:56 PM, Harold Ditchfield wrote: > According to the docs, you can specify tags on the command line and in the > puppet.conf but can you specify them in something like the nodes.pp on the > puppetserver. Interested to see if the tags can be managed from a central spot >

[Puppet Users] question about tags

2011-08-16 Thread Harold Ditchfield
According to the docs, you can specify tags on the command line and in the puppet.conf but can you specify them in something like the nodes.pp on the puppetserver. Interested to see if the tags can be managed from a central spot Thanks Harold -- You received this message because you are subscr

Re: [Puppet Users] Nagios hostgroups

2011-08-16 Thread Jonathan Gazeley
Righto. The puppetmaster is 0.25.5-1.el5 on CentOS 5, while the puppet client is 0.25.5-1.el6 on CentOS 6. I'm aware this version is quite old now, but it looks like a significant amount of trouble to package a newer version for deployment via RPM along with its various dependencies. I'm succe

Re: [Puppet Users] Notify/Require in config tests

2011-08-16 Thread Jonathan Gazeley
Thanks for your response. Having "before" in the configtest exec and "notify" in the dhcpd service causes an error about a circular dependency. Dropping the "notify" but keeping the "before" makes the order work properly, but the configtest doesn't get triggered when the service restarts. Is

Re: [Puppet Users] using host resource with hiera data source

2011-08-16 Thread Alex L. Demidov
On Mon, Aug 15, 2011 at 10:47:05AM -0700, Nan Liu wrote: > On Sun, Aug 14, 2011 at 10:18 AM, Alex L. Demidov > wrote: > > I'm trying to implement /etc/hosts handling using hiera as data > > source, but my current implementation requires data duplication > > because I could pass only array of strin

[Puppet Users] copying files to the agent that matched hostname

2011-08-16 Thread Sans
Dear all, I need to copy some files to the various clients in some logical way. The files are named in this way: "farm001-cert.pem", where the forst part of the name (i.e. nfarm001) is the name of host where it should be copied. How can I do that? Any help greatly appreciated. Cheers!! -- You re