Re: [Puppet Users] Re: Foreman failing for db::migrate for puppet 3.0 with the following error :rake aborted! uninitialized constant HostObserver

2012-10-19 Thread Ohad Levy
On Thu, Oct 18, 2012 at 8:30 PM, Nishant Jain wrote: > I am using the following version of Ruby :ruby 1.8.7 (2011-06-30 > patchlevel 352) [x86_64-linux] > > > On Thursday, October 18, 2012 2:20:24 PM UTC-4, Nishant Jain wrote: >> >> Hello Everybody, >> I am trying to conf

[Puppet Users] Re: Setting up Java on Windows

2012-10-19 Thread Paul Tötterman
Hi, > Still struggling to set the Global PATH variable in a nice way. I set the path using PowerShell (a script which is deployed and executed by puppet), but I imagine you could do something similar with ruby and the win32 api: Function Set-Path { Param([Parameter(Mandatory=$true)][st

[Puppet Users] facter: AIX netmask / network

2012-10-19 Thread Jarno Huuskonen
Hello, facter (1.6.13) doesn't seem to get AIX netmask correctly (example. ifconfig -a output: en0: flags=1e080863,c0 inet 193.167.224.XXX netmask 0xff00 broadcast 193.167.224.255 tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0 lo0: flags=e08084b,c0 inet 127.0.0.

[Puppet Users] Re: How catch a notify inside a define

2012-10-19 Thread jcbollinger
On Thursday, October 18, 2012 6:08:23 PM UTC-5, Caio Cezar Zapater de Souza wrote: > > Hi, > > I have created a define with packages services and a mount inside, but > when I notify the define all of them receive the notify but I want only > refresh the mount. > It is possible? > No. Instea

[Puppet Users] Node specific exported resources

2012-10-19 Thread Alex C
Greetings, I'm trying to wrap my head around a solution to a problem I'm facing with an exported resources configuration I have. I'm using the following simple config to build a munin configuration: @@file { "/etc/munin/munin.conf.d/${::fqdn}.node": content => "[All Hosts;${::fqdn}] addres

[Puppet Users] Re: Puppet 3.0: Not authorized to call find on /file_metadata, more issues?

2012-10-19 Thread Alex C
I ran into a similar issue when upgrading to 3.0. Make sure your specify 'modules' when loading puppet:// resources that are includes in modules: source => "puppet:///modules/etc/ntp.conf", On Monday, October 1, 2012 8:48:25 PM UTC-4, Forrie wrote: > > I've seen mention of this error in severa

[Puppet Users] Re: How catch a notify inside a define

2012-10-19 Thread jcbollinger
On Friday, October 19, 2012 9:01:01 AM UTC-5, jcbollinger wrote: Oops, I sent my response a bit prematurely. Strike the two appearances of > notify => Mount["${path}"]; > > from my suggested solution; they are replaced by subscriptions in the opposite direction. John -- You recei

Re: [Puppet Users] Re: Foreman failing for db::migrate for puppet 3.0 with the following error :rake aborted! uninitialized constant HostObserver

2012-10-19 Thread Nishant Jain
Thanks Ohad, Got it working by applying the patch u suggested. But again it was having error finding the value of $vardir and so have to specify it explicitly in /etc/puppet/puppet.conf and it got working. On Friday, October 19, 2012 4:11:27 AM UTC-4, ohad wrote: > > > > On

Re: [Puppet Users] Re: Unable to create the rrd graph

2012-10-19 Thread Nishant Jain
Can anybody suggest something to get the rrdgraph created ? On Wednesday, October 17, 2012 10:29:10 PM UTC-4, Nishant Jain wrote: > > > Hello David, > > > Which version of puppet? > Ans. 3.0.0 > What OS? > Ans.CentOS release 6.3 (Final) > What version of ruby? > Ans.ruby 1.8.7 (2011-06-30 p

[Puppet Users] Failed to set group to '0': Operation not permitted

2012-10-19 Thread Dominic
Hi everyone, Here is the task, I just need to get the file from master, untar it and execute a file. Step 1: Working as a root user,having the default puppet.conf for root and the agent could get the source file from master , untar it and execute it. Step 2: Moving to non-root user, I hav

[Puppet Users] Re: puppet hanging unexpectedly

2012-10-19 Thread Riga
Hi, I'm having a problem with puppetmaster, it works fine for hours, and suddenly it hangs or stops without explanation. I have some CentOS and Ubuntu machines, so the puppet version I'm using is 2.6 on CentOS and 2.7 on Ubuntu. Could it be the problem? The log only shows the compilation of ca

[Puppet Users] Puppet spuriously removing classes from classes.txt

2012-10-19 Thread Matt Carroll
I've been asked to look at a problem on an overseas rig whereby certain bits of config were going awry. This was down to the fact that they were querying the mcollective registration database and feeding back in to the configs, using queries based on class data. The mcollective + mongodb setup

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-10-19 Thread Gavin Williams
Ok, I've found what was causing the provider to fail... Changed as follows: diff --git a/lib/puppet/provider/domain/asadmin.rb b/lib/puppet/provider/domain/asadmin.rb index 940c051..384f6ab 100644 --- a/lib/puppet/provider/domain/asadmin.rb +++ b/lib/puppet/provider/domain/asadmin.rb @@ -2,7 +2

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-10-19 Thread Josh Cooper
Hi Gavin, On Fri, Oct 19, 2012 at 9:35 AM, Gavin Williams wrote: > Ok, I've found what was causing the provider to fail... > > Changed as follows: > > diff --git a/lib/puppet/provider/domain/asadmin.rb > b/lib/puppet/provider/domain/asadmin.rb > index 940c051..384f6ab 100644 > --- a/lib/puppet/pr

Re: [Puppet Users] Puppet spuriously removing classes from classes.txt

2012-10-19 Thread Josh Cooper
Hi Matt, On Fri, Oct 19, 2012 at 8:55 AM, Matt Carroll wrote: > I've been asked to look at a problem on an overseas rig whereby certain bits > of config were going awry. This was down to the fact that they were querying > the mcollective registration database and feeding back in to the configs, >

Re: [Puppet Users] pocco - a puppet manifest documentation experiment

2012-10-19 Thread Ryan Coleman
On Thu, Oct 18, 2012 at 10:06 PM, Nan Liu wrote: > Hi! > > The existing puppet manifests documentation generated via rdoc isn't > very dry. I quite like docco generated documentation so I borrowed > from rocco to create a puppet manifests documentation tool called > pocco. > Awesome Nan! What's

Re: [Puppet Users] pocco - a puppet manifest documentation experiment

2012-10-19 Thread llowder
Comments in line On Friday, October 19, 2012 12:11:59 PM UTC-5, Ryan Coleman wrote: > > > > On Thu, Oct 18, 2012 at 10:06 PM, Nan Liu > > wrote: > >> Hi! >> >> The existing puppet manifests documentation generated via rdoc isn't >> very dry. I quite like docco generated documentation so I borrowe

[Puppet Users] Puppet 3.0 Testing Hiera

2012-10-19 Thread Worker Bee
Hi Everyone; I have not been using hiera with puppet in the past. I am looking for a quick way to test post-install functionality before I deploy to users... can anyone give me any quick tips? thanks! Bee -- You received this message because you are subscribed to the Google Groups "Puppet Us

Re: [Puppet Users] pocco - a puppet manifest documentation experiment

2012-10-19 Thread Nan Liu
On Fri, Oct 19, 2012 at 10:11 AM, Ryan Coleman wrote: > Awesome Nan! What's the usage for this? Is one to run rocco against a > manifest? Run pocco against a modules directory: pocco /etc/puppet/modules/ I'm guessing this is making a bit much in assumptions. Might need to enable runs against a

Re: [Puppet Users] pocco - a puppet manifest documentation experiment

2012-10-19 Thread Joe Topjian
Hi Nan, Like everyone else, I think this is great. > Run pocco against a modules directory: > > pocco /etc/puppet/modules/ > Just a quick comment: Isn't pocco the name of the Python *occo? ( http://fitzgen.github.com/pocco/) should the name be changed to differentiate? Joe -- Joe Topjian Sy

Re: [Puppet Users] pocco - a puppet manifest documentation experiment

2012-10-19 Thread Nan Liu
On Fri, Oct 19, 2012 at 11:09 AM, Joe Topjian wrote: > Hi Nan, > > Like everyone else, I think this is great. > >> >> Run pocco against a modules directory: >> >> pocco /etc/puppet/modules/ > > > Just a quick comment: Isn't pocco the name of the Python *occo? > (http://fitzgen.github.com/pocco/) s

Re: [Puppet Users] pocco - a puppet manifest documentation experiment

2012-10-19 Thread Pieter van de Bruggen
On Fri, Oct 19, 2012 at 11:09 AM, Joe Topjian wrote: > Hi Nan, > > Like everyone else, I think this is great. > > >> Run pocco against a modules directory: >> >> pocco /etc/puppet/modules/ >> > > Just a quick comment: Isn't pocco the name of the Python *occo? ( > http://fitzgen.github.com/pocco/)

[Puppet Users] Re: Puppet 3.0: Not authorized to call find on /file_metadata, more issues?

2012-10-19 Thread Forrie
Still no go. I have a bunch of simple class files stored in /etc/puppet/manifests/classes -- not sure how that got designed, but I followed a book or two. It's been working so far, until 3.0. Here is the error when I prepend "modules" to the statement: Oct 19 14:41:47 stage1 puppet-agent[21

[Puppet Users] Re: Puppet 3.0: Not authorized to call find on /file_metadata, more issues?

2012-10-19 Thread Forrie
To make matters worse, I'm referring to the documentation on puppetlabs.com that seems outdated for this newer release. So I try all of these combinations and they do not work in fileserver.conf: allow * allow *.subdomain.company.com allow xx

[Puppet Users] Using Hiera with Parameters set for the Puppet Node

2012-10-19 Thread Thomas Biddle
Is it possible to have Hiera look at a key set for the node first, before looking at other items in the hierarchy? In particular - I'm using Puppet Dashboard and am setting keys & params for there, so I would like for any value set there for a node to be used over another item in the hiera hier

[Puppet Users] Re: Using Hiera with Parameters set for the Puppet Node

2012-10-19 Thread Thomas Biddle
Puppet OS 2.7.19 if that is necessary as well. On Friday, October 19, 2012 1:18:59 PM UTC-7, Thomas Biddle wrote: > > Is it possible to have Hiera look at a key set for the node first, before > looking at other items in the hierarchy? > > In particular - I'm using Puppet Dashboard and am setting

[Puppet Users] Re: Using Hiera with Parameters set for the Puppet Node

2012-10-19 Thread llowder
On Friday, October 19, 2012 3:18:59 PM UTC-5, Thomas Biddle wrote: > > Is it possible to have Hiera look at a key set for the node first, before > looking at other items in the hierarchy? > > In particular - I'm using Puppet Dashboard and am setting keys & params > for there, so I would like fo

Re: [Puppet Users] Node specific exported resources

2012-10-19 Thread Peter Brown
Hi Alex, concat will help you build a file from pieces. http://forge.puppetlabs.com/ripienaar/concat I would use a template to build each stanza of config and use concat to build that into a file. I am not in front of my puppet config from work right now so I can't send you a decent example but w