[Puppet Users] Validation failed: Host already has a report for time and kind

2011-12-01 Thread Chris Phillips
Howdy, I've been getting this issue for about a month in dashboard. All our nodes poll on a cronjob between 00:00 and 01:00 daily, but one node has been getting this as a failed task for a while, with the yaml files building up on the server. Outside of this one cronjob, other puppet runs on the

[Puppet Users] Could not retrieve catalog fro m remote server: execution expired

2011-12-01 Thread Dmitry
Hello! I am using puppet-2.7.6 on FreeBSD. master is running with apache22 and passenger. I have about 50 clients which share about 20 config files via puppet. agents are configured to query master every 30 minutes with splay=true. After 2-3 days of running, server stops to respond. I see in

[Puppet Users] subscribe exec to a dir fails

2011-12-01 Thread Alexander Swen
Hi, I am trying to convince aptitude update to run only when a file changes in /etc/apt/sources.list.d: exec { snip aptitude-update: command = /usr/bin/aptitude update, subscribe = $basedir/sources.list.d, refreshonly = true; } File { owner = 'root', group =

Re: [Puppet Users] subscribe exec to a dir fails

2011-12-01 Thread Phil Frost
On 12/01/2011 08:01 AM, Alexander Swen wrote: Hi, I am trying to convince aptitude update to run only when a file changes in /etc/apt/sources.list.d: [...] however, when I run this on a target system, puppet generates the .list file in /etc/apt/sources.list.d but forgets to schedule a run of

[Puppet Users] Re: subscribe exec to a dir fails

2011-12-01 Thread Alexander Swen
On 1 dec, 14:16, Phil Frost ind...@bitglue.com wrote: Once you solve that, the next problem you will encounter is that the update may or may not happen before you attempt to install the packages you want from backports. It took me a while to find a solution, so maybe you will find something

Re: [Puppet Users] Re: subscribe exec to a dir fails

2011-12-01 Thread Phillip Frost
On Dec 1, 2011, at 8:41 AM, Alexander Swen wrote: Hi Phil, thanks for your answer, I tried the first solution you suggest but it raises another problem: err: Could not apply complete catalog: Found dependency cycles in the following relationships: File[/etc/init.d/iptables] =

[Puppet Users] Re: subscribe exec to a dir fails

2011-12-01 Thread Alexander Swen
Yeah, that's annoying. It may help to throw graph=true in your puppet.conf, then look at the output in /var/lib/puppet/state/graphs (or set graphdir) with graphviz/dot or omnigraffle. Unfortunately, there's no way to track down the source of a particular edge in the graph, so finding a

[Puppet Users] Re: How to make partial change to a line??

2011-12-01 Thread Sans
Does anyone have any other suggestions for me please? cheers!! -- 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 from this group, send email to

[Puppet Users] Re: Collecting resources and class defaults.

2011-12-01 Thread jcbollinger
On Dec 1, 3:59 am, Steve Traylen steve.tray...@cern.ch wrote: Hi, This is very possibly by design so I am checking that is by design and if so there is a consistant work around. Any class defaults look to be set when the class is stored , any class defaults are then effectively ignored

[Puppet Users] Another case of auto loader issues...

2011-12-01 Thread Peter Berghold
Here is a module layout: tomcat |-- facter |-- files | `-- cleanTomcatLogs.pl |-- lib | `-- puppet | |-- parser | |-- provider | `-- type |-- manifests | |-- classes | |-- defines | |-- init.pp | |-- scripts | | `-- cleanlogs.pp | `-- scripts.pp `-- templates

AW: [Puppet Users] Re: How to make partial change to a line??

2011-12-01 Thread Bernd Adamowicz
Augeas? -Ursprüngliche Nachricht- Von: puppet-users@googlegroups.com [mailto:puppet- us...@googlegroups.com] Im Auftrag von Sans Gesendet: Donnerstag, 1. Dezember 2011 15:54 An: Puppet Users Betreff: [Puppet Users] Re: How to make partial change to a line?? Does anyone have any

Re: [Puppet Users] Another case of auto loader issues...

2011-12-01 Thread Craig White
On Dec 1, 2011, at 8:19 AM, Peter Berghold wrote: Here is a module layout: tomcat |-- facter |-- files | `-- cleanTomcatLogs.pl |-- lib | `-- puppet | |-- parser | |-- provider | `-- type |-- manifests | |-- classes | |-- defines | |-- init.pp | |--

SOLVED: [Puppet Users] Another case of auto loader issues...

2011-12-01 Thread Peter Berghold
Almost as soon as I hit send I thought of something. I added include scripts/* to scripts.pp and it worked like a charm. -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

Re: SOLVED: [Puppet Users] Another case of auto loader issues...

2011-12-01 Thread Peter Berghold
oops... meant import scripts/*.pp not include... On Thu, Dec 1, 2011 at 10:34 AM, Peter Berghold salty.cowd...@gmail.comwrote: Almost as soon as I hit send I thought of something. I added include scripts/* to scripts.pp and it worked like a charm. -- Peter L. Berghold

Re: SOLVED: [Puppet Users] Another case of auto loader issues...

2011-12-01 Thread Luke Bigum
That should definitely not be needed and I'd advise against it - you've just brute forced past Puppet's auto loading and you've moved into manual loading :-) Let me try replicate your module structure and I'll get back to you. On 01/12/11 15:35, Peter Berghold wrote: oops... meant import

Re: [SPAM] Re: [Puppet Users] how to restrict an exec?

2011-12-01 Thread Dave Alden
On Nov 30, 2011, at 8:04 PM, Nan Liu wrote: On Wed, Nov 30, 2011 at 7:41 PM, Dave Alden d...@alden.name wrote: Is there some way to have an exec run only if you pass a tag on the command line? For example: class fubar { exec { 'reboot-system': refreshonly = true, command =

Re: SOLVED: [Puppet Users] Another case of auto loader issues...

2011-12-01 Thread Luke Bigum
Looks fine on my Puppet Master... that turned out a lot less helpful than I was aiming for ;-) info: Applying configuration version '1322754170' notice: /Stage[main]/Tomcat::Scripts::Cleanlogs/File[clean-tomcat-logs-script]/ensure: defined content as '{md5}d41d8cd98f00b204e9800998ecf8427e'

[Puppet Users] Is there a way...

2011-12-01 Thread Peter Berghold
... to invoke a template from multiple modules? Here is what I mean: I have a module called postfix which handles the installation and base configuration of the postfix MTA. I have another module called spamassassin which deals with the download and installation of the Mail::SpamAssassin Perl

Re: [Puppet Users] Is there a way...

2011-12-01 Thread Christopher Wood
(Take all this with a grain of salt, perhaps I'm inexperiencedly rhubarbing on.) You don't necessarily need to configure your packages in the same module that you install them in. You can have a generic module for installing packages, which is included by more specific configuration modules. I

Re: [Puppet Users] Is there a way...

2011-12-01 Thread Craig White
On Dec 1, 2011, at 8:49 AM, Peter Berghold wrote: ... to invoke a template from multiple modules? Here is what I mean: I have a module called postfix which handles the installation and base configuration of the postfix MTA. I have another module called spamassassin which deals with the

Re: [Puppet Users] Re: Collecting resources and class defaults.

2011-12-01 Thread Steve Traylen
On Thu, Dec 1, 2011 at 4:16 PM, jcbollinger john.bollin...@stjude.org wrote: The default is taken from storage host rather than collecting host. This may well be by design ? Indeed it is, doubly so.  First, the whole point of exported resources is that the *exporting* node defines all their

Re: [Puppet Users] Is there a way...

2011-12-01 Thread Luke Bigum
Generally when I run into this problem I make the troublesome configuration file a Concat file - there's a number of implementations around, including a pure Ruby one I've been meaning to track down but this is RIP's original: https://github.com/ripienaar/puppet-concat Make the Postfix module

Re: [Puppet Users] Is there a way to invoke a template from multiple modules?

2011-12-01 Thread Phillip Frost
On Dec 1, 2011, at 10:49 AM, Peter Berghold wrote: I have a module called postfix which handles the installation and base configuration of the postfix MTA. I have another module called spamassassin which deals with the download and installation of the Mail::SpamAssassin Perl module which

[Puppet Users] Re: How to make partial change to a line??

2011-12-01 Thread Sans
Augeas - does it work for any file? just tried and augtool print / files/etc/profile.d/my-env.sh on the agent returns nothing. Cheers!! On Dec 1, 3:23 pm, Bernd Adamowicz bernd.adamow...@esailors.de wrote: Augeas? -- You received this message because you are subscribed to the Google Groups

[Puppet Users] Announce: Puppet 2.7.8rc2 Available

2011-12-01 Thread Matthaus Litteken
As noted on the puppet-dev list by Jeffrey Ollie, 2.7.8rc1 had a patch mistakenly applied before release. So here is 2.7.8rc2, now with less extra patches. Puppet 2.7.8rc2 is available. 2.7.8rc2 contains everything that was being previewed in the 2.7.7rc series as well as some new content. Key

Re: [Puppet-dev] Re: [Puppet Users] Announce: Puppet 2.7.8rc1 available

2011-12-01 Thread Matthaus Litteken
Jeff, you are totally right. We mistakenly applied a patch before release. We've just released 2.7.8rc2, which should be more sane and not try to create those directories. Thanks for letting us know. -haus On Thu, Dec 1, 2011 at 8:42 AM, Jeffrey Ollie j...@ocjtech.us wrote: On Thu, Dec 1, 2011

[Puppet Users] Re: Another case of auto loader issues...

2011-12-01 Thread jcbollinger
On Dec 1, 9:19 am, Peter Berghold salty.cowd...@gmail.com wrote: Here is a module layout: tomcat |-- facter |-- files |   `-- cleanTomcatLogs.pl |-- lib |   `-- puppet |       |-- parser |       |-- provider |       `-- type |-- manifests |   |-- classes |   |-- defines |   |--

[Puppet Users] Re: subscribe exec to a dir fails

2011-12-01 Thread jcbollinger
On Dec 1, 8:19 am, Alexander Swen alex.s...@gmail.com wrote: Yeah, that's annoying. It may help to throw graph=true in your puppet.conf, then look at the output in /var/lib/puppet/state/graphs (or set graphdir) with graphviz/dot or omnigraffle. Unfortunately, there's no way to track

[Puppet Users] Re: subscribe exec to a dir fails

2011-12-01 Thread Alexander Swen
Yes, stages can cause that kind of problem very easily.  I think the best strategy when using stages is to make sure that no class has any explicit relationship to any class assigned to a different stage.  All cross-stage relationships are either implicit already in the stage assignments or

[Puppet Users] Puppet for Oracle Enterprise Linux

2011-12-01 Thread Douglas Garstang
Anyone know where I can get puppet from for Oracle Enterprise Linux ? Actually, I guess the problem runs deeper than that, because this OEL is running inside EC2, and the Oracle supplied AMI doesn't even come with any repo's installed, so I also have to work out how to get facter, ruby etc etc on

Re: [Puppet Users] Puppet for Oracle Enterprise Linux

2011-12-01 Thread Douglas Garstang
On Thu, Dec 1, 2011 at 4:03 PM, Michael Stahnke stah...@puppetlabs.com wrote: Puppet works fine on OEL.  You can add yum.puppetlabs.com as a repo and use the el based stuff. rpm -Uvh http://yum.puppetlabs.com/el/5/products/i386/puppetlabs-release-5-1.noarch.rpm That should get you going.

Re: [Puppet Users] Puppet for Oracle Enterprise Linux

2011-12-01 Thread Gonzalo Servat
Try the EPEL repo -- http://fedoraproject.org/wiki/EPEL. - Gonzalo On Fri, Dec 2, 2011 at 11:07 AM, Douglas Garstang doug.garst...@gmail.comwrote: On Thu, Dec 1, 2011 at 4:03 PM, Michael Stahnke stah...@puppetlabs.com wrote: Puppet works fine on OEL. You can add yum.puppetlabs.com as a

[Puppet Users] Calling puppet from a script

2011-12-01 Thread Ted
I'm trying to call puppet from a bash script and whilst it works, it causes my script to end prematurely. #!/bin/bash ... function runPuppetLocally() { echo ...running Puppet locally exec puppet agent --test echo Puppet complete } runPuppetLocally I presume Puppet is issuing an

Re: [Puppet Users] Digest for puppet-users@googlegroups.com - 25 Messages in 10 Topics

2011-12-01 Thread Matthew Arguin
I am currently troubleshooting an issue where i cannot get a variable (e.g. $verScripts )that i am setting in templates.pp in a node definition, then inheriting that def in to a specific node in the nodes.pp and calling the variable as part of a source path in the init.pp for a module...the

Re: [Puppet Users] Which package repository for puppet installation (rh/centos) ?

2011-12-01 Thread Jan Ivar Beddari
On 29. nov. 2011 19:28, Michael Stahnke wrote: That's no longer the case with apt.puppetlabs.com and yum.puppetlabs.com (or if it is, my team messed up). We've been following your work on this closely and are very happy you and Puppetlabs finally pulled this together. A big 'thank you'! The

Re: [Puppet Users] Puppet for Oracle Enterprise Linux

2011-12-01 Thread Rayson Ho
There are only a few minor differences between RHEL, CentOS, and Oracle Linux... so if a package works on RHEL, then it also works on Oracle Linux. IIRC, if you point to the correct repo, you can even update Oracle Linux with CentOS repo. Further, Oracle has a public yum for Oracle Linux even for

Re: [Puppet Users] Digest for puppet-users@googlegroups.com - 9 Messages in 8 Topics

2011-12-01 Thread Matthew Arguin
I am currently troubleshooting an issue where i cannot get a variable that i am setting in templates.pp in a node definition, then inheriting that def in to a specific node in the nodes.pp and calling the variable as part of a source path in the init.pp for a module...the varibale is not expanding

[Puppet Users] Can I serve a template depending on if it exists like I can a source?

2011-12-01 Thread Chris Hirsch
Hi all, I'm trying to figure out if I can serve a certain template that matches a hostname or serve the default like I could if this was just a file. Works: file { '/etc/yum.conf': ensure = file, source = [puppet://puppet/yum/yum.conf.$hostname,

Re: [Puppet Users] Which package repository for puppet installation (rh/centos) ?

2011-12-01 Thread Michael Stahnke
On Wed, Nov 30, 2011 at 3:29 AM, Jan Ivar Beddari jan.ivar.bedd...@uib.no wrote: On 29. nov. 2011 19:28, Michael Stahnke wrote: That's no longer the case with apt.puppetlabs.com and yum.puppetlabs.com (or if it is, my team messed up). We've been following your work on this closely and are

Re: [Puppet Users] Puppet for Oracle Enterprise Linux

2011-12-01 Thread Douglas Garstang
Rayson, Thanks. Having all sorts of issues with that. Our server is running 2.6.2, which means that the client packages needs to have 2.6.2 or older, but when I try and install older versions of puppet, I get dependancy failures :( Doug. On Thu, Dec 1, 2011 at 4:37 PM, Rayson Ho

Re: [Puppet Users] Puppet for Oracle Enterprise Linux

2011-12-01 Thread Matthew Black
Can you provide the resource defined in the error message? On Thu, Dec 1, 2011 at 8:38 PM, Douglas Garstang doug.garst...@gmail.com wrote: Finally got the dependancies sorted out, and on the first run on the client, I am seeing: Dec  1 20:37:35 ip-10-123-21-192 puppet-agent[2562]: Failed to

Re: [Puppet Users] Puppet for Oracle Enterprise Linux

2011-12-01 Thread Douglas Garstang
Sure... package { 'forgerock-openam': ensure = '9.5.3-1', before = Class['tomcat::enable']; } Doug. On Thu, Dec 1, 2011 at 6:41 PM, Matthew Black mjbl...@gmail.com wrote: Can you provide the resource defined in the error message? On Thu, Dec 1, 2011

Re: [Puppet Users] Calling puppet from a script

2011-12-01 Thread Brian Gupta
On Thu, Dec 1, 2011 at 9:12 PM, Phil Frost ind...@bitglue.com wrote: On 11/30/2011 11:01 AM, Ted wrote: I'm trying to call puppet from a bash script and whilst it works, it causes my script to end prematurely. #!/bin/bash ... function runPuppetLocally() {     echo ...running Puppet