Re: [Puppet Users] err: Could not run Puppet configuration client: execution expired

2011-08-22 Thread Denmat
Hi, Puppet running the standard webrick server is not very good at file serving. http://docs.puppetlabs.com/#tuning-and-scaling That link provides some recommended options. Cheers, Den On 23/08/2011, at 15:06, Steven wrote: > I am new to using puppet and having trouble when updating an agent

[Puppet Users] err: Could not run Puppet configuration client: execution expired

2011-08-22 Thread Steven
I am new to using puppet and having trouble when updating an agent from a master which has a lot of files. Usually the updates work, but when there are a lot of files I get this error when running: sudo puppetd --test --server puppet.example.local --trace --debug >>> debug: Failed to load library

Re: [Puppet Users] facter identifies Oracle Linux 6.1 as 'RedHat'

2011-08-22 Thread Jim Bala
OEL 6.1 now has these 'release' files: $ ll /etc/*release* -rw-r--r--. 1 root root 32 May 22 20:15 /etc/oracle-release -rw-r--r--. 1 root root 55 May 22 20:15 /etc/redhat-release lrwxrwxrwx. 1 root root 14 Jul 22 16:36 /etc/system-release -> oracle-release -rw-r--r--. 1 root root 45 May 22 20:15 /

Re: [Puppet Users] facter identifies Oracle Linux 6.1 as 'RedHat'

2011-08-22 Thread Nan Liu
On Mon, Aug 22, 2011 at 3:58 PM, Jeffrey wrote: > Noticed today that facter-1.6.0 is reporting Oracle Linux 6.1 as > "RedHat".  Needless to say, this will cause logic errors in manifests > trying to distinguish these two OSes.  Anyone have a good idea for a > work-around? > > # facter | egrep oper

Re: [Puppet Users] Re: Failing ENC effort - a little help?

2011-08-22 Thread jblaine
Problem solved. Turns out the Python code was failing only as user puppet because of a fricking PYTHON_EGG_CACHE directory permission issue, and Puppet was "helpfully" hiding all details of that until I hacked around in the Puppet source :| -- You received this message because you are subscrib

Re: [Puppet Users] property file provider

2011-08-22 Thread David Kavanagh
Thanks, I'll try to work through your suggestions. I took this from the nova_config stuff on github, so that was my example. David On Mon, Aug 22, 2011 at 7:36 PM, Stefan Schulte wrote: > On Mon, Aug 22, 2011 at 06:33:27PM -0400, David Kavanagh wrote: >> I'm working on a type/provider for the eu

Re: [Puppet Users] Re: Failing ENC effort - a little help?

2011-08-22 Thread jblaine
Indeed. Now if I could figure out why the simple Python output is rejected from the 1st message. At least I know *something* functions now though. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https

Re: [Puppet Users] Re: Failing ENC effort - a little help?

2011-08-22 Thread Stefan Schulte
On Mon, Aug 22, 2011 at 04:51:14PM -0700, jblaine wrote: > This is Puppet 2.7.3, FWIW. > > As far as I can see, this is really broken somehow. > > This ENC below gives the same 'Could not find node' error even when spitting > canned > information back: > > #!/bin/sh > > echo< --- > classes: >

[Puppet Users] Re: exported resources and templating

2011-08-22 Thread puppetlurker
This looks promising! I should be able to create a fact on some servers, then collect those servers in a template. I'm going to upgrade to test this out. Thanks, puppetlurker On Aug 22, 10:45 am, Nan Liu wrote: > On Mon, Aug 22, 2011 at 6:11 AM, puppetlurker > > > > > > > > > > wrote: > > Gree

[Puppet Users] Re: Failing ENC effort - a little help?

2011-08-22 Thread jblaine
This is Puppet 2.7.3, FWIW. As far as I can see, this is really broken somehow. This ENC below gives the same 'Could not find node' error even when spitting canned information back: #!/bin/sh echo

Re: [Puppet Users] property file provider

2011-08-22 Thread Stefan Schulte
On Mon, Aug 22, 2011 at 06:33:27PM -0400, David Kavanagh wrote: > I'm working on a type/provider for the eucalyptus.conf file. What I > have generally works for modifying properties. I have a couple of > issues and not being very experienced with Ruby and custom providers, > I wonder if anyone can

[Puppet Users] facter identifies Oracle Linux 6.1 as 'RedHat'

2011-08-22 Thread Jeffrey
Noticed today that facter-1.6.0 is reporting Oracle Linux 6.1 as "RedHat". Needless to say, this will cause logic errors in manifests trying to distinguish these two OSes. Anyone have a good idea for a work-around? # facter | egrep oper operatingsystem => RedHat operatingsystemrelease => 6.1 #

[Puppet Users] property file provider

2011-08-22 Thread David Kavanagh
I'm working on a type/provider for the eucalyptus.conf file. What I have generally works for modifying properties. I have a couple of issues and not being very experienced with Ruby and custom providers, I wonder if anyone can help? The code is included below. The key/value constructs in the file l

[Puppet Users] Re: Puppet unable to find a defined resource.

2011-08-22 Thread Brad Krane
John, Thanks for the reply. I've tried all of your suggestions above, qualifying it as drupal6::drupal6::theme_repo and just theme_repo as well as putting the definition in its own file modules/drupal6/ manifests/theme_repo.pp (and also using the three combinations of variable scoping) but I alway

[Puppet Users] Failing ENC effort - a little help?

2011-08-22 Thread jblaine
Master puppet.conf has: node_terminus = exec external_nodes = /etc/puppet/hostdb-ENC.py Master reports: err: Could not find node 'rcf-cm-test.our.org'; cannot compile ENC tests fine by my eyes, but perhaps my YAML is invalid? It tests out fine at http://yaml-online-parser.appspot.com/ Testing

Re: [Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread Gary Larizza
> > > What do you mean, 'generate a custom value'? In what manner is a facter > 'custom value' different from a return value in the surrounding Facter.add > block? Why would code outside of a setcode block make someone in the know, > as it were, uneasy? > > >> The value of the last expression in t

Re: [Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread Nan Liu
On Mon, Aug 22, 2011 at 10:05 AM, Brian Troutwine wrote: > On Mon, Aug 22, 2011 at 11:31 AM, Gary Larizza wrote: >> >> >>> It's a function of my ignorance of writing custom facts. I have yet to >>> find a good reference for doing so and aped entirely code examples found >>> online. I haven't the

Re: [Puppet Users] Re: Multiple swap spaces

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 1:12 PM, Stefan Schulte < stefan.schu...@taunusstein.net> wrote: > On Mon, Aug 22, 2011 at 12:53:58PM -0400, Brian Troutwine wrote: > > On Mon, Aug 22, 2011 at 12:46 PM, Stefan Schulte < > > stefan.schu...@taunusstein.net> wrote: > > > > > Let's say you have just one swap d

Re: [Puppet Users] Re: Multiple swap spaces

2011-08-22 Thread Stefan Schulte
On Mon, Aug 22, 2011 at 12:53:58PM -0400, Brian Troutwine wrote: > On Mon, Aug 22, 2011 at 12:46 PM, Stefan Schulte < > stefan.schu...@taunusstein.net> wrote: > > > Let's say you have just one swap device and the following configuration > > > > mount { 'swap': > >fstype => 'swap', > >devi

Re: [Puppet Users] Re: Facter on a VM...

2011-08-22 Thread Brian Troutwine
Kit, What puppet/facter versions, which OS and what VM? Also, what is the content of your fstab? On Mon, Aug 22, 2011 at 12:59 PM, Kit Plummer wrote: > Am I the only one seeing this? Permissions, or OS thing? > > On Aug 18, 8:14 pm, Kit Plummer wrote: > > Hey. > > > > I'm using Facter to publi

Re: [Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 11:31 AM, Gary Larizza wrote: > > > It's a function of my ignorance of writing custom facts. I have yet to find >> a good reference for doing so and aped entirely code examples found online. >> I haven't the slightest idea of what setcode does. Here's my top search >> resu

[Puppet Users] Re: Facter on a VM...

2011-08-22 Thread Kit Plummer
Am I the only one seeing this? Permissions, or OS thing? On Aug 18, 8:14 pm, Kit Plummer wrote: > Hey. > > I'm using Facter to publish VM capabilities - and every time I get the > facts I get a couple of errors along with: > > Could not retrieve network_lo: wrong number of arguments (1 for 0) >

Re: [Puppet Users] Re: Multiple swap spaces

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 11:19 AM, jcbollinger wrote: > > > On Aug 21, 2:56 pm, Brian Troutwine wrote: > > Hello, all. > > > > I have a box that I'd like to have striping swap spaces. I attempted: > > > > mount { 'swap': > > alias => 'swap0', > > atboot => true, > > device => '/dev

Re: [Puppet Users] Re: Multiple swap spaces

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 12:46 PM, Stefan Schulte < stefan.schu...@taunusstein.net> wrote: > On Mon, Aug 22, 2011 at 08:19:35AM -0700, jcbollinger wrote: > > > > > > On Aug 21, 2:56 pm, Brian Troutwine wrote: > > > Hello, all. > > > > > > I have a box that I'd like to have striping swap spaces. I

Re: [Puppet Users] Re: Multiple swap spaces

2011-08-22 Thread Stefan Schulte
On Mon, Aug 22, 2011 at 08:19:35AM -0700, jcbollinger wrote: > > > On Aug 21, 2:56 pm, Brian Troutwine wrote: > > Hello, all. > > > > I have a box that I'd like to have striping swap spaces. I attempted: > > > >   mount { 'swap': > >     alias   => 'swap0', > >     atboot => true, > >     device

Re: [Puppet Users] Circular RPM dependencies...

2011-08-22 Thread Mike Lococo
On 08/18/2011 06:56 PM, Jakov Sosic wrote: I encountered a following problem, if I state for example: package{"aspell-en": ensure => absent, } package{"aspell":ensure => absent, } I get error in logs because of dependencies. It seems that puppet uses 'yum' for installation on CentOS and '

Re: [Puppet Users] dashboard 1.1.1 with filebucket doesn't show contents of the new file

2011-08-22 Thread Jacob Helwig
On Sun, 21 Aug 2011 08:39:31 -0700, Stefan Heijmans wrote: > > Am using dashboard 1.1.1 with the use_file_bucket_diffs option. > > When clicking on the links within a report it will show the old md5 > file (on the left) but not the new md5 file (on the right) > like; > content content chang

Re: [Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread Gary Larizza
It's a function of my ignorance of writing custom facts. I have yet to find > a good reference for doing so and aped entirely code examples found online. > I haven't the slightest idea of what setcode does. Here's my top search > result for 'factor puppet': > > Good question. The 'setcode do" ...

Re: [Puppet Users] Re: Custom type and provider

2011-08-22 Thread Nan Liu
On Mon, Aug 22, 2011 at 7:35 AM, nothings_absolute wrote: > >   Well... If there aren't any ideas on the cause can anyone tell me > if I am using ParsedFile correctly? Or if there is a resource for > documentation on this class? I am just beginning to use ruby so trying > to figure out what is pro

[Puppet Users] Re: Multiple swap spaces

2011-08-22 Thread jcbollinger
On Aug 21, 2:56 pm, Brian Troutwine wrote: > Hello, all. > > I have a box that I'd like to have striping swap spaces. I attempted: > >   mount { 'swap': >     alias   => 'swap0', >     atboot => true, >     device => '/dev/xvdo', >     ensure => 'mounted', >     options=> 'defaults', >     fstyp

Re: [Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 11:03 AM, jcbollinger wrote: > > > On Aug 22, 2:08 am, Brian Troutwine wrote: > > Hello, all. > > > > I am unable to get the utilize the output of a custom fact in a template > > while, simultaniously, succeeding at doing so with another custom fact. I > > receive no error

[Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread jcbollinger
On Aug 22, 2:08 am, Brian Troutwine wrote: > Hello, all. > > I am unable to get the utilize the output of a custom fact in a template > while, simultaniously, succeeding at doing so with another custom fact. I > receive no errors and am utterly at a loss. The failing custom fact that > looks lik

Re: [Puppet Users] exported resources and templating

2011-08-22 Thread Nan Liu
On Mon, Aug 22, 2011 at 6:11 AM, puppetlurker wrote: > Greetings, > > I'm having an issue with my implementation of exported resources.  I > have a memcache server pool, and want to update the /etc/php.d/ > memcache.ini with the ips of all the servers. Previously, I hard coded > the $memcacheserve

[Puppet Users] Re: Custom type and provider

2011-08-22 Thread nothings_absolute
Well... If there aren't any ideas on the cause can anyone tell me if I am using ParsedFile correctly? Or if there is a resource for documentation on this class? I am just beginning to use ruby so trying to figure out what is provided by the class by looking at the source is going to be difficul

Re: [Puppet Users] Re: Breaking operations on errors

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 10:11 AM, jcbollinger wrote: > > > On Aug 19, 7:30 pm, Brian Troutwine wrote: > > Hello, all. > > > > Let's say I am building a super-weapon robot to destroy the world, save > for > > the people on a whitelist, and am using puppet to manage the > configuration > > of this

[Puppet Users] Re: Puppet unable to find a defined resource.

2011-08-22 Thread jcbollinger
On Aug 19, 1:33 pm, Brad Krane wrote: [...] > drupal6/manifests/init.pp > [...] > class drupal6 { [...] >     define theme_repo( >         $theme = "", >         $version = "", >         $site = "default", >         $upstream = "drupal") >     { [...]

[Puppet Users] Re: Breaking operations on errors

2011-08-22 Thread jcbollinger
On Aug 19, 7:30 pm, Brian Troutwine wrote: > Hello, all. > > Let's say I am building a super-weapon robot to destroy the world, save for > the people on a whitelist, and am using puppet to manage the configuration > of this robot. > > $ cat files/do_not_kill.txt > Me > Mom > Dad > Wife > > The r

[Puppet Users] Announce: puppet-dashboard-face alpha

2011-08-22 Thread Kelsey Hightower
I would like to present the alpha release of puppet-dashboard-face: A Puppet Face for interacting with Puppet Dashboard. This release is available for download at: https://github.com/khightower/puppet-dashboard-face Making Puppet Dashboard accessible from the cli: $ puppet dashboard search n

[Puppet Users] exported resources and templating

2011-08-22 Thread puppetlurker
Greetings, I'm having an issue with my implementation of exported resources. I have a memcache server pool, and want to update the /etc/php.d/ memcache.ini with the ips of all the servers. Previously, I hard coded the $memcacheservers array in the node manifest and the template collected and popu

[Puppet Users] Re: ssh_authorized_keys with array

2011-08-22 Thread Tim Schmeling
Hi, so i can´t use one public authorized_key in two different users, right? Is there any other option? Greetz Tim On 19 Aug., 18:45, Stefan Schulte wrote: > On Fri, Aug 19, 2011 at 01:22:46AM -0700, Tim Schmeling wrote: > > Hi, > > > i have written a class called ssh to manage authorized_keys.

Re: [Puppet Users] Re: facter-1.6.0 incorrectly identifies hardware node as virtual

2011-08-22 Thread Dan Carley
On 18 August 2011 18:38, Jake wrote: > Excellent, thanks - patch applied here with good results. > > It appears the issue is already known as of facter-1.5.9: > http://projects.puppetlabs.com/issues/7957 > > So, the ball should already be rolling on this one - right? > I missed that in my brief

Re: [Puppet Users] Re: Puppet on OS X run using launchd generating a new certificate request for 'localhost' instead of the actual hostname

2011-08-22 Thread Khoury Brazil
On Sun, Aug 21, 2011 at 10:15 PM, Nan Liu wrote: > > On Sun, Aug 21, 2011 at 7:53 PM, Khoury wrote: > > Adding the entry "127.0.0.1       " solved the > > problem. I suppose that means dns/reverse dns is one of the ways that > > puppet determines what the node name is (although in my case it > >

[Puppet Users] Fact empty in a template, fine on the command line.

2011-08-22 Thread Brian Troutwine
Hello, all. I am unable to get the utilize the output of a custom fact in a template while, simultaniously, succeeding at doing so with another custom fact. I receive no errors and am utterly at a loss. The failing custom fact that looks like this: # cat /var/lib/puppet/lib/facter/memorysize_mb.r