Re: [Puppet Users] useradd question

2011-11-01 Thread Andrew Hendry
Hi Peter, Have you tried --debug --noop, looking for lines like these: debug: /Stage[main]/Git/File[dirrights]/require: requires User[git] notice: /Stage[main]/Git::User/User[git]/ensure: current_value absent, should be present (noop) debug: /Stage[main]/Git::User/User[git]: The container

Re: [Puppet Users] useradd question

2011-11-01 Thread Peter Horvath
I have other classes and require between classes pps working perfectly puppet apply --trace --debug /etc/puppet/site.pp debug: importing '/etc/puppet/modules/apache2/manifests/init.pp' in environment production debug: Automatically imported apache2 from apache2 into production debug: importing

[Puppet Users] What's the canonical way to enforce permissions/ownership on a directory subtree?

2011-11-01 Thread Robert Atkins
I've just tried this (we assume /opt/jetty-6.1.26 already exists): file { /opt/jetty-6.1.26: owner = jetty, group = users, recurse = true, } ... but it's taking an *age*. What's the Right Way? Cheers, Robert. -- You received this message because you are subscribed to

Re: [Puppet Users] Puppet client starting problem !!

2011-11-01 Thread Felix Frank
Hi, On 10/31/2011 07:47 AM, Swati Longia wrote: I don't even have normal linux commands like useradd or groupadd in this OS. is this a requirement? Because: /err: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: Could not find a

Re: [Puppet Users] Phasewise run of puppet

2011-11-01 Thread R.I.Pienaar
- Original Message - Hi All, I have a requirement to initiate puppet runs of different services in a phase wise manner. I have the following setup in my nodes.pp you seem to be on roughly the right track node /^(host1|host2)\.domain\.local$/ inherits basenode {

Re: [Puppet Users] Rules for numerical variable use

2011-11-01 Thread Henrik Lindberg
On 10/31/11 2:04 AM, Henrik Lindberg wrote: Need help with Geppetto issue #226 regarding rules for numerical variables - https://github.com/cloudsmith/geppetto/issues/226 This is to allow geppetto to correctly validate their use. Help much appreciated. Regards - henrik Thanks everyone who

[Puppet Users] Re: What's the canonical way to enforce permissions/ownership on a directory subtree?

2011-11-01 Thread madAndroid
how big is the directory structure? we've had incredibly painful experiences trying to manage directory perms/ownerships on large directory trees... so much so that we only set the perms on a few of the top level directories and left the rest it's something to do with needing to do an md5 and

[Puppet Users] organizing Ruby DSL manifests

2011-11-01 Thread neubyr
I am trying to understand Puppet's Ruby DSL. I have tried it in server-less mode using 'puppet apply' and it worked fine. But I am not sure how to organize it in the server. It is a simple manifest file without any modules and classes in it. Should it go in the regular manifests directory (which

Re: [Puppet Users] organizing Ruby DSL manifests

2011-11-01 Thread Christopher Wood
This might help you: http://docs.puppetlabs.com/learning/ Lots of people seem to have a structure so that /etc/puppet/manifests/site.pp does this: import nodes/* And then your node definitions are in separate files in /etc/puppet/manifests/nodes. Of course, each to their own. Maybe you like

[Puppet Users] 2.7.6 yumrepo not working

2011-11-01 Thread Christopher Johnston
Just upgraded to 2.7.6 and the yumrepo type does not write out our yum configs correctly, anyone experiencing this? Documentation hasn't changed from what I can tell for this type. # facter -version 1.6.2 # puppetd --version 2.7.6 # facter architecture x86_64 # facter operatingsystem Fedora #

Re: [Puppet Users] 2.7.6 yumrepo not working

2011-11-01 Thread Len Rugen
You probably need to escape some of this, part of ours- .repo/\$releasever/\$basearch puppet/factor shouldn't resolve these variables, they go to the repo file and are resolved by yum or whatever. On Tue, Nov 1, 2011 at 10:45 AM, Christopher Johnston chjoh...@gmail.comwrote: Just upgraded

Re: [Puppet Users] 2.7.6 yumrepo not working

2011-11-01 Thread Jacob Helwig
It's the dashes at the end of variable names problem. Try ...${operatingsystem}-${operatingsystemrelease}-${architecture} instead. On 2011-11-01 09:07 , Len Rugen wrote: You probably need to escape some of this, part of ours- .repo/\$releasever/\$basearch puppet/factor shouldn't resolve

Re: [Puppet Users] Re: Clearing delayed job failures in dashboard

2011-11-01 Thread Steven L. Seed
I don't think this will help. I do report cleanup daily to keep only the last 14 days and it hasn't touched the number of delayed job failures reported. On 10/31/2011 12:26 AM, Evgeny wrote: this will clean all reports, I don't know how to clean only delayed job failures but it may help rake

[Puppet Users] git hooks for pre-commit in puppet 2.7?

2011-11-01 Thread Rob Terhaar
Hi All, Does anyone have a good git pre-commit hook that's compatible with Puppet 2.7? The example pre-commit hook on the PuppetLabs wiki[1] no longer works, because the puppet binary no longer seems to accept stdin. [1] http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control --

Re: [Puppet Users] Intermittent Error 400 catalog failure

2011-11-01 Thread Dominic Maraglia
Len, I would be very interested in the details of your Puppet Master system running 2.7.5. Any configs you are willing to share would be appreciated. Also, it would be most helpful if you can reproduce one of the failed runs using from a Puppet client using: puppet agent --test --debug Thanks!

Re: [Puppet Users] 2.7.6 yumrepo not working

2011-11-01 Thread Christopher Johnston
That worked, for some reason back referencing did not. My foolishness I was overlooking normal variable semantic (like in shell). Strange thing my prior setup worked fine in 2.6, 2.7 broke it. -Chris On Tue, Nov 1, 2011 at 12:40 PM, Jacob Helwig ja...@puppetlabs.com wrote: It's the dashes

Re: [Puppet Users] 2.7.6 yumrepo not working

2011-11-01 Thread Jacob Helwig
There was a change in 2.7 to allow dashes in variable names. There's an issue open in Redmine around this very issue[0] [0] http://projects.puppetlabs.com/issues/10146 On 2011-11-01 10:29 , Christopher Johnston wrote: That worked, for some reason back referencing did not. My foolishness I

[Puppet Users] parameterized module and flow control

2011-11-01 Thread Daenney
Hi guys, For a project I'm working on for my studies we need to create a demo setup of a small enterprise environment. The linux-part of this is now managed by puppet. However, I'm running into something I can't exactly figure to how to fix. I've read the docs a few times but I can't find a

[Puppet Users] Re: Puppet client starting problem !!

2011-11-01 Thread jcbollinger
On Oct 31, 1:47 am, Swati Longia swati.lon...@gmail.com wrote: Hi, I have installed puppet 2.7.5 from tar on open suse 10.1. My ruby version is 1.8.5 and facter version is 1.6.2. The opensuse OS is pretty minimalistic. I don't even have normal linux commands like useradd or groupadd in

Re: [Puppet Users] Intermittent Error 400 catalog failure

2011-11-01 Thread Nigel Kersten
On Tue, Nov 1, 2011 at 6:27 AM, Len Rugen lenru...@gmail.com wrote: I have one host, the only one using this class, where it occasionally gets the following error. I'd guess this happens 1/3 of the time, but seems to work for several runs, then fail for several runs. Could not retrieve

Re: [Puppet Users] Clearing delayed job failures in dashboard

2011-11-01 Thread Nigel Kersten
On Fri, Oct 28, 2011 at 11:32 AM, Steven L. Seed slseed1...@gmail.comwrote: I have a ton of delayed job failures in my dashboard under background tasks. They are mostly failed imports of report yaml files that were deleted. There are over 4 of them so I can't use the Mark all as read

[Puppet Users] Re: Intermittent Error 400 catalog failure

2011-11-01 Thread Chuck
It could be this issue if you are using imports in your Puppet code. https://projects.puppetlabs.com/issues/8433 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe

Re: [Puppet Users] Re: Intermittent Error 400 catalog failure

2011-11-01 Thread Len Rugen
Yes, this fits. I'll change my structure and see if it goes away. (Still, would it work sometimes but not always?) On Tue, Nov 1, 2011 at 2:55 PM, Chuck cssc...@gmail.com wrote: It could be this issue if you are using imports in your Puppet code. https://projects.puppetlabs.com/issues/8433

[Puppet Users] Seattle Meetup - November 8th

2011-11-01 Thread Garrett Honeycutt
Join me 11/8 at Brouwers Cafe in Fremont at 6pm for drinks and discussions on Puppet, DevOps, system administration, etc. http://www.meetup.com/Seattle-Puppet-Meetup/ -g -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group,

[Puppet Users] help with err: Could not find node

2011-11-01 Thread weloki
I'm running Ubuntu 10.04 LTS and I just installed Puppet and puppetmasterd (both 0.25.4) along with the puppet-dashboard v1.2.0 and Foreman 0.3. Puppet and the dashboard were working fine with just the master server and a separate client until I installed and configured Foreman. Now I keep getting

Re: [Puppet Users] help with err: Could not find node

2011-11-01 Thread Christopher Wood
At the top of your email: Could not find node 'puppet.mydomain.com' At the bottom of your email: node default { } node basenode { } node 'puppet-client0.mydomain.com' inherits basenode { } Does it work when you explicitly define this node? node 'puppet.mydomain.com' { } On Tue, Nov 01, 2011

[Puppet Users] Custom fact not set with mc-puppetd

2011-11-01 Thread Stefan Heijmans
Hello, I've mcollective 1.2.1 with puppet 2.6.12 on rhel5.6, facter 1.6.2 setup from http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/FactsFacterYAML. Now I've create a custom fact in /usr/lib/ruby/site_ruby/1.8/facter/ customer_status.rb. On the client; Running facter

[Puppet Users] Re: help with err: Could not find node

2011-11-01 Thread weloki
When I put that line in nodes.pp I get: err: Could not retrieve catalog from remote server: Connection refused - connect (2) On Nov 1, 4:38 pm, Christopher Wood christopher_w...@pobox.com wrote: At the top of your email: Could not find node 'puppet.mydomain.com' At the bottom of your

Re: [Puppet Users] Re: help with err: Could not find node

2011-11-01 Thread Christopher Wood
On Tue, Nov 01, 2011 at 01:56:53PM -0700, weloki wrote: When I put that line in nodes.pp I get: err: Could not retrieve catalog from remote server: Connection refused - connect (2) So what dit he puppetmaster say about this agent run? Also, keep digging into your own email. You may have

Re: [Puppet Users] Custom fact not set with mc-puppetd

2011-11-01 Thread R.I.Pienaar
- Original Message - Hello, I've mcollective 1.2.1 with puppet 2.6.12 on rhel5.6, facter 1.6.2 setup from http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/FactsFacterYAML. Now I've create a custom fact in /usr/lib/ruby/site_ruby/1.8/facter/ customer_status.rb.

Re: [Puppet Users] organizing Ruby DSL manifests

2011-11-01 Thread neubyr
On Tue, Nov 1, 2011 at 9:53 AM, Christopher Wood christopher_w...@pobox.com wrote: This might help you: http://docs.puppetlabs.com/learning/ Lots of people seem to have a structure so that /etc/puppet/manifests/site.pp does this: import nodes/* And then your node definitions are in

Re: [Puppet Users] organizing Ruby DSL manifests

2011-11-01 Thread Christopher Wood
On Tue, Nov 01, 2011 at 04:17:41PM -0500, neubyr wrote: On Tue, Nov 1, 2011 at 9:53 AM, Christopher Wood christopher_w...@pobox.com wrote: This might help you: http://docs.puppetlabs.com/learning/ Lots of people seem to have a structure so that /etc/puppet/manifests/site.pp does

[Puppet Users] Re: Custom fact not set with mc-puppetd

2011-11-01 Thread Stefan Heijmans
On Nov 1, 10:00 pm, R.I.Pienaar r...@devco.net wrote: - Original Message - you should be using pluginsync to copy out custom facts: http://docs.puppetlabs.com/guides/plugins_in_modules.html Ok, enabled pluginsync, customer_status.rb is now copied to the client in

[Puppet Users] Announce: Puppet 2.7.7rc1 available

2011-11-01 Thread Michael Stahnke
Puppet 2.7.7rc1 is available. This release fixes several issues with Mongrel and Puppet 2.7.x, Windows fixes and updates, test fixes, documentation updates and more. Release Notes for 2.7.7 series -- https://projects.puppetlabs.com/projects/puppet/wiki/Release_Notes This release is available

[Puppet Users] Re: Help using puppetlabs-mysql

2011-11-01 Thread treydock
On Oct 31, 3:09 pm, Dan Bode d...@puppetlabs.com wrote: On Mon, Oct 31, 2011 at 12:44 PM, treydock treyd...@gmail.com wrote: On Oct 31, 1:56 pm, treydock treyd...@gmail.com wrote: On Oct 31, 1:05 pm, Dan Bode d...@puppetlabs.com wrote: On Mon, Oct 31, 2011 at 10:55 AM, treydock

[Puppet Users] ERB templates and escaping Apache virtual hosts

2011-11-01 Thread John Morrissey
Is any special escaping necessary for URLs in ERB templates? For example, Puppet complains: bad URI(is not URI?) about the :80 and http:/// lines in a template like this: VirtualHost *:80 [...] RewriteRule ^/+(.*) http://example.com/$1 [L,R=permanent] /VirtualHost Ruby's

[Puppet Users] minimize catalog to ensure upgrade?

2011-11-01 Thread Jo Rhett
we are having problems with incompatibility between older clients and newer configuration syntax. (in specific, user resource system attribute was added somewhere between 2.6.6 and 2.6.11) It seems the right thing to do for older clients when they attach is to give them a very short manifest

Re: [Puppet Users] git hooks for pre-commit in puppet 2.7?

2011-11-01 Thread Nan Liu
On Tue, Nov 1, 2011 at 12:50 PM, Rob Terhaar rob...@robbyt.net wrote: Hi All, Does anyone have a good git pre-commit hook that's compatible with Puppet 2.7? The example pre-commit hook on the PuppetLabs wiki[1] no longer works, because the puppet binary no longer seems to accept stdin. In