Re: [Puppet Users] Re: Is this possible with Hiera - Puppet Module Development and using Hiera

2012-06-22 Thread Ashley Penney
On Fri, Jun 22, 2012 at 7:02 PM, Peter wrote: > > > Thanks for taking the time to reply. > > Yes hiera provides support for module developers ... however I would argue > that it is limited for example, the hiera-puppet plugin is *hard-coded* to > only look for values in the module manifest directo

[Puppet Users] Re: Is this possible with Hiera - Puppet Module Development and using Hiera

2012-06-22 Thread Peter
Hi Joh, On Wednesday, 20 June 2012 03:18:46 UTC+10, jcbollinger wrote: > > > I confess that I don't follow what you are suggesting. Hiera already > supports module developers providing data, and module users overlaying > their own on top, in the order of their choice. What more would your > s

Re: [Puppet Users] Installing hiera

2012-06-22 Thread Denmat
Hi, Try opening irb and seeing if you can require hiera. $ irb require 'rubygems' require 'hiera' (should return true) Then at least you'll know if your gem is installed properly. Den On 23/06/2012, at 5:25, "llow...@oreillyauto.com" wrote: > My puppet master is behind a proxy and unable t

Re: [Puppet Users] Facter facts updated at start of puppet run only?

2012-06-22 Thread Denmat
On 22/06/2012, at 21:27, Felix Frank wrote: > Hi, > > On 06/21/2012 07:25 PM, Zach wrote: >> Hi all, >> >> I use a custom fact to determine and build custom reports on the version >> of certain packages on a system. If the package is updated, the fact is >> not updated during that run, false

Re: [Puppet Users] Using generate() to mine a shadow file hash

2012-06-22 Thread Christopher Wood
inline On Fri, Jun 22, 2012 at 02:42:54PM -0700, Rob B. wrote: >Hey all, >  >My objective is to set the root password on the puppet master and then >have root module mine the hash from the shadow file. It seems like it >should work, but I get the error "Parameter password faile

[Puppet Users] Using generate() to mine a shadow file hash

2012-06-22 Thread Rob B.
Hey all, My objective is to set the root password on the puppet master and then have root module mine the hash from the shadow file. It seems like it should work, but I get the error "Parameter password failed: Passwords cannot include ':' at". I am not sure where it is seeing the ":". Any i

Re: [Puppet Users] puppet windows exec successful but not really

2012-06-22 Thread Michael Baydoun
yes , that's a typo. Working now, thanks! Too bad it returns 0 all the time. On Fri, Jun 22, 2012 at 3:05 PM, Josh Cooper wrote: > Hi Michael, > > On Fri, Jun 22, 2012 at 11:00 AM, Josh Cooper wrote: > > > > Hi Michael > > > > On Fri, Jun 22, 2012 at 10:33 AM, Michael Baydoun < > indymicha...@

[Puppet Users] Installing hiera

2012-06-22 Thread llow...@oreillyauto.com
My puppet master is behind a proxy and unable to connect to a gem repo, so I used a different machine to fetch hiera and hiera-puppet gems, and the hiera-puppet source tarball. I then did a gem install on them, and I made sure that hiera was in the path, and extracted the hiera-puppet sources i

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2012-06-22 Thread Josh Cooper
Thanks Greg. Can you attach the manifest you are using (with the arguments) to the ticket? On Fri, Jun 22, 2012 at 12:20 PM, Greg Swift wrote: > attached to the ticket.  I won't be able to work on this for about a week > though.. other priority just came up.  But let me know and when I can get >

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2012-06-22 Thread Greg Swift
attached to the ticket. I won't be able to work on this for about a week though.. other priority just came up. But let me know and when I can get back on it I will. On Thursday, June 21, 2012 3:02:38 PM UTC-5, Greg Swift wrote: > > first thing in the morning. > > On Thursday, June 21, 2012 1:1

Re: [Puppet Users] puppet windows exec successful but not really

2012-06-22 Thread Josh Cooper
Hi Michael, On Fri, Jun 22, 2012 at 11:00 AM, Josh Cooper wrote: > > Hi Michael > > On Fri, Jun 22, 2012 at 10:33 AM, Michael Baydoun > wrote: >> >> My windows client is running Windows 2003 Server 32 bit >> >> >> On Wed, Jun 20, 2012 at 3:38 PM, Josh Cooper wrote: >>> >>> Hi Michael, >>> >>>

[Puppet Users] puppetized networking and nfs

2012-06-22 Thread Christopher Wood
Short version: How do you (the multitudes) handle puppetized networking with nfs volumes? Details: I'm tweaking work's puppetized networking for debian/ubuntu hosts. As part of this, I'd like better handling of networking changes when I have nfs mounts present on the server. Right now on all

[Puppet Users] Re: Question about best practices for custom facts in puppet

2012-06-22 Thread cdoughty
I actually found a solution indirectly by reading this thread: https://groups.google.com/forum/?fromgroups#!topic/puppet-users/Qoao9GMarRs I create a custom fact ONLY on the machine with DHCP by copying the ruby script directly to: /var/lib/puppet/lib/facter/ Then all nodes have a pre-stage wher

Re: [Puppet Users] Re: Calling custom functions from functions, parameter weirdness

2012-06-22 Thread ad
Josh, I appreciate the help. Using function_foo(['bar']) rather than function_foo('bar') works as expected. I'm sure this will also solve the same issue I was having calling a custom function from a Ruby DSL defined type. Cheers, Adam On Friday, June 22, 2012 12:01:24 PM UTC-5, Josh Cooper w

Re: [Puppet Users] Help with bind option for mount

2012-06-22 Thread cnjohnson
On Friday, June 22, 2012 11:20:45 AM UTC-5, Stefan Schulte wrote: > > So I guess what you really want is > > mount { '/chroot/centos5/home': > ensure => mounted, > device => '/gpfs20/home', > fstype => 'none', > options => 'rw,bind', > } > > As you can se

Re: [Puppet Users] Re: Calling custom functions from functions, parameter weirdness

2012-06-22 Thread Josh Cooper
On Fri, Jun 22, 2012 at 9:13 AM, ad wrote: > I just tested this on CentOS/Puppet 2.7.12 with the same result. > > - Adam > > > On Friday, June 22, 2012 10:20:52 AM UTC-5, ad wrote: >> >> This is on Windows running 2.7.16. I haven't tested on Linux or other >> versions. I'm still relatively new to

Re: [Puppet Users] add an rpm to a host

2012-06-22 Thread Christopher Wood
On Fri, Jun 22, 2012 at 08:50:59AM -0700, Christian DeKonink wrote: >Hi� >I am new to puppet. I have an existing puppet 2.6 config and I have about >400 hosts that I would like to install a package on. the specific package >is >foo_bar_1.0.rpm Save your sanity: set up a local y

Re: [Puppet Users] Help with bind option for mount

2012-06-22 Thread Stefan Schulte
On Fri, Jun 22, 2012 at 05:57:21AM -0700, cnjohnson wrote: > This is my first foray into using puppet for creating and maintaining bind > mounts (see man 8 mount). I am unsure of how to describe the state I want > puppet to achieve. This is for creating files systems in a chroot jail. I > am pri

[Puppet Users] Re: Calling custom functions from functions, parameter weirdness

2012-06-22 Thread ad
I just tested this on CentOS/Puppet 2.7.12 with the same result. - Adam On Friday, June 22, 2012 10:20:52 AM UTC-5, ad wrote: > > This is on Windows running 2.7.16. I haven't tested on Linux or other > versions. I'm still relatively new to Puppet and haven't used custom > functions before, so

[Puppet Users] Re: Question about best practices for custom facts in puppet

2012-06-22 Thread cdoughty
Hi John, thanks for your reply. That was helpful in confirming our findings so far. I also realize though that I wasn't very clear with my description in my ultimate goal. We only want to access this hypothetical property "dhcpd_server_rule=true" through facter, specifically by using mcollect

[Puppet Users] How to update environment stored in ENC database

2012-06-22 Thread linksrum
Hi! I have puppet 2.7.14 with dashboard and inventory stored in a mysql database. I cannot find a way to move a puppet node from one environment to another and the environment fact shown in dashboard inventory is not updated. I tried setting environment variable in puppet.conf for master and ag

[Puppet Users] add an rpm to a host

2012-06-22 Thread Christian DeKonink
Hi I am new to puppet. I have an existing puppet 2.6 config and I have about 400 hosts that I would like to install a package on. the specific package is foo_bar_1.0.rpm How would I deploy this to all hosts that talk to my puppetmaster? Thanks Chris -- You received this message because you ar

[Puppet Users] [JOB] Atlassian Internal IT - San Francisco USA

2012-06-22 Thread Paul De Audney
Hi All, Atlassian has a few open roles for system administrators in Sydney Australia and San Francisco USA. We're rebuilding all our internal infrastructure and throwing out our legacy cruft. Come help us design and implement the new infrastructure! We are looking for multiple candidates with th

[Puppet Users] Puppet inventory service problems - activerecord

2012-06-22 Thread williamstw
I can get the inventory service working with YAML, but as I enable it for mysql, it fails with an error: Could not autoload inventory_active_record: uninitialized constant ActiveRecord My googling revealed that most folks with this had a gem version problem and I carefully installed the gems that

[Puppet Users] Help with bind option for mount

2012-06-22 Thread cnjohnson
This is my first foray into using puppet for creating and maintaining bind mounts (see man 8 mount). I am unsure of how to describe the state I want puppet to achieve. This is for creating files systems in a chroot jail. I am primarily unsure of how to set the "options". Is it a string, and arra

[Puppet Users] Calling custom functions from functions, parameter weirdness

2012-06-22 Thread ad
This is on Windows running 2.7.16. I haven't tested on Linux or other versions. I'm still relatively new to Puppet and haven't used custom functions before, so wanted to run this by the list before filing a bug. When calling custom functions from functions, arguments are being converted to deci

Re: [Puppet Users] Cannot set up Puppet to use Apache/Passenger on a custom install

2012-06-22 Thread Jeff McCune
On Fri, Jun 22, 2012 at 8:02 AM, Kmbu wrote: > Hi All, > > I'm trying to set up the puppetmaster to go through Apache/Passenger. I > already have Apache/Passenger running and serving the dashboard. I followed > the instructions at: > > http://www.tomhayman.co.uk/linux/install-puppet-modpassenger-m

[Puppet Users] Cannot set up Puppet to use Apache/Passenger on a custom install

2012-06-22 Thread Kmbu
Hi All, I'm trying to set up the puppetmaster to go through Apache/Passenger. I already have Apache/Passenger running and serving the dashboard. I followed the instructions at: http://www.tomhayman.co.uk/linux/install-puppet-modpassenger-mysql-stored-procs-centos-6-rhel6/ http://projects.puppet

[Puppet Users] custom type definition failing (for me) in puppetlabs-keystone module

2012-06-22 Thread jon
HI all, I'm trying to demo the puppetlabs-openstack module following the the simple example, but not getting very far. the puppetlabs-keystone module is presenting a weird failure state claiming: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Reso

Re: [Puppet Users] Problem dealing with multi role servers/manifests. resource already declared.

2012-06-22 Thread trey85stang
On Thursday, June 21, 2012 5:19:32 PM UTC-5, Nick Fagerlund wrote: > > > > On Thursday, June 21, 2012 7:24:59 AM UTC-7, trey85stang wrote: >> >> Actually, one more question to spawn off this... Is there a way in my >> nagios/repo class to say if you have this class go ahead and assign >> you

Re: [Puppet Users] Custom facts and hyphens

2012-06-22 Thread Felix Frank
On 06/21/2012 08:55 PM, Jo Rhett wrote: >> $value = 1 >> $value-2 = 2 >> $sum = $value-2 +2 > > I don't see the problem. Those aren't ambiguous for a parser properly > configured. $sum = 4. ...if the parser distinguishes "$value-2" from "$value - 2". Semantic whitespaces? Really? As so often, th

Re: [Puppet Users] Re: Correct way to handle node-specific variable values in puppet 2.7

2012-06-22 Thread jcbollinger
On Thursday, June 21, 2012 5:44:46 PM UTC-5, Nick Fagerlund wrote: > > > inevitably, everyone always wants to try this: [...] > I don't! :-) That's what I suspected you were getting at, so thanks for clarifying. That node inheritance works like class inheritance has never bothered me in the

[Puppet Users] Re: Question about best practices for custom facts in puppet

2012-06-22 Thread jcbollinger
On Thursday, June 21, 2012 5:34:00 PM UTC-5, cdoughty wrote: > > We're running puppet 2.7.11 and facter 1.6.1. We're at a point where we > need to start having some custom facts for our environment but we're not > sure the best way to go around it, so I'm looking for feedback from the > commu

Re: [Puppet Users] Facter facts updated at start of puppet run only?

2012-06-22 Thread Felix Frank
Hi, On 06/21/2012 07:25 PM, Zach wrote: > Hi all, > > I use a custom fact to determine and build custom reports on the version > of certain packages on a system. If the package is updated, the fact is > not updated during that run, falsely reporting the previous version > until the next puppet r

[Puppet Users] Question about best practices for custom facts in puppet

2012-06-22 Thread cdoughty
We're running puppet 2.7.11 and facter 1.6.1. We're at a point where we need to start having some custom facts for our environment but we're not sure the best way to go around it, so I'm looking for feedback from the community. I've setup custom facts with facter now and have successfully poll

[Puppet Users] Problems linking Puppetmaster and Dashboard as ENC

2012-06-22 Thread Judge
Hi @ all! I just started to use the Dashboard after the Puppetmaster is running for a few months already. Now I'm trying to connect the Puppetmaster to the Dashboard as an ENC , but I do not succeed. I'd be very glad if some of the "pro's" arround here could help me, please! I have the followi

Re: [Puppet Users] Re: Reducing system load

2012-06-22 Thread Felix Frank
On 06/21/2012 06:07 PM, R.I.Pienaar wrote: >> 1. Puppet client runs are like bugs and a light, they will tend >> > to cluster together. If some client runs are slow, other clients >> > wait, over time, they all end up trying to run at the same time. >> > This was easily observed on

[Puppet Users] Re: Could not run Puppet configuration client: execution expired

2012-06-22 Thread Kmbu
On Thursday, 21 June 2012 23:25:29 UTC+2, jcbollinger wrote: > > > > On Thursday, June 21, 2012 10:46:51 AM UTC-5, Kmbu wrote: >> >> >> I've set up Apache/Passenger but I use it for Dashboard, not the >> puppetmaster itself :-) Let me see if I can push my luck. Is there a quick >> guide to movi

Re: [Puppet Users] Re: Could not run Puppet configuration client: execution expired

2012-06-22 Thread Felix Frank
On 06/21/2012 04:40 PM, Jake - USPS wrote: > > This works for us although like I said I want to make it better, doing > what you assumed I am doing ... shared storage. But since we can only > make changes with a CHG ticket I basically make the update and then > force a puppet run on my PMs (remot

Re: [Puppet Users] Re: Reducing system load

2012-06-22 Thread Jeff McCune
On Thu, Jun 21, 2012 at 5:28 PM, Len Rugen wrote: > > Re: is this really still happening? I thought that got fixed ages ago > > I can't say, we would mask the symptoms now.  Don't take the comment as a bug > report :-) This is actually a pretty simple patch.  What would you like the timestamp to