[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: [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 alexeydemi...@gmail.com 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

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 there

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

[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

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] 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' ,

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 close

[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: pre root@server2:~# puppetd --test --no-daemonize info: Retrieving plugin err: /File[/var/lib/puppet/lib]: Failed to

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

2011-08-16 Thread jcbollinger
On Aug 16, 2:59 am, Sans r.santanu@gmail.com 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

[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:

[Puppet Users] Re: ANNOUNCE: Puppet 2.7.3

2011-08-16 Thread jcbollinger
On Aug 15, 8: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 whenever a Puppet agent runs: err: Failed to apply catalog: Parameter options failed: Options must be provided as an array, not a comma

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

2011-08-16 Thread jcbollinger
On Aug 15, 9:37 am, Sans r.santanu@gmail.com 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 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

[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

[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 luke.bi...@lmax.com wrote: Sean, Previously I've set up a cluster of Puppet Masters

[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

[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 #

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 john.bollin...@stjude.org 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

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' , fstype = 'nfs'

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 d...@davidlballenger.com 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

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 d...@davidlballenger.comwrote: 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

[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 john.bollin...@stjude.org 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:

[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 the

[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 count(*)

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 d...@davidlballenger.com 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:

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 d...@davidlballenger.comwrote: 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

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 d...@davidlballenger.com wrote: On Aug 16, 2011, at 10:48 AM,

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 d...@davidlballenger.comwrote: Okay, I'll file a bug report on this later today. I seem to be having

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 rraue...@gmail.com wrote: On Tue, Aug 16, 2011 at 6:23 AM, jcbollinger john.bollin...@stjude.org wrote: [Lots of good ideas]

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] 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
Try running optimize on it. -scott On Tue, Aug 16, 2011 at 5:53 PM, Sandor W. Sklar ssk...@gmail.com 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

[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

[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 still

Re: [Puppet Users] fighting packaging

2011-08-16 Thread Jordan Sissel
On Fri, Aug 12, 2011 at 9:53 AM, Craig White craig.wh...@ttiltd.com 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...