Re: [Puppet Users] Installing puppet-dashboard on ubuntu precise

2012-08-15 Thread Sam Morrison
Thanks Ashish, I was hoping to not have to install any "gems", it comes as a debian package so I was expecting that it would work with the packages available. Precise comes with rack 1.3.5 so wondering if I can get it to work with that somehow. How comes it says rdoc though? Is there any way to

Re: [Puppet Users] Re: merging iptables rules with puppet

2012-08-15 Thread Peter Brown
Hi, I manage my iptables setup with the concat module and nail together a rules file and then reload it if it's changed I also have a define setup so other classes can define rules and my firewall class pulls them all in. works well for me because when i remove a class the firewall rull associated

Re: [Puppet Users] Custom Facts accessible via Facter

2012-08-15 Thread Douglas Garstang
On Wed, Aug 15, 2012 at 10:46 PM, Florian Koch wrote: > Try > > Facter - p > > Regards Thanks. Didn't know about that. Now, back to scraping my eyeballs with a blunt rusty razor blade, err looking at ruby code. Doug. -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] Custom Facts accessible via Facter

2012-08-15 Thread Florian Koch
Try Facter - p Regards Am 16.08.2012 um 07:43 schrieb Douglas Garstang : > I don't get it. I just wrote a simple test custom fact in ruby (ugh, I > hate ruby) and was able to access it as a variable on the client side. > However, it doesn't appear in the facter output. Is is supposed to? >

[Puppet Users] Custom Facts accessible via Facter

2012-08-15 Thread Douglas Garstang
I don't get it. I just wrote a simple test custom fact in ruby (ugh, I hate ruby) and was able to access it as a variable on the client side. However, it doesn't appear in the facter output. Is is supposed to? Doug -- You received this message because you are subscribed to the Google Groups "Pu

Re: [Puppet Users] Array Length

2012-08-15 Thread Ryan Coleman
On Wednesday, August 15, 2012, Douglas Garstang wrote: > On Wed, Aug 15, 2012 at 5:03 PM, Calvin Walton > > > wrote: > > On Wed, 2012-08-15 at 14:59 -0700, Douglas Garstang wrote: > >> On Wed, Aug 15, 2012 at 2:58 PM, Douglas Garstang > >> Oops.Typo in paste.I actually used > >> > >> $foo = inlin

Re: [Puppet Users] Array Length

2012-08-15 Thread Douglas Garstang
On Wed, Aug 15, 2012 at 5:03 PM, Calvin Walton wrote: > On Wed, 2012-08-15 at 14:59 -0700, Douglas Garstang wrote: >> On Wed, Aug 15, 2012 at 2:58 PM, Douglas Garstang >> Oops.Typo in paste.I actually used >> >> $foo = inline_template("<%= [$pvdisks] %>.length") > > You seem to be misunderstanding

[Puppet Users] Re: newish puppet on RHEL4 and/or SLES9?

2012-08-15 Thread Jemmorey
Jason, I was able to compile puppet via the spec file included in the source up to version 2.7.5 on RHEL4 (32 and 64-bit). I can't remember the issues I had with 2.7.6-9 right now, but it had to do with the ancient ruby (1.8.1). I did grab the requisite dependencies (augeas-libs, ruby-augeas

[Puppet Users] Re: newish puppet on RHEL4 and/or SLES9?

2012-08-15 Thread Jemmorey
Mark, I was able to compile puppet via the spec file included in the source up to version 2.7.5 on RHEL4 (32 and 64-bit). I can't remember the issues I had with 2.7.6-9 right now, but it had to do with the ancient ruby (1.8.1). I did grab the requisite dependencies (augeas-libs, ruby-augeas,

Re: [Puppet Users] Puppet hanging when listen turned on

2012-08-15 Thread James A. Peltier
I guess there's no answer on this one? - Original Message - | Hi All, | | Recently Puppet (2.7.18 / RHEL 6.3) has started to hang when the | listen parameter is turned on. I've tried rolling back several | versions of Puppet as well as rolling back Ruby so as to try and | figure out if i

[Puppet Users] parameterized classes broken in 3.0.0rc2?

2012-08-15 Thread Jason Wright
I was testing parameterized classes using an external node classifier running on a 3.0.0rc2 master and found that catalog compilation fails if I have a parameterized class that uses defaults if I declare an instance of the class that does not specify values for all parameters. I was able to reprodu

Re: [Puppet Users] Array Length

2012-08-15 Thread Calvin Walton
On Wed, 2012-08-15 at 14:59 -0700, Douglas Garstang wrote: > On Wed, Aug 15, 2012 at 2:58 PM, Douglas Garstang > Oops.Typo in paste.I actually used > > $foo = inline_template("<%= [$pvdisks] %>.length") You seem to be misunderstanding how erb templates work; I strongly recommend that you go and r

Re: [Puppet Users] newish puppet on RHEL4 and/or SLES9?

2012-08-15 Thread John Warburton
On 16 August 2012 00:41, Jason Antman wrote: > by the same system. That list is about 95% RHEL/Cent 5 or 6, but there's a > few RHEL4 and SLES9 machines on the "must have" list. As upgrades are very > unlikely, I'd like to be on the newest version possible - ideally, 2.7.12+ > on the master so I

Re: [Puppet Users] Array Length

2012-08-15 Thread Tom De Vylder
On 16 Aug 2012, at 00:07, Douglas Garstang wrote: > On Wed, Aug 15, 2012 at 3:05 PM, Tom De Vylder wrote: >> >> On 15 Aug 2012, at 23:58, Douglas Garstang wrote: >> >>> On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote: On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang wrote: >>>

Re: [Puppet Users] Array Length

2012-08-15 Thread Douglas Garstang
On Wed, Aug 15, 2012 at 3:05 PM, Tom De Vylder wrote: > > On 15 Aug 2012, at 23:58, Douglas Garstang wrote: > >> On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote: >>> On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang >>> wrote: How do I get get length of an array in puppet DSL? >>> >>> H

Re: [Puppet Users] Array Length

2012-08-15 Thread Tom De Vylder
On 15 Aug 2012, at 23:58, Douglas Garstang wrote: > On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote: >> On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang >> wrote: >>> How do I get get length of an array in puppet DSL? >> >> Hi Doug, >> >> You can install the puppetlabs-stdlib module from

Re: [Puppet Users] Array Length

2012-08-15 Thread Douglas Garstang
On Wed, Aug 15, 2012 at 2:58 PM, Douglas Garstang wrote: > On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote: >> On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang >> wrote: >>> How do I get get length of an array in puppet DSL? >> >> Hi Doug, >> >> You can install the puppetlabs-stdlib module

Re: [Puppet Users] Array Length

2012-08-15 Thread Douglas Garstang
On Wed, Aug 15, 2012 at 2:55 PM, Ryan Coleman wrote: > On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang > wrote: >> How do I get get length of an array in puppet DSL? > > Hi Doug, > > You can install the puppetlabs-stdlib module from the Forge and use > the size function. > Ryan, No thanks. I'

Re: [Puppet Users] Array Length

2012-08-15 Thread Ryan Coleman
On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang wrote: > How do I get get length of an array in puppet DSL? Hi Doug, You can install the puppetlabs-stdlib module from the Forge and use the size function. Forge page: http://forge.puppetlabs.com/puppetlabs/stdlib The raw function code: https://

[Puppet Users] Array Length

2012-08-15 Thread Douglas Garstang
How do I get get length of an array in puppet DSL? Doug -- 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+unsubscr...@

Re: [Puppet Users] Re: merging iptables rules with puppet

2012-08-15 Thread Geoff Galitz
We are executing iptables , not editing the backend files, though we could do that if that were the only option. -G On Wed, Aug 15, 2012 at 4:54 PM, Luke Baker wrote: > By dynamically loading rules do you mean executing iptables or are > you editing your iptables-save file and then reloading?

[Puppet Users] Re: merging iptables rules with puppet

2012-08-15 Thread Luke Baker
By dynamically loading rules do you mean executing iptables or are you editing your iptables-save file and then reloading? On Wednesday, August 15, 2012 1:48:44 PM UTC-5, Geoff Galitz wrote: > > > I'm still a bit noobish with puppet... > > In short what I want to do is merge puppet managed iptab

Re: [Puppet Users] merging iptables rules with puppet

2012-08-15 Thread Matt Zagrabelny
Perhaps put them in a chain of their own? I am not sure if puppet with delete chains. -mz On Wed, Aug 15, 2012 at 1:48 PM, Geoff Galitz wrote: > > I'm still a bit noobish with puppet... > > In short what I want to do is merge puppet managed iptables with dynamically > added rules added by some

Re: [Puppet Users] Puppetlabs lvm module

2012-08-15 Thread Ramin K
On 8/15/2012 11:58 AM, Douglas Garstang wrote: Seriously can you run it through a syntax checker before posting it? Doug. You push code into production without running it through a syntax checker? Seriously? pot meet kettle. Ramin -- You received this message because you are subscri

Re: [Puppet Users] Puppetlabs lvm module

2012-08-15 Thread Eric Shamow
On Wednesday, August 15, 2012 at 2:58 PM, Douglas Garstang wrote: > Seriously can you run it through a syntax checker before posting it? Douglas, Ryan has worked to support you and has posted a fix for the problem. He's also acknowledged our error and apologized. Is there something specif

Re: [Puppet Users] Puppetlabs lvm module

2012-08-15 Thread Douglas Garstang
On Tue, Aug 14, 2012 at 2:34 PM, Ryan Coleman wrote: > On Tue, Aug 14, 2012 at 2:30 PM, Douglas Garstang > wrote: >> Yep. That was the culprit. Maybe you guys wanna run this through a >> 'puppet parser validate' before posting them to the forge...? > > Obviously, our intention is not to release b

[Puppet Users] merging iptables rules with puppet

2012-08-15 Thread Geoff Galitz
I'm still a bit noobish with puppet... In short what I want to do is merge puppet managed iptables with dynamically added rules added by some scripts. We have a basic config setup with a template (iptables.erb) and we can add rules to that in manifests. But of course puppet will wipe any changes

[Puppet Users] Re: Custom types in environments working .... yes/no/maybe ?

2012-08-15 Thread Douglas Garstang
What a horrible clusterf*ck mess. http://www.mailinglistarchive.com/html/puppet-users@googlegroups.com/2010-03/msg00801.html Doug. On Wed, Aug 15, 2012 at 10:41 AM, Douglas Garstang wrote: > On Wed, Aug 15, 2012 at 10:06 AM, Douglas Garstang > wrote: >> My issue may be related to this bug: >>

Re: [Puppet Users] Re: How to subscribe to an exported resource?

2012-08-15 Thread Marc Haber
On Wed, Aug 15, 2012 at 06:43:18AM -0700, jcbollinger wrote: > On Tuesday, August 14, 2012 6:27:36 AM UTC-5, Marc Haber wrote: > > I would, however, prefer to have the exec subscribed to the File > > instead of notifying the exec from the File. > > Why? Personal style, fits better into the rest

Re: [Puppet Users] How to subscribe to an exported resource?

2012-08-15 Thread Marc Haber
On Tue, Aug 14, 2012 at 07:58:21PM +0100, Stephen Gran wrote: > The classic is: > https://github.com/ripienaar/puppet-concat So that is a module that would need to be compiled and installed (on the puppetmaster, run by a different department)? Greetings Marc -- -

Re: [Puppet Users] Ruby program example to post to The Foreman

2012-08-15 Thread Ohad Levy
On Wed, Aug 15, 2012 at 4:11 PM, wernerbahlke wrote: > Hi, > > I want to use The Foreman to pass variables between nodes. Does somebody > have an example of a Ruby parser which does POSTs to The Foreman and can be > used in my manifests?. With the exception of a Perl example I have only > seen exa

[Puppet Users] Re: Custom types in environments working .... yes/no/maybe ?

2012-08-15 Thread Douglas Garstang
On Wed, Aug 15, 2012 at 10:06 AM, Douglas Garstang wrote: > My issue may be related to this bug: > > http://projects.puppetlabs.com/issues/13858 > > "Custom types in environments require loading into master's libdir" > > However, now I'm not so sure, This was working previously with a given > clie

Re: [Puppet Users] Calling custom Puppet function from within a provider

2012-08-15 Thread Nan Liu
On Tue, Aug 14, 2012 at 6:00 PM, Mitchell Hashimoto wrote: > I have a custom Puppet function. Am I able to call that function from within > my custom provider (written in Ruby)? I think you can do this: Puppet::Parser::Functions.autoloader.loadall After this, you can invoke any function via se

[Puppet Users] Custom types in environments working .... yes/no/maybe ?

2012-08-15 Thread Douglas Garstang
My issue may be related to this bug: http://projects.puppetlabs.com/issues/13858 "Custom types in environments require loading into master's libdir" However, now I'm not so sure, This was working previously with a given client. However, after trying on a fresh client, it's failing with: err: C

Re: [Puppet Users] Automatic cleanup of client certificate ?

2012-08-15 Thread Stephen Jahl
On Wed, Aug 15, 2012 at 8:53 AM, jerome wrote: >Can the agent tell the master to clean the key for its hostname ? This is possible, if you are comfortable with opening up access to the puppet REST API on the master. In auth.conf, you can change the options for the /certificiate_request path, to a

Re: [Puppet Users] Re: Class Execution order

2012-08-15 Thread Douglas Garstang
On Wed, Aug 15, 2012 at 7:38 AM, jcbollinger wrote: > > > On Tuesday, August 14, 2012 11:37:26 AM UTC-5, Douglas wrote: >> >> >> Not really. I have three run stages that have been working fine. It >> was when I tried to add >> >> Apt::Source <| |> -> Exec["apt-update"] >> Exec['apt-update'] -> Pac

Re: [Puppet Users] facter: setting up module-specific custom facts?

2012-08-15 Thread Nan Liu
On Wed, Aug 15, 2012 at 2:28 AM, André Fernandes wrote: > I am customizing an existing puppet installation (with facter) and I think I > ran into an issue understanding the scope of custom facts. > > I have several modules that are mapped exclusively to different classes of > hosts within a nodes.

[Puppet Users] Trying install module behind proxy squid. Any progress on bug reported 15453 ?.

2012-08-15 Thread eduardo
Hi all, I'm behind a proxy squid server with authentication. I have set environment variables http_proxy and https_proxy, something like http://user:passwd@ip_proxy:3128. I upgraded to 2.7.18 puppet version recently. Then i'd getting in error when trying to install stdlib module : puppet modu

Re: [Puppet Users] Automatic cleanup of client certificate ?

2012-08-15 Thread Nan Liu
On Wed, Aug 15, 2012 at 5:53 AM, jerome wrote: > Hello, > > I'm new to Puppet and evaluating it against Cfengine and Chef for the > management of multiple thousands of Ubuntu desktops. > The desktops can be reinstalled at any time by technical site operators and > they may or may not change the

Re: [Puppet Users] Automatic cleanup of client certificate ?

2012-08-15 Thread Jonathan Proulx
There is a config option I just started looking at: allow_duplicate_certs Whether to allow a new certificate request to overwrite an existing certificate. but it seems from http://comments.gmane.org/gmane.comp.sysutils.puppet.bugs/21676 that this only works when manually creati

RE: [Puppet Users] newish puppet on RHEL4 and/or SLES9?

2012-08-15 Thread Mark Christian
I'm not running newish puppet on rhel/cent 4, but the 0.25.6 EPEL packages seem to work well enough with my puppet master that runs 2.7.18. -Original Message- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Jason Antman Sent: Wednesday, August 15,

Re: [Puppet Users] Re: Error 400 on SERVER: Could not parse for environment production: Syntax error at '{'; expected '}'

2012-08-15 Thread jcbollinger
On Wednesday, August 15, 2012 9:42:56 AM UTC-5, Jeff McCune wrote: > > > This is definitely a bug. =( John, do you know if it got filed as a > ticket? > > I was thinking of this ticket: http://projects.puppetlabs.com/issues/14301. On it's face, it's not exactly the same thing, but it's defi

Re: [Puppet Users] Best practice for Node Def files

2012-08-15 Thread Jeff McCune
On Wed, Aug 15, 2012 at 8:00 AM, jcbollinger wrote: > > > On Tuesday, August 14, 2012 4:14:47 PM UTC-5, Jeff McCune wrote: > >> On Mon, Aug 13, 2012 at 12:36 PM, llowder wrote: >> >>> If using the nodes/*.pp and having your site.pp be "import 'nodes/*'", >>> >> >> You should avoid using the impor

[Puppet Users] Re: update yumrepo followed by packages updates.

2012-08-15 Thread jcbollinger
On Tuesday, August 14, 2012 9:07:39 AM UTC-5, trey85stang wrote: > > Well no go with metadata_expire or a yum clean all after updating the > repo. This appears to be a bug of some sort. Debugging output shows > before any packages checked this output: > > debug: Prefetching yum resources for

[Puppet Users] rspec-puppet and exported resources

2012-08-15 Thread Loic Dachary
Hi, Is there a way to test for exported resources using rspec-puppet ? I found a post explaining how it could be done with cucumber ( http://blog.nistu.de/2011/09/04/testing-exported-resources-with-cucumber-puppet ) but could not find examples or documentation for rspec-puppet. Cheers -- Yo

[Puppet Users] Automatic cleanup of client certificate ?

2012-08-15 Thread jerome
Hello, I'm new to Puppet and evaluating it against Cfengine and Chef for the management of multiple thousands of Ubuntu desktops. The desktops can be reinstalled at any time by technical site operators and they may or may not change the computer name. This happens fairly often and if the name st

[Puppet Users] Facter scripts and shell environment variables

2012-08-15 Thread André Fernandes
I'm currently running a puppet master-client setup and using facter to gather information on the client hosts. However, I've run into a problem when trying to get the deployed apache version for some of the hosts. My custom fact script is as follows: Facter.add("apache_version") do setcode do

[Puppet Users] facter: setting up module-specific custom facts?

2012-08-15 Thread André Fernandes
I am customizing an existing puppet installation (with facter) and I think I ran into an issue understanding the scope of custom facts. I have several modules that are mapped exclusively to different classes of hosts within a nodes.pp file. What I'd like to achieve would be to have custom fac

Re: [Puppet Users] variable scoping?

2012-08-15 Thread Zachary Stern
My point was that I don't use and won't be using multiple puppet masters. Also, at my current level of puppet knowledge, Nan's code is basically meaningless to me :( On Wed, Aug 15, 2012 at 9:51 AM, jcbollinger wrote: > To use multiple Puppet masters for the same site and retain your sanity, > i

Re: [Puppet Users] Best practice for Node Def files

2012-08-15 Thread jcbollinger
On Tuesday, August 14, 2012 4:14:47 PM UTC-5, Jeff McCune wrote: > > On Mon, Aug 13, 2012 at 12:36 PM, llowder > > wrote: > >> If using the nodes/*.pp and having your site.pp be "import 'nodes/*'", >> > > You should avoid using the import statement (see > http://projects.puppetlabs.com/issues/1

Re: [Puppet Users] Re: Error 400 on SERVER: Could not parse for environment production: Syntax error at '{'; expected '}'

2012-08-15 Thread Jeff McCune
On Wed, Aug 15, 2012 at 7:02 AM, jcbollinger wrote: > > > On Tuesday, August 14, 2012 9:49:53 AM UTC-5, Jen Patrick wrote: >> >> It's barfing on this: >> Error 400 on SERVER: Could not parse for environment production: Syntax >> error at '{'; expected '}' >> >> Here's the node.pp >> >> node "ccc.

[Puppet Users] newish puppet on RHEL4 and/or SLES9?

2012-08-15 Thread Jason Antman
I'm in the process of building out a new puppet master and pulling our existing/legacy infrastructure into Puppet control for the basic system-level stuff (mail, syslog, sudo, ssh, etc.). Unfortunately, the directive from on high is that all of our hosts need to be managed by the same system. T

Re: [Puppet Users] Re: Class Execution order

2012-08-15 Thread jcbollinger
On Tuesday, August 14, 2012 11:37:26 AM UTC-5, Douglas wrote: > > > Not really. I have three run stages that have been working fine. It > was when I tried to add > > Apt::Source <| |> -> Exec["apt-update"] > Exec['apt-update'] -> Package <| |> > > to site.pp to globally enforce apt source ins

[Puppet Users] Re: Error 400 on SERVER: Could not parse for environment production: Syntax error at '{'; expected '}'

2012-08-15 Thread jcbollinger
On Tuesday, August 14, 2012 9:49:53 AM UTC-5, Jen Patrick wrote: > > It's barfing on this: > Error 400 on SERVER: Could not parse for environment production: Syntax > error at '{'; expected '}' > > Here's the node.pp > > node "ccc.unix.ccc.ccc.edu" { > class { > "web_server": > net

Re: [Puppet Users] variable scoping?

2012-08-15 Thread jcbollinger
On Tuesday, August 14, 2012 1:12:12 PM UTC-5, Zachary Alex Stern wrote: > > That's a fair point, but not applicable to my use-case (multiple puppet > servers). > > However, at some point in the near future, I'll be using hiera, and that > will be moot. > To use multiple Puppet masters for the

[Puppet Users] Re: How to subscribe to an exported resource?

2012-08-15 Thread jcbollinger
On Tuesday, August 14, 2012 6:27:36 AM UTC-5, Marc Haber wrote: > > Hi, > > I am trying to build (on node A) an authorized_keys file that contains > all host keys from all nodes that have class C imported. Here is my > code: > > class C { > @@file { "/var/lib/foo/authorized_keys/$fqd

[Puppet Users] Re: Configuring hosts with data from other hosts

2012-08-15 Thread jcbollinger
On Wednesday, August 15, 2012 8:31:52 AM UTC-5, jcbollinger wrote: > > The original and main idea of exported resources is for the node that > knows what a resource is actually supposed to look like to declare the node > on behalf of the nodes that need it > > I meant "declare the *resource* on

[Puppet Users] Re: Configuring hosts with data from other hosts

2012-08-15 Thread jcbollinger
On Tuesday, August 14, 2012 2:27:05 PM UTC-5, Sam wrote: > > > what is the right way to handle this? > > On Tuesday, May 12, 2009 7:51:31 AM UTC+1, stever...@gmail.com wrote: >> >> So I want to use facts from one host in the configuration of other >> hosts. >> Trivial example: setting restrict

[Puppet Users] Ruby program example to post to The Foreman

2012-08-15 Thread wernerbahlke
Hi, I want to use The Foreman to pass variables between nodes. Does somebody have an example of a Ruby parser which does POSTs to The Foreman and can be used in my manifests?. With the exception of a Perl example I have only seen examples for GET operations, for example foreman.rb. I will start