Re: [Puppet Users] storeconfig / mysql

2010-12-06 Thread Daniel Pittman
On Mon, Dec 6, 2010 at 17:17, walexey wrote: > hello! > > centos 5.5, puppet 2.6.4, storeconfig, mysql, about150 clients. > time to time i recive following error: > > Puppet (err): Could not retrieve catalog from remote server: Error 400 > on SERVER: Mysql::Error: MySQL server has gone away > > ho

[Puppet Users] Puppet services/ folder

2010-12-06 Thread Craig Dunn
Hi, Reading the latest best practices for 2.6.x I see that it recommends generic classes for server model types to be put in /etc/puppet/services. Sounds a sensible idea but I can't seem to find much more information on this and services/ doesn't seem to be in the default search path for classes.

[Puppet Users] Re: quick basics to install functioning ubuntu system?

2010-12-06 Thread chiggsy
> I just don't want to be grinding out an > install all night, and I wanted to ask here about any packages and > especially gotchas/bugs Did this question have some sort of flaw in etiquette or protocol? Curious... -- You received this message because you are subscribed to the Google Groups "Pu

[Puppet Users] Does Puppet depend on Augeas?

2010-12-06 Thread Martijn Grendelman
Hi, The lastest Puppet package in Ubuntu Natty /depends/ on libaugeas, rather than merely recommending it, like it used to, up to and including version 2.6.1. Is there a strict reason for this from Puppet's point of view? If not, I'll see if I can harrass the Ubuntu maintainer about this :-) Bes

Re: [Puppet Users] problem with relative path

2010-12-06 Thread Felix Frank
> # /etc/puppet/puppet.conf > > [development] > modulepath = /etc/puppetmodules/development/modules/ > [production] > modulepath = /etc/puppetmodules/production/modules/ > > In manifest there is an entrylike following.. > . > . > . > file { "/var/lib/conf/my.xml": > owner => 'root

[Puppet Users] Re: Does Puppet depend on Augeas?

2010-12-06 Thread Ken Barber
Augeas roughly falls into the same category as the package libshadow- ruby and the 'user' resource. If the absence of augeas as a lib simply means the 'augeas' resource doesn't work, then it is fairly graceful and makes it non-mandatory I would imagine. ken. On Dec 6, 1:17 pm, Martijn Grendelman

Re: [Puppet Users] Does Puppet depend on Augeas?

2010-12-06 Thread Stig Sandbeck Mathisen
Martijn Grendelman writes: > Hi, > > The lastest Puppet package in Ubuntu Natty /depends/ on libaugeas, > rather than merely recommending it, like it used to, up to and > including version 2.6.1. > > Is there a strict reason for this from Puppet's point of view? If not, > I'll see if I can harras

[Puppet Users] Re: audit=>content

2010-12-06 Thread jcbollinger
On Dec 5, 3:19 am, Paul Johnson wrote: > sorry, forgot to mention that the target file (/tmp/bar) exists and it > shouldn't be optional. I tried adding 'ensure => file' as you guys > suggested but without luck, it still produces the same error. As to > reporting this as a bug, there is an officia

Re: [Puppet Users] Re: Schedule

2010-12-06 Thread Martijn Grendelman
Hi, On 03-12-10 23:24, Ken Barber wrote: > Looking here and at source: > > http://docs.puppetlabs.com/references/stable/type.html#schedule > > It reads to me that you might be able to use: > > schedule { puppet: period => weekly, repeat => 3 } > > And have it ran three days a week for example,

Re: [Puppet Users] Fact auto sync reloading

2010-12-06 Thread Derek Yarnell
On 12/3/10 5:13 PM, Nigel Kersten wrote: > On Fri, Dec 3, 2010 at 11:58 AM, Derek Yarnell wrote: >> So we run puppetd as a long running ruby process on the hosts. When we >> update a fact that gets auto sync'd to the host it seems when puppetd wakes >> up and starts its catalog run it doesn't r

Re: [Puppet Users] Re: quick basics to install functioning ubuntu system?

2010-12-06 Thread Nigel Kersten
On Mon, Dec 6, 2010 at 4:25 AM, chiggsy wrote: >> I just don't want to be grinding out an >> install all night, and I wanted to ask here about any packages and >> especially gotchas/bugs > > Did this question have some sort of flaw in etiquette or protocol? > Curious... Apart from what looks to b

Re: [Puppet Users] Fact auto sync reloading

2010-12-06 Thread Nigel Kersten
On Mon, Dec 6, 2010 at 7:46 AM, Derek Yarnell wrote: > On 12/3/10 5:13 PM, Nigel Kersten wrote: >> On Fri, Dec 3, 2010 at 11:58 AM, Derek Yarnell wrote: >>> So we run puppetd as a long running ruby process on the hosts.  When we >>> update a fact that gets auto sync'd to the host it seems when p

Re: [Puppet Users] Does Puppet depend on Augeas?

2010-12-06 Thread Nigel Kersten
On Mon, Dec 6, 2010 at 6:44 AM, Stig Sandbeck Mathisen wrote: > Martijn Grendelman writes: > >> Hi, >> >> The lastest Puppet package in Ubuntu Natty /depends/ on libaugeas, >> rather than merely recommending it, like it used to, up to and >> including version 2.6.1. >> >> Is there a strict reason

[Puppet Users] error running puppetrun

2010-12-06 Thread dopedoxygen
Hi, I have been getting the below error for sometime now. Both master and client are using version 0.24.8. Output from /var/log/messages err: Could not call puppetmaster.getconfig: #<#: execution expired> err: Could not retrieve catalog: execution expired P.S- all of this was working absolutel

[Puppet Users] Re: error running puppetrun

2010-12-06 Thread Himanshu Raina
Hi, Any help in this regard would be appreciated. Also, when I run the puppetmasterd with --verbose --no-daemonize --debug mode I get the following output debug: Creating default schedules debug: /Settings[/etc/puppet/puppet.conf]/Settings[puppetmasterd]/File[/etc/puppet/manifests/site.pp]: Auto

[Puppet Users] backtick in exec

2010-12-06 Thread Matt Keating
How do you do a backtick inside an exec? eg: exec { "Testworld": command => "/bin/echo hello `cat /etc/hostname` > /tmp/hello.txt", } Thanks, Matt -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-

Re: [Puppet Users] Fact auto sync reloading

2010-12-06 Thread Derek Yarnell
On 12/6/10 10:52 AM, Nigel Kersten wrote: > On Mon, Dec 6, 2010 at 7:46 AM, Derek Yarnell wrote: >> On 12/3/10 5:13 PM, Nigel Kersten wrote: >>> On Fri, Dec 3, 2010 at 11:58 AM, Derek Yarnell wrote: So we run puppetd as a long running ruby process on the hosts. When we update a fact t

Re: [Puppet Users] Fact auto sync reloading

2010-12-06 Thread Nan Liu
On Mon, Dec 6, 2010 at 8:13 AM, Derek Yarnell wrote: > Why does it load the facts twice, or is this just misleading? That's currently an open issue: http://projects.puppetlabs.com/issues/3741. Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Us

Re: [Puppet Users] Does Puppet depend on Augeas?

2010-12-06 Thread Martijn Grendelman
On 06-12-10 16:54, Nigel Kersten wrote: > On Mon, Dec 6, 2010 at 6:44 AM, Stig Sandbeck Mathisen wrote: >> Martijn Grendelman writes: >> >>> Hi, >>> >>> The lastest Puppet package in Ubuntu Natty /depends/ on libaugeas, >>> rather than merely recommending it, like it used to, up to and >>> includ

Re: [Puppet Users] browsing puppet file server

2010-12-06 Thread Felix Frank
On 11/24/2010 12:18 PM, Arnau Bria wrote: > Hi all, > > I'm wondering if there is some way for browsing puppet file server. > > Sometimes I get the "Could not retrieve information from source" and I > get crazy looking for typos in paths. > > > If not, how do you check path sanity? Basically,

Re: [Puppet Users] Does Puppet depend on Augeas?

2010-12-06 Thread Nigel Kersten
On Mon, Dec 6, 2010 at 8:32 AM, Martijn Grendelman wrote: > On 06-12-10 16:54, Nigel Kersten wrote: >> On Mon, Dec 6, 2010 at 6:44 AM, Stig Sandbeck Mathisen wrote: >>> Martijn Grendelman writes: >>> Hi, The lastest Puppet package in Ubuntu Natty /depends/ on libaugeas, rathe

Re: [Puppet Users] browsing puppet file server

2010-12-06 Thread Nigel Kersten
On Wed, Nov 24, 2010 at 3:18 AM, Arnau Bria wrote: > Hi all, > > I'm wondering if there is some way for browsing puppet file server. > > Sometimes I get the "Could not retrieve information from source" and I > get crazy looking for typos in paths. > > > If not, how do you check path sanity? Are y

Re: [Puppet Users] Does Puppet depend on Augeas?

2010-12-06 Thread Stig Sandbeck Mathisen
Martijn Grendelman writes: > The reason I asked is, that I was trying to install a home-made > backport of Puppet 2.6.3 on an Ubuntu Hardy machine, and it complained > about a missing (and unavailable) dependency. Libaugeas was introduced > in Ubuntu in the Karmic (9.10) release. On Debian, Ubun

[Puppet Users] error: Could not intern from pson: source did not contain any PSON!

2010-12-06 Thread russell.fulton
I am getting this error on the clients. (I am running with --test). rerunning the command works as expected. This does not happen every time. I have no idea what the message means or more precisely what a PSON is... Russell -- You received this message because you are subscribed to the Google

[Puppet Users] Extlookup in external nodes

2010-12-06 Thread Douglas Garstang
I don't suppose I can do this in an external node, can I? classes: - network::config::app_bonded environment: production parameters: password : extlookup("password", "", "default_${domain}") Doug. -- You received this message because you are subscribed to the Google Groups "Puppet Use

Re: [Puppet Users] Extlookup in external nodes

2010-12-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/06/2010 09:01 PM, Douglas Garstang wrote: > I don't suppose I can do this in an external node, can I? no but you can probably tune your extlookup tool to do that for you, before it spits out the yaml for the puppetmaster. ~pete -BEGIN P

[Puppet Users] Certificate verify failed

2010-12-06 Thread Kikanny
Whenever I try to connect to the master from the client, I get the following error: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed I tried google and most of the results say the problem is due the diff

Re: [Puppet Users] Extlookup in external nodes

2010-12-06 Thread Douglas Garstang
Darn. I was hoping I could. The yaml isn't being auto generated by anything. All the external node script does it reprint it. This was by design because I am dead set against putting the configuration into anything except files. Doug. On Mon, Dec 6, 2010 at 12:13 PM, Peter Meier wrote: > -

Re: [Puppet Users] Puppet services/ folder

2010-12-06 Thread Ian Ward Comfort
On 6 Dec 2010, at 3:52 AM, Craig Dunn wrote: > Reading the latest best practices for 2.6.x I see that it recommends generic > classes for server model types to be put in /etc/puppet/services. Sounds a > sensible idea but I can't seem to find much more information on this and > services/ doesn't

[Puppet Users] File not found during puppet fileserving

2010-12-06 Thread Eric Snow
Here is the error I get: err: //.../File[/root/.bash_profile]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet:///modules/bash/bash_profile at ... However, the file is there: # ll /usr/share/puppet/development/app_modules/bash/files/bash_profile

Re: [Puppet Users] backtick in exec

2010-12-06 Thread Patrick
On Dec 6, 2010, at 3:55 AM, Matt Keating wrote: > How do you do a backtick inside an exec? > > eg: > > exec { "Testworld": > command => "/bin/echo hello `cat /etc/hostname` > /tmp/hello.txt", > } > In general, you can't because that would need to be run by a shell, not by puppet. If you

Re: [Puppet Users] File not found during puppet fileserving

2010-12-06 Thread Patrick
On Dec 6, 2010, at 12:54 PM, Eric Snow wrote: > Here is the error I get: > > err: //.../File[/root/.bash_profile]: Failed to retrieve current state > of resource: Could not retrieve information from source(s) > puppet:///modules/bash/bash_profile at ... > > However, the file is there: > > # ll

[Puppet Users] Re: File not found during puppet fileserving

2010-12-06 Thread jcbollinger
On Dec 6, 2:54 pm, Eric Snow wrote: > Here is the error I get: > > err: //.../File[/root/.bash_profile]: Failed to retrieve current state > of resource: Could not retrieve information from source(s) > puppet:///modules/bash/bash_profile at ... > > However, the file is there: > > # ll /usr/share/

Re: [Puppet Users] Extlookup in external nodes

2010-12-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > The yaml isn't being auto generated by anything. All the external node > script does it reprint it. This was by design because I am dead set against > putting the configuration into anything except files. The issue is that parameters is just a yaml

Re: [Puppet Users] error: Could not intern from pson: source did not contain any PSON!

2010-12-06 Thread Patrick
On Dec 6, 2010, at 11:53 AM, russell.fulton wrote: > I am getting this error on the clients. (I am running with --test). > rerunning the command works as expected. > > This does not happen every time. I have no idea what the message > means or more precisely what a PSON is... This can happen w

[Puppet Users] Re: error: Could not intern from pson: source did not contain any PSON!

2010-12-06 Thread russell.fulton
> > This can happen when your client's major version is larger than your server's > major version.  Is that possable? Indeed! Thanks -- clients on 2.5 server on 2.6... -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, se

Re: [Puppet Users] Certificate verify failed

2010-12-06 Thread Stefan Schulte
On Mon, Dec 06, 2010 at 12:13:37PM -0800, Kikanny wrote: > Whenever I try to connect to the master from the client, I get the > following error: > > Could not retrieve catalog from remote server: SSL_connect returned=1 > errno=0 state=SSLv3 read server certificate B: certificate verify > failed I

[Puppet Users] more than one subscription

2010-12-06 Thread russell.fulton
Hi I need to run a command if any one of a number of files change. I can handle this with having an exec and a subscribe clause listing the dependencies but I want the command to be run once per run, i.e. after all the possible updates have happened. I note stages can only be used within a class

Re: [Puppet Users] Re: File not found during puppet fileserving

2010-12-06 Thread Stefan Schulte
On Mon, Dec 06, 2010 at 01:54:40PM -0800, jcbollinger wrote: > Try changing the URL to this: > > puppet:///bash/bash_profile > > That is, drop the "modules" part of the path. > Are you sure? IIRC this is deprecated http://docs.puppetlabs.com/guides/file_serving.html says that modules has to be i

[Puppet Users] Re: File not found during puppet fileserving

2010-12-06 Thread Eric Snow
I have verified that everything has correct permissions: # ls -la app_modules/bash/files/ drwxr-xr-x 3 root root 4096 Nov 24 05:52 . drwxr-xr-x 5 root root 4096 Nov 24 05:52 .. -rw-r--r-- 1 root root 402 Nov 24 05:52 bash_profile -eric On Dec 6, 2:23 pm, Patrick wrote: > On Dec 6, 2010, at 12:

Re: [Puppet Users] Re: audit=>content

2010-12-06 Thread Paul Johnson
Thanks for your comment, I posted a new bug and will wait for a reply from guys. 2010/12/6 jcbollinger : > > On Dec 5, 3:19 am, Paul Johnson wrote: >> sorry, forgot to mention that the target file (/tmp/bar) exists and it >> shouldn't be optional. I tried adding 'ensure => file' as you guys >> su

[Puppet Users] Re: File not found during puppet fileserving

2010-12-06 Thread Eric Snow
Thanks for the feedback. My understanding is that the first part of the path has to be the location for the file server to do the lookup (as in the /etc/puppet/fileserver.conf file). Without this the puppetmaster would not know where to look for the files. Was this something that works for you?

Re: [Puppet Users] more than one subscription

2010-12-06 Thread Stefan Schulte
On Mon, Dec 06, 2010 at 03:08:27PM -0800, russell.fulton wrote: > Hi > > I need to run a command if any one of a number of files change. I can > handle this with having an exec and a subscribe clause listing the > dependencies but I want the command to be run once per run, i.e. after > all the po

[Puppet Users] Recurse broken in File type?

2010-12-06 Thread Eric Shamow
Was going to open a new ticket but saw this -- http://projects.puppetlabs.com/issues/5414 The user reports the issue in 2.6.3, i see it in 2.6.4 as well, on CentOS 5.5. If I modify a file in a folder that is being deployed recursively, that update is not happening on the clients. Setting filetim

Re: [Puppet Users] Re: File not found during puppet fileserving

2010-12-06 Thread Stefan Schulte
On Mon, Dec 06, 2010 at 03:31:01PM -0800, Eric Snow wrote: > Thanks for the feedback. My understanding is that the first part of > the path has to be the location for the file server to do the lookup > (as in the /etc/puppet/fileserver.conf file). Without this the > puppetmaster would not know wh

[Puppet Users] Auth.conf does not work with IPs

2010-12-06 Thread Bostjan Skufca
Hi! Did someone else notice similar behaviour? I use "puppet kick hostname.domain.net" to occasionally trigger catalog runs. But it does not work if I specify IP in auth.conf, like this: path /run method save allow 1.2.3.4 -

[Puppet Users] Re: File not found during puppet fileserving

2010-12-06 Thread Eric Snow
Thanks for the reply. The modules mount is okay: [modules] allow * I am just trying to track down why the puppetmaster can't locate the file in question even though it is there are permissions are okay. What would be a good place to look in the puppet code to find out what paths it is actually

Re: [Puppet Users] Auth.conf does not work with IPs

2010-12-06 Thread Patrick
On Dec 6, 2010, at 3:54 PM, Bostjan Skufca wrote: > Hi! > > Did someone else notice similar behaviour? > > I use "puppet kick hostname.domain.net" to occasionally trigger > catalog runs. But it does not work if I specify IP in auth.conf, like > this: > >

Re: [Puppet Users] Extlookup in external nodes

2010-12-06 Thread Carl.caum
If you're using 2.6 you can make a pure ruby class that will look at each variable and see if its value is a function if it is, call that function. However, I don't know how to replace the value of the variable with what re function returns. You can get the basic concept I'm talking about here:

[Puppet Users] Re: quick basics to install functioning ubuntu system?

2010-12-06 Thread chiggsy
> Apart from what looks to be you talking to yourself? :) Nope. > I talk to myself all the time. Well, I call it talking. "Muttering, grumbling, mumbling under my breath" is what you might call it, if you were here, which would be a bit alarming since I'm self employed ;) > If you ask more spe