[Puppet Users] JOB: Puppet DevOps Position in Switzerland

2012-08-14 Thread Toni Birrer
Hi. We're a small startup, based in Zurich, Switzerland and we're looking for an experienced devops engineer. Powering our two services ( http://squirro.com and http://memonic.com ) is a pretty slick infrastructure based on amazon aws and its been managed with puppet since day one ;-) Since

[Puppet Users] Passing special characters to exec's command - syntax help!!

2012-08-14 Thread Julia Smith
Hi I want to use exec to create a recursive directory (I know I can use file but for another reason I don't want to) So as a variable I get passed in $home and it may be for example /first/second/userdirectory where first and second may not exist. Puppet's user wraps useradd so it won't

[Puppet Users] Re: Passing special characters to exec's command - syntax help!!

2012-08-14 Thread earthgecko
So as a variable I get passed in $home and it may be for example /first/second/userdirectory where first and second may not exist. So I wanted to do a simple exec command which does the following if I were to do it at the command line: mkdir -p ${home%/*} ...this would make

[Puppet Users] Re: Class Execution order

2012-08-14 Thread jcbollinger
On Tuesday, August 14, 2012 12:12:33 AM UTC-5, Douglas wrote: Trying to force puppet class execution order with: Class['lvm'] - Class['network'] - Class['apt'] - Class | | This is giving me: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Resource type class

[Puppet Users] Re: Class Execution order

2012-08-14 Thread earthgecko
Dreaded. I have found that using the .dot files that puppet --graph option produces sometimes helps see those dreaded dependency cycle issues (and some times it does not). I recommend graphviz for anyone on linux for generating png files for the .dot files (not sure for Windows). On my setup

Re: [Puppet Users] Re: Passing special characters to exec's command - syntax help!!

2012-08-14 Thread Julia Smith
Hi Thanks for your response. The first answer won't work for me as I want to be dynamic about it and take in a variable of the full path so it could just as easily be 10 directories deep. I'm getting the value for home from a CLI rather than hand crafting something static. The significance of the

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

2012-08-14 Thread trey85stang
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 package debug: Puppet::Type::Package::ProviderYum: Executing '/bin/rpm

[Puppet Users] puppet fileserver and $environment in foreman

2012-08-14 Thread Yaniv Fine
Hello puppet experts i have followed the following docoment to setup separate environment for development testing and production http://puppetlabs.com/blog/git-workflow-and-puppet-environments/ can i use environment variable inside a module and thus calling separate modules for separate

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

2012-08-14 Thread trey85stang
dohh... I just realized this host had 2.6 installed... not 2.7. Everything works fine on 2.7. 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

Re: [Puppet Users] Re: Passing special characters to exec's command - syntax help!!

2012-08-14 Thread earthgecko
OK then. command = mkdir -p $(dirname ${home}), That does it. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/1LLoBIiTMZ4J. To post to this group,

[Puppet Users] puppet fileserver and $environment in foreman

2012-08-14 Thread Yaniv Fine
Hello puppet experts i have followed the following docoment to setup separate environment for development testing and production http://puppetlabs.com/blog/git-workflow-and-puppet-environments/ can i use environment variable inside a module and thus calling separate modules for separate

[Puppet Users] Variable scoping question

2012-08-14 Thread Davíð Steinn Geirsson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have a configuration similar to the following (the puppet version is 2.6.16): node basenode { $ldapenvironment = office } node mynode inherits basenode { include ldap } class ldap { file {

Re: [Puppet Users] variable scoping?

2012-08-14 Thread Zachary Alex Stern
Sorry typo: class puppet ( $server = $puppet::params::server ) inherits puppet::params { FWIW, this works: class puppet::config { include puppet::params $puppetserver=$puppet::params::puppetserver $runinterval=$puppet::params::runinterval file { '/etc/puppet/puppet.conf':

Re: [Puppet Users] Re: Class Execution order

2012-08-14 Thread Douglas Garstang
On Tue, Aug 14, 2012 at 6:09 AM, jcbollinger john.bollin...@stjude.org wrote: On Tuesday, August 14, 2012 12:12:33 AM UTC-5, Douglas wrote: Trying to force puppet class execution order with: Class['lvm'] - Class['network'] - Class['apt'] - Class | | This is giving me: err: Could not

Re: [Puppet Users] hiera command line performance

2012-08-14 Thread R.I.Pienaar
hello, - Original Message - From: Paul Colby pco...@gmail.com To: puppet-users@googlegroups.com Sent: Monday, August 13, 2012 6:22:10 PM Subject: [Puppet Users] hiera command line performance Hi everyone, The hiera command line program (version 0.3.0) is currently taking

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

2012-08-14 Thread Jen Patrick
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_static = { eth0 = { macaddress = $macaddress_eth0,

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

2012-08-14 Thread Marc Haber
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/$fqdn: ensure = present, content = from=\$ipaddress_eth0\

[Puppet Users] Is there a way to configure Puppet Dashboard to use server time (rather than client time) for the latest report field?

2012-08-14 Thread Zac Bentley
We run puppet on lots of development test machines (CentOS VMs). It is standard practice for our developers to change the system date on their environments, sometimes by months or years (note that I didn't say it's a *good* standard practice, but it is pretty entrenched). As a result, it is

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

2012-08-14 Thread Justin Stoller
On Tue, Aug 14, 2012 at 7:49 AM, Jen Patrick jenafl...@gmail.com wrote: It's barfing on this: Is this in relation to a previous thread? Error 400 on SERVER: Could not parse for environment production: Syntax error at '{'; expected '}' is there a line number? Here's the node.pp Does this

[Puppet Users] Puppet for deploying Jboss application

2012-08-14 Thread Rost
Hi All, I would like to use puppet for deploying Jboss application. The property file of my Jboss app need to be evaluated before moving in the conf dir as it's a template. How could I make this kind of operation with native resources of puppet. *Example :* I have this file

[Puppet Users] Announcing stdlib 2.4.0

2012-08-14 Thread Jeff McCune
Hello, We're pleased to announce the release of the stdlib module at version 2.4.0 [1]. This feature release is fully backwards compatible with all previous releases of the stdlib module since version 2.0.0 and is tested to work with Puppet 2.6 and 2.7. The stdlib module follows semver.org

Re: [Puppet Users] variable scoping?

2012-08-14 Thread Chad Huneycutt
On Tue, Aug 14, 2012 at 11:56 AM, Zachary Alex Stern z...@enternewmedia.com wrote: FWIW, this works: class puppet::config { include puppet::params $puppetserver=$puppet::params::puppetserver $runinterval=$puppet::params::runinterval file { '/etc/puppet/puppet.conf': ensure

Re: [Puppet Users] variable scoping?

2012-08-14 Thread Zachary Stern
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. On Tue, Aug 14, 2012 at 1:44 PM, Chad Huneycutt chad.huneyc...@gmail.comwrote: On Tue, Aug 14, 2012 at 11:56 AM, Zachary Alex

[Puppet Users] Announce: Hiera-Puppet 1.0.0rc3 Available

2012-08-14 Thread Matthaus Litteken
Hiera-Puppet 1.0.0rc3 is a feature release candidate. Hiera-Puppet is the Puppet backend for Hiera and contains the parser functions for Puppet. Downloads are available: * Source http://puppetlabs.com/downloads/hiera/hiera-puppet-1.0.0rc3.tar.gz * Apt and yum development repositories * Apple

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

2012-08-14 Thread Stephen Gran
Hi, On Tue, 2012-08-14 at 13:27 +0200, 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: ... That being said, is there a way to do things more elegantly? I understand

[Puppet Users] Testing Hiera Lookup with Puppet Master

2012-08-14 Thread Mitchell Hashimoto
Hello, Is there an easy way to test hiera lookup for a node? A node is not getting the value I expect from Hiera and I want a way to test this. I noticed that `hiera` has an option called `-i` to use the Puppet inventory service. With the latest (RC4 I believe) of Hiera I'm getting the following

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

2012-08-14 Thread Sam
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 lines in ntp.conf to allow a monitoring host to query ntpd on remote

Re: [Puppet Users] Testing Hiera Lookup with Puppet Master

2012-08-14 Thread R.I.Pienaar
- Original Message - From: Mitchell Hashimoto mitchell.hashim...@gmail.com To: puppet-users@googlegroups.com Sent: Tuesday, August 14, 2012 12:13:19 PM Subject: [Puppet Users] Testing Hiera Lookup with Puppet Master Hello, Is there an easy way to test hiera lookup for a node?

Re: [Puppet Users] Testing Hiera Lookup with Puppet Master

2012-08-14 Thread Mitchell Hashimoto
On Tuesday, August 14, 2012 12:34:45 PM UTC-7, R.I. Pienaar wrote: - Original Message - From: Mitchell Hashimoto mitchell@gmail.com javascript: To: puppet...@googlegroups.com javascript: Sent: Tuesday, August 14, 2012 12:13:19 PM Subject: [Puppet Users] Testing Hiera

Re: [Puppet Users] Puppet for deploying Jboss application

2012-08-14 Thread Dominic Cleal
On 14/08/12 18:18, Rost wrote: Hi All, I would like to use puppet for deploying Jboss application. The property file of my Jboss app need to be evaluated before moving in the conf dir as it's a template. How could I make this kind of operation with native resources of puppet.

[Puppet Users] Puppetlabs lvm module

2012-08-14 Thread Douglas Garstang
I just grabbed the puppet labs lvm module from Puppet forge. Attempting to use... physical_volume { ['/dev/xvdb1', '/dev/xvdc1']: ensure = present; } results in: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at ':'; expected

Re: [Puppet Users] Puppetlabs lvm module

2012-08-14 Thread Eric Shamow
Everything else aside, you have a semicolon after ensure = present instead of a comma in your physical_volume resource. I'm not certain that it's causing the problem but it might be confusing the parser. -Eric -- Eric Shamow Professional Services http://puppetlabs.com/ (c)631.871.6441 Join

Re: [Puppet Users] Puppetlabs lvm module

2012-08-14 Thread Douglas Garstang
I've always used semicolons at the end of resources never caused a problem before, and puppet-lint doesn't complain about them. On Tue, Aug 14, 2012 at 1:42 PM, Eric Shamow e...@puppetlabs.com wrote: Everything else aside, you have a semicolon after ensure = present instead of a comma in

Re: [Puppet Users] Puppetlabs lvm module

2012-08-14 Thread Eric Shamow
Oh right - for the code compression syntax…I don't use it and so I tend to forget it exists. Sorry about that. Is line 29 specifically this? absent: { It would be helpful to see in context with line numbers, such as in a gist. -Eric -- Eric Shamow Professional Services

Re: [Puppet Users] Puppetlabs lvm module

2012-08-14 Thread Douglas Garstang
Eric, Yes... that's specifically line 29. 19logical_volume { $name: 20 ensure = present, 21 volume_group = $vg, 22 size = $size, 23 before = Volume_group[$vg] 24} 25 } 26 # 27 # Just clean up

[Puppet Users] Re: Announcing stdlib 2.4.0

2012-08-14 Thread Jeff McCune
On Tue, Aug 14, 2012 at 10:30 AM, Jeff McCune j...@puppetlabs.com wrote: Hello, We're pleased to announce the release of the stdlib module at version 2.4.0 [1]. This feature release is fully backwards compatible with all previous releases of the stdlib module since version 2.0.0 and is

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

2012-08-14 Thread Jeff McCune
On Mon, Aug 13, 2012 at 12:36 PM, llowder llowde...@gmail.com 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/12929). Instead, follow the [module

Re: [Puppet Users] Puppetlabs lvm module

2012-08-14 Thread Ryan Coleman
Well that's embarrassing. It seems as those the 'cleaned' match of the case statement isn't actually closed. :-/ Would you try adding a closing brace in lvm/manifests/init.pp around like 26, where this code appears? It should close the 'cleaned: {' block. } # # Just clean up the logical

Re: [Puppet Users] Pass array to a define

2012-08-14 Thread Douglas Garstang
On Sat, Aug 11, 2012 at 7:48 PM, Stefan Schulte stefan.schu...@taunusstein.net wrote: On Sat, Aug 11, 2012 at 01:46:57PM -0700, James A. Peltier wrote: - Original Message - | On Fri, Aug 10, 2012 at 05:10:20PM -0700, Douglas Garstang wrote: | How can I pass an array to a define? It's

[Puppet Users] Custom Providers and Environmemts.

2012-08-14 Thread Douglas Garstang
I've installed the puppet labs lvm module. After fixing the missing } at line 20 in init.pp (really?!?!), I'm getting this:' err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type

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

2012-08-14 Thread llowder
On Tuesday, August 14, 2012 4:14:47 PM UTC-5, Jeff McCune wrote: On Mon, Aug 13, 2012 at 12:36 PM, llowder llow...@gmail.com javascript: wrote: If using the nodes/*.pp and having your site.pp be import 'nodes/*', You should avoid using the import statement (see

[Puppet Users] Re: Custom Providers and Environmemts.

2012-08-14 Thread Douglas Garstang
On Tue, Aug 14, 2012 at 2:25 PM, Douglas Garstang doug.garst...@gmail.com wrote: I've installed the puppet labs lvm module. After fixing the missing } at line 20 in init.pp (really?!?!), I'm getting this:' err: Could not retrieve catalog from remote server: Error 400 on SERVER:

Re: [Puppet Users] Custom Providers and Environmemts.

2012-08-14 Thread Eric Shamow
Specifically the types need to be in the server's $libdir. You can place them there manually, but the way they generally get there is via pluginsync. So the easiest way to ensure the master can process them is to place them in the module path used by the server *when the server is acting as a

Re: [Puppet Users] Custom Providers and Environmemts.

2012-08-14 Thread Douglas Garstang
On Tue, Aug 14, 2012 at 2:49 PM, Eric Shamow e...@puppetlabs.com wrote: Specifically the types need to be in the server's $libdir. You can place them there manually, but the way they generally get there is via pluginsync. So the easiest way to ensure the master can process them is to place

Re: [Puppet Users] Custom Providers and Environmemts.

2012-08-14 Thread Douglas Garstang
On Tue, Aug 14, 2012 at 2:59 PM, Douglas Garstang doug.garst...@gmail.com wrote: On Tue, Aug 14, 2012 at 2:49 PM, Eric Shamow e...@puppetlabs.com wrote: Specifically the types need to be in the server's $libdir. You can place them there manually, but the way they generally get there is via

Re: [Puppet Users] Custom Providers and Environmemts.

2012-08-14 Thread Douglas Garstang
On Tue, Aug 14, 2012 at 3:03 PM, Douglas Garstang doug.garst...@gmail.com wrote: On Tue, Aug 14, 2012 at 2:59 PM, Douglas Garstang doug.garst...@gmail.com wrote: On Tue, Aug 14, 2012 at 2:49 PM, Eric Shamow e...@puppetlabs.com wrote: Specifically the types need to be in the server's $libdir.

[Puppet Users] Puppet hanging when listen turned on

2012-08-14 Thread James A. Peltier
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 it was a recent update that did it, but to no avail. strace on the puppet

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

2012-08-14 Thread Ramin K
On 8/14/2012 2:14 PM, Jeff McCune wrote: what is the best practice? Is it better to have one node def per file, or group the node defs by class (ie, all app servers in one file or all web servers in one file) or some other layout? Best practice is to use an external node classifier

Re: [Puppet Users] uninitialized constant Puppet::Util::Autoload (NameError)

2012-08-14 Thread Ryan Coleman
On Tue, Aug 14, 2012 at 4:10 PM, saasadm nguyendoanp...@gmail.com wrote: Have anyone seen this error before? I just installed Puppet and tried it out and got this error.I haven't made any changes to the system yet after the installation. puppet agent --noop --verbose -test Are there two

Re: [Puppet Users] Puppet for deploying Jboss application

2012-08-14 Thread Rost
thks Le mardi 14 août 2012 22:21:04 UTC+2, Dominic Cleal a écrit : On 14/08/12 18:18, Rost wrote: Hi All, I would like to use puppet for deploying Jboss application. The property file of my Jboss app need to be evaluated before moving in the conf dir as it's a template.

[Puppet Users] Re: Is there a way to configure Puppet Dashboard to use server time (rather than client time) for the latest report field?

2012-08-14 Thread pe
As well as the above, I'd like to also know how to get it to use the 'local time', not UTC, as all my systems are in the same timezone. thanks -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit

Re: [Puppet Users] hiera command line performance

2012-08-14 Thread Paul Colby
Thanks R.I. Pienaar, that's exactly the kind of suggestion I was hoping for! :) I haven't written any Ruby for ~9 years, but as I regularly develop in several other languages (primarily C++), I'll enjoy getting my hands dirty with Ruby again. And thanks for including a basic

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

2012-08-14 Thread Mitchell Hashimoto
Hello, I have a custom Puppet function. Am I able to call that function from within my custom provider (written in Ruby)? Best, Mitchell -- 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] Installing puppet-dashboard on ubuntu precise

2012-08-14 Thread Sam Morrison
Hi, I'm trying to install dashboard on precise and I get the below error. I'm using the latest version that is available in the puppet apt repository. The package rdoc is installed (it's just a virtual package pointing to ruby) Are there some other missing dependencies that the package