Re: [Puppet Users] puppet push mode

2010-10-06 Thread Patrick
On Oct 6, 2010, at 5:20 PM, Mohamed Lrhazi wrote: > On Wed, Oct 6, 2010 at 7:33 PM, James Louis wrote: >> if an instance of puppetd is already running then you'll get that error >> message when you try to start up another instance. also there may be a >> puppetd.pid left from the last time it wa

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
all I know is you should probably only run one instance at a time. I'm kinda of a noob at this too so I hope I've been helpful. On Wed, Oct 6, 2010 at 7:20 PM, Mohamed Lrhazi wrote: > On Wed, Oct 6, 2010 at 7:33 PM, James Louis wrote: > > if an instance of puppetd is already running then you'll

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
On Wed, Oct 6, 2010 at 7:33 PM, James Louis wrote: > if an instance of puppetd is already running then you'll get that error > message when you try to start up another instance. also there may be a > puppetd.pid left from the last time it was ran. you would then have to > remove that pid file. >

Re: [Puppet Users] Checking and setting svc properties in Solaris

2010-10-06 Thread John Warburton
If you own the manifest already, you can set properties there Otherwise, you can do what we do and use an exec - not efficient, but it works exec { 'syslog_remote': command => "svccfg -s svc:/system/system-log setprop config/log_from_remote = $syslog_from_remote \ || { svc

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
if an instance of puppetd is already running then you'll get that error message when you try to start up another instance. also there may be a puppetd.pid left from the last time it was ran. you would then have to remove that pid file. On Wed, Oct 6, 2010 at 6:16 PM, Mohamed Lrhazi wrote: > On W

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
On Wed, Oct 6, 2010 at 7:07 PM, James Louis wrote: > sounds like you have puppetd already running That's right. I am trying to see if I can run puppetd in listen mode, permanently. AND, from shell/cron, run puppetd --noop. Goal: - Receive constant reports about what needs to run (from the noop p

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
sounds like you have puppetd already running On Wed, Oct 6, 2010 at 5:42 PM, Mohamed Lrhazi wrote: > The error when run without --test is: > > # puppetd --noop --onetime > Could not prepare for execution: Could not create PID file: > /var/lib/puppet/run/puppetd.pid > > > > On Wed, Oct 6, 2010

Re: [Puppet Users] Using Augeas to manage /etc/network/interfaces from Puppet

2010-10-06 Thread Ryan Y. Coleman
Also see this blog post: http://www.puppetlabs.com/blog/puppets-google-summer-of-code/ which discusses this possibly useful module: http://github.com/blkperl/puppet-network - Original Message - > From: "Andrew Pollock" > To: augeas-de...@redhat.com, puppet-users@googlegroups.com > Cc: "

[Puppet Users] Re: Using Augeas to manage /etc/network/interfaces from Puppet

2010-10-06 Thread Andrew Pollock
On Oct 6, 12:22 pm, Rob McBroom wrote: > On Oct 6, 2010, at 2:31 PM, Andrew Pollock wrote: > > > I hear there's some user-contributed Augeas examples in a Puppet wiki > > somewhere, but I haven't been able to find them. Any pointers appreciated. > > There is (and even I have a hard time finding i

[Puppet Users] weird ELF error

2010-10-06 Thread Steve (steev) Neuharth
Anyone know what this is? It doesn't seem related to puppet but I'm stumped. info: Loading facts in dmidecode info: Loading facts in cpuinfo debug: catalog supports formats: b64_zlib_yaml marshal pson raw yaml; using pson /usr/lib64/ruby/site_ruby/1.8/puppet/indirector/rest.rb:55:in `deserialize'

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
The error when run without --test is: # puppetd --noop --onetime Could not prepare for execution: Could not create PID file: /var/lib/puppet/run/puppetd.pid On Wed, Oct 6, 2010 at 6:40 PM, Mohamed Lrhazi wrote: > On Wed, Oct 6, 2010 at 6:33 PM, James Louis wrote: >> that sounds like how I w

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
On Wed, Oct 6, 2010 at 6:33 PM, James Louis wrote: > that sounds like how I would set it up > One little problem though It I try to run puppetd from command line (and I assume from cron) with --onetime and --noop, while the listner is running, I get this: # puppetd --noop --test notice: Ign

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
that sounds like how I would set it up On Wed, Oct 6, 2010 at 4:42 PM, Mohamed Lrhazi wrote: > I think I got it... > > - Run puppetd with --no-client and listen mode. Activate changes by > calling puppetrun > - From cron, run puppetd --noop on regular basis to report on the config. > > Would thi

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
I think I got it... - Run puppetd with --no-client and listen mode. Activate changes by calling puppetrun - From cron, run puppetd --noop on regular basis to report on the config. Would this be proper configuration or would it be an unsupported hack ? Thanks a lot. Mohamed. -- You received thi

[Puppet Users] Checking and setting svc properties in Solaris

2010-10-06 Thread Philip Brown
Hello folks, I've been looking into how I might check (and possibly set) svc properties via puppet. The closest I've found, is the provider/service/smf stuff. However, that seems to only allow enabling and disabling of services. NOT of configuring properties. Is there some way I dont know of, how

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
On Wed, Oct 6, 2010 at 4:33 PM, James Louis wrote: > you have to use --no-client on the command line when running puppetd. I've > set it up in my /etc/sysconfig/puppet file on CentOS so it's pulled in as > part of PUPPET_EXTRAOPTS. > Thanks a lot. That seems to work Now I know how to run pupp

[Puppet Users] Re: "Good" usage of --parseonly

2010-10-06 Thread Oliver Hookins
On Oct 4, 2:31 pm, "Eduardo S. Scarpellini" wrote: > Oliver, > we use CSM hook-scripts to validate any ''.pp'' or ''.erb'' files and it > works perfectly. > I recommend you look at INOTIFY kernel feature for wait for I/O events in > puppet modules directory. You can do that trought INCROND > (htt

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
you have to use --no-client on the command line when running puppetd. I've set it up in my /etc/sysconfig/puppet file on CentOS so it's pulled in as part of PUPPET_EXTRAOPTS. On Wed, Oct 6, 2010 at 3:09 PM, Mohamed Lrhazi wrote: > On Wed, Oct 6, 2010 at 9:01 AM, James Louis wrote: > > I couldn'

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Mohamed Lrhazi
On Wed, Oct 6, 2010 at 9:01 AM, James Louis wrote: > I couldn't find anything that said the setting of runinterval would affect > the stopping of pull. Ohad, I did find the no-client option and have it in > effect. It does appear to stop the pull. > That does not work for me... what version are y

Re: [Puppet Users] Using Augeas to manage /etc/network/interfaces from Puppet

2010-10-06 Thread Rob McBroom
On Oct 6, 2010, at 2:31 PM, Andrew Pollock wrote: > I hear there's some user-contributed Augeas examples in a Puppet wiki > somewhere, but I haven't been able to find them. Any pointers appreciated. There is (and even I have a hard time finding it). http://projects.puppetlabs.com/projects/pupp

Re: [Puppet Users] Dynamic Variable Name

2010-10-06 Thread Rob McBroom
On Oct 6, 2010, at 2:48 PM, Rodrigo Lopes wrote: > Any alternative? There may be other options, but I would look at inline_template() for this. http://docs.puppetlabs.com/references/latest/function.html#inline_template -- Rob McBroom -- You received this message bec

[Puppet Users] Using Augeas to manage /etc/network/interfaces from Puppet

2010-10-06 Thread Andrew Pollock
Hi, Sorry for the broad distribution, I'm not sure who best can help me. I'm trying to add a new interface stanza to /etc/network/interfaces. With augtool, I can accomplish this with the following: set /files/etc/network/interfaces/iface[last()+1] bond1 set /files/etc/network/interfaces/iface[l

[Puppet Users] Dynamic Variable Name

2010-10-06 Thread Rodrigo Lopes
Is it possible to dynamically determine a variable's name? I would like to do: $project_NAME where NAME can be anything. I've tried this (for experiment purposes): $project_name = 'my_project' $project_my_project = '/mnt/pa/test' #this variable will be set out of this script notice($"project$

Re: [Puppet Users] tidy resource logging conflict

2010-10-06 Thread Bruce Richardson
On Wed, Oct 06, 2010 at 09:18:07AM -0700, Patrick wrote: > > > I didn't quite understand what you said. Here's an example manifest that demonstrates both problems: file { '/tmp/shared': ensure => 'directory' } file { '/tmp/shared/notice': ensure => 'file' } file { '/tmp/shared/verbose':

Re: [Puppet Users] How do you ensure safety from errors/bugs in large deployments?

2010-10-06 Thread Douglas Garstang
On Wed, Oct 6, 2010 at 10:43 AM, Nigel Kersten wrote: > On Tue, Oct 5, 2010 at 7:39 PM, Jeff McCune wrote: > > On Tue, Oct 5, 2010 at 6:05 PM, Mohamed Lrhazi wrote: > >> Hello all, > >> > >> This is not a puppet proper issue of course.. but I was wondering if > >> any of you could share some tho

Re: [Puppet Users] How do you ensure safety from errors/bugs in large deployments?

2010-10-06 Thread Nigel Kersten
On Tue, Oct 5, 2010 at 7:39 PM, Jeff McCune wrote: > On Tue, Oct 5, 2010 at 6:05 PM, Mohamed Lrhazi wrote: >> Hello all, >> >> This is not a puppet proper issue of course.. but I was wondering if >> any of you could share some thoughts... >> >> When you deploy a system like Puppet at a large park

Re: [Puppet Users] Re: puppet push mode

2010-10-06 Thread Nigel Kersten
On Wed, Oct 6, 2010 at 9:15 AM, Patrick wrote: > > On Oct 6, 2010, at 6:17 AM, Mikel King wrote: > >> I am in a similar but different situation. I need to have puppet check >> in only upon boot up and then shutdown until next boot. Does anyone >> know a puppet way of handling this our should I res

Re: [Puppet Users] tidy resource logging conflict

2010-10-06 Thread Patrick
On Oct 6, 2010, at 6:06 AM, Bruce Richardson wrote: > One of the nice features of using the Tidy resource to prune a directory > hierarchy in puppet is that any File resources you create within that > tree will not be touched. However, the tidy resource *will* log that it > is tidying them. Thi

Re: [Puppet Users] Re: puppet push mode

2010-10-06 Thread Patrick
On Oct 6, 2010, at 6:17 AM, Mikel King wrote: > I am in a similar but different situation. I need to have puppet check > in only upon boot up and then shutdown until next boot. Does anyone > know a puppet way of handling this our should I resort to basic sh > scripting to accommodate this? I ass

[Puppet Users] Re: User Resource Type | non-unique UID

2010-10-06 Thread CraftyTech
I answered my own question from the documentation.. allowdupe => true Hope it helps someone else looking for a similar answer. On Oct 6, 11:29 am, CraftyTech wrote: > Hello All, > >      Is there a way in puppet to define a User resource with a non- > unique UID? i.e, >   �...@user { 'user1'

[Puppet Users] User Resource Type | non-unique UID

2010-10-06 Thread CraftyTech
Hello All, Is there a way in puppet to define a User resource with a non- unique UID? i.e, @user { 'user1': tag => 'test', uid => '' } @user { 'user2': tag => 'test', uid => '' } If I do it like this, I get an error saying that the UID is not unique

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Silviu Paragina
Try setting the checksum to undef (from what I understood this was implemented in 2.6). How many files are in those folders? What order of magnitude? tens of thousands, millions, under 1000? Sidenote: The requires for parent folders are done automagically, you don't need to specify them. Si

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Peter Meier
> Is there a central location for Puppet documentation? I would be glad to > add/update the docs. Seems there should be a chapter/paragraph on using push > only. The wiki is good starting point to add content. And James recently pointed out how to get things to the curated documentation [1]. But I

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Trevor Vaughan
Yeah, that's too much for recurse. The issue is that Puppet will create an in-memory 'file' object for each file and directory in the entire tree. It will then try to munge that whole messi into the in-memory catalog. The result is well...memory FAIL. In theory, some of this has been addressed

Re: [Puppet Users] tidy resource logging conflict

2010-10-06 Thread Bruce Richardson
On Wed, Oct 06, 2010 at 02:06:29PM +0100, Bruce Richardson wrote: > I think it would be reasonable of puppet not to log the tidying of files > which are not actually tidied. Do people agree? In which case I'll > file a bug report. Or have I missed a clean way of resolving this? In fact, I'm fin

[Puppet Users] Re: puppet push mode

2010-10-06 Thread Mikel King
Exactly what I plan to do, just was wondering if there were a puppet option for this. Thanks guys. On Oct 6, 9:29 am, Bruce Richardson wrote: > On Wed, Oct 06, 2010 at 03:19:27PM +0200, Peter Meier wrote: > > On 10/06/2010 03:17 PM, Mikel King wrote: > > > I am in a similar but different situatio

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Felix Frank
>> Seriously though, make sure this is not related to checksums. >> I've had a puppetd run hours when it tried to compute a completely >> unnecessary checksum for a large catalina.out file in a recurse => true >> directory. > > Hrm. Interesting. I suppose it could have loaded the whole tree in >

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Angelos Oikonomopoulos
On 10/06/2010 03:24 PM, Felix Frank wrote: In any case, by /more/ selective commenting I've deduced that it's the recurse => true in http://paste.lisp.org/display/115229 that triggers this. If I leave it out (or change it to false), puppet applies the catalog as expected. Haven't I hinted at y

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Angelos Oikonomopoulos
On 10/06/2010 03:18 PM, Peter Meier wrote: In any case, by /more/ selective commenting I've deduced that it's the recurse => true in http://paste.lisp.org/display/115229 that triggers this. If I leave it out (or change it to false), puppet applies the catalog as expected. Can someone figure out

Re: [Puppet Users] Re: puppet push mode

2010-10-06 Thread Bruce Richardson
On Wed, Oct 06, 2010 at 03:19:27PM +0200, Peter Meier wrote: > On 10/06/2010 03:17 PM, Mikel King wrote: > > I am in a similar but different situation. I need to have puppet check > > in only upon boot up and then shutdown until next boot. Does anyone > > know a puppet way of handling this our shou

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
Pete, Is there a central location for Puppet documentation? I would be glad to add/update the docs. Seems there should be a chapter/paragraph on using push only. Jim On Wed, Oct 6, 2010 at 8:16 AM, Peter Meier wrote: > On 10/06/2010 03:01 PM, James Louis wrote: > > I couldn't find anything tha

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Bruce Richardson
On Wed, Oct 06, 2010 at 03:18:44PM +0200, Peter Meier wrote: > > about how many files are we talking under the hierarchy of the recurse > file resources? and how big are they? And which filesystem type. Some are much more painful to walk than others. -- Bruce What would Edward Woodward do?

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Felix Frank
> In any case, by /more/ selective commenting I've deduced that it's the > recurse => true in http://paste.lisp.org/display/115229 that triggers > this. If I leave it out (or change it to false), puppet applies the > catalog as expected. Haven't I hinted at you to refactor that in IRC? ;-) Seriou

Re: [Puppet Users] Re: puppet push mode

2010-10-06 Thread Peter Meier
On 10/06/2010 03:17 PM, Mikel King wrote: > I am in a similar but different situation. I need to have puppet check > in only upon boot up and then shutdown until next boot. Does anyone > know a puppet way of handling this our should I resort to basic sh > scripting to accommodate this? @reboot if

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Peter Meier
> In any case, by /more/ selective commenting I've deduced that it's the > recurse => true in http://paste.lisp.org/display/115229 that triggers > this. If I leave it out (or change it to false), puppet applies the > catalog as expected. > > Can someone figure out what the actual issue is? about

[Puppet Users] Re: puppet push mode

2010-10-06 Thread Mikel King
I am in a similar but different situation. I need to have puppet check in only upon boot up and then shutdown until next boot. Does anyone know a puppet way of handling this our should I resort to basic sh scripting to accommodate this? Regards, Mikel On Oct 6, 9:01 am, James Louis wrote: > I co

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Peter Meier
On 10/06/2010 03:01 PM, James Louis wrote: > I couldn't find anything that said the setting of runinterval would affect > the stopping of pull. Ohad, I did find the no-client option and have it in > effect. It does appear to stop the pull. can you look a ticket to improve documentation? Or even co

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Angelos Oikonomopoulos
On 10/06/2010 02:41 PM, Trevor Vaughan wrote: I've had that same issue with things hanging and having no idea whet they're hanging on. Try popping open your YAML catalog in a text editor and see what comes right after the entry that's listed last. Hmm, this sounds like good advice, but is the

[Puppet Users] tidy resource logging conflict

2010-10-06 Thread Bruce Richardson
One of the nice features of using the Tidy resource to prune a directory hierarchy in puppet is that any File resources you create within that tree will not be touched. However, the tidy resource *will* log that it is tidying them. This is not good. I like puppet to log any changes it makes so th

Re: [Puppet Users] puppet push mode

2010-10-06 Thread James Louis
I couldn't find anything that said the setting of runinterval would affect the stopping of pull. Ohad, I did find the no-client option and have it in effect. It does appear to stop the pull. On Wed, Oct 6, 2010 at 7:53 AM, Ohad Levy wrote: > --no-client > > Ohad > > On Tue, Oct 5, 2010 at 3:33 P

Re: [Puppet Users] puppet push mode

2010-10-06 Thread Ohad Levy
--no-client Ohad On Tue, Oct 5, 2010 at 3:33 PM, James Louis wrote: > Hello All, > > I am trying to put puppet into push mode only. The instructions I've seen > have said to put listen=true in puppet.conf but that doesn't seem to have > stopped the pull every 30 minutes. What else needs to be s

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Trevor Vaughan
I've had that same issue with things hanging and having no idea whet they're hanging on. Try popping open your YAML catalog in a text editor and see what comes right after the entry that's listed last. I've had reasonable luck with figuring things out from that. On 10/6/10, Angelos Oikonomopoulo

RE: [Puppet Users] puppet push mode

2010-10-06 Thread Byron Pezan
man puppet.conf --- runinterval How often puppetd applies the client configuration; in seconds. * Default: 1800 --- i would assume that an interval of 0 would prevent puppet from running periodically, perhaps someone else can correct me if i'm wrong. byron From: puppet-users@go

Re: [Puppet Users] Re: getting empty files from fileserver

2010-10-06 Thread John Hawkes-Reed
On 6/10/10 09:03, "Peter Meier" wrote: >> FWIW, my server-side logs don't show me the $project part in the GETs >> at all - the $hostname (and other facts are) is shown. >> >> [2010-10-06 00:04:35] bar - - [06/Oct/2010:00:04:35 CDT] "GET / >> production/file_metadata/users//sudoers.xen-3 HTTP/1.

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Angelos Oikonomopoulos
On 10/06/2010 12:17 AM, Patrick wrote: This is huge. Are you serving a lot of big files or templates? Not at all. Aggelos -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com.

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Angelos Oikonomopoulos
On 10/05/2010 06:58 PM, Trevor Vaughan wrote: You might want to try running the client with --evaltrace for additional information. Thanks. This didn't help much, as it's only printing out the information after the resource evaluation, so I still have no idea what it's doing when it gets st

[Puppet Users] Managing www-data group membership

2010-10-06 Thread Sam Minnee
Hi everyone, I have Puppet set up so that I can manage apache virtual hosts using a define. Each virtual host creates a user and a group, and I want the www-data user to be a member of all of the virtual host groups. Here is a simplified version of my set-up, demonstrating the issue: class apac

[Puppet Users] --tags main not inheriting correctly?

2010-10-06 Thread Tim Nicholas
Hi all, I've just started using tags but I'm struggling to apply the whole catalogue once some default tags are specified in puppet.conf. It looks like I should be able to do 'puppetd --test --tags main' to apply the whole config but classes included via an inherited node definition (basenode for

Re: [Puppet Users] Re: getting empty files from fileserver

2010-10-06 Thread Peter Meier
> FWIW, my server-side logs don't show me the $project part in the GETs > at all - the $hostname (and other facts are) is shown. > > [2010-10-06 00:04:35] bar - - [06/Oct/2010:00:04:35 CDT] "GET / > production/file_metadata/users//sudoers.xen-3 HTTP/1.1" 404 48 > [2010-10-06 00:04:35] bar - - [06/