[Puppet Users] Variable interpolation inside hiera data

2012-09-24 Thread Josh
Hi, I am using the latest version of hiera and puppet and wondering if there is any way to make variables in hiera interpolate when they are called, for example: --- foo: bar: $::hostname baz: $some_variable When I try to access this in puppet it invariably comes back with '$hostname'

[Puppet Users] varargs usage in Parameterized Classes

2012-09-24 Thread Adrian Muraru
Is it possible to define a parametrized class but allowing variable number of arguments? thanks, adrian -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit

[Puppet Users] manifest setting in puppet.conf does not work

2012-09-24 Thread Axel Bock
Hello readers, I am configuring my environment to have a separate manifest file, using $environment to in the module and manifest path. For the modules it works now. The site.pp file ... is another issue. I was under the impression it did, but it wasnt. Basically I did the following:

[Puppet Users] Re: require file/package not managed by puppet

2012-09-24 Thread Axel Bock
if the package is in under the management of the system's package manager it should not matter whether it is puppet-managed. puppet checks for the presence of the package in the system,and then fails if it's not there and can't install it. and you can always go with an exec{} resource, which

Re: [Puppet Users] Re: puppet --no-client ignore USR1

2012-09-24 Thread jcbollinger
On Saturday, September 22, 2012 3:58:41 AM UTC-5, Fabrice Bacchella wrote: Le 21 sept. 2012 à 15:35, jcbollinger a écrit : On Friday, September 21, 2012 6:21:04 AM UTC-5, Fabrice Bacchella wrote: When puppet is launched as a daemon, a kill -USR trigger a catalog run : Sep 21 12:56:01

Re: [Puppet Users] puppet and std

2012-09-24 Thread jcbollinger
On Saturday, September 22, 2012 3:36:35 AM UTC-5, Fabrice Bacchella wrote: Le 21 sept. 2012 à 17:05, jcbollinger a écrit : On Friday, September 21, 2012 4:35:41 AM UTC-5, Fabrice Bacchella wrote: I'm starting it by hand. It's the same process (pid 1845) that is nulling stderr that is

[Puppet Users] Re: varargs usage in Parameterized Classes

2012-09-24 Thread Axel Bock
I've done it with hashes as Trevor suggests. I do it to pass values to templates, what's your use case? basically my class looks like this: class myclass( $myhash = {}) { ... } and I use the class like this: myclass { myclass : myhash = { mykey = myvalue }, } works like a charm. HTH,

[Puppet Users] Re: puppetd --tags doesnt work for some module

2012-09-24 Thread jcbollinger
On Sunday, September 23, 2012 11:55:44 PM UTC-5, Heriyanto wrote: Dear All, I have enviroment testing, staging and production for puppet, when i trying to test running staging on production, run command: puppetd --test --env staging # its work puppetd --test --env

[Puppet Users] Overriding variables.

2012-09-24 Thread George Shammas
I am trying to override variables in a class that is defined in the default node profile. I want parent class to be included in every single node, but override its variables in others. I have tried it several different ways now, and every single time the variables either become unset

[Puppet Users] augeas only add if doesn't exist

2012-09-24 Thread Eugene Vilensky
Hello, I'm trying to add an entry to /etc/hosts.allow only if the entry for 'client' (daemon) does not already exit. In this #puppet log: http://www.puppetlogs.com/puppet/%23puppet-2012-05-03.log.html rodjek links a gist which should do exactly that: https://gist.github.com/18c50d8800840696bac0

[Puppet Users] Re: require file/package not managed by puppet

2012-09-24 Thread Justin Ryan
Thanks John, that's exactly what I'm looking for, but am having trouble getting it to work. I read the Custom Factshttp://docs.puppetlabs.com/guides/custom_facts.htmland Plugins in Modules http://docs.puppetlabs.com/guides/plugins_in_modules.html docs, and: added pluginsync = true to

[Puppet Users] Re: require file/package not managed by puppet

2012-09-24 Thread Justin Ryan
also, as suggested in the *Pro Puppet* book, I: - copied the ruby file to ~/lib/ruby/facter/ - export RUBYLIB=~/lib/ruby - facter pgsql_pkg - it printed itworks as expected. I'm running puppet 2.7.18 on the master and 2.7.19 on the client, all are CentOS 6. On Monday,

[Puppet Users] Re: augeas only add if doesn't exist

2012-09-24 Thread Jake - USPS
First thing I would do is use 'augtool' on the command line and checking for any errors trying to parse your current /etc/hosts.allow file: augtool ls /augeas/files/etc/hosts.allow/error (maybe *errors* plural, can't remember off the top of my head ... play with the path as I may have typo'd

[Puppet Users] Re: augeas only add if doesn't exist

2012-09-24 Thread jmccann
Wow, I think I totally missed reading the last part of your message. Unfortunately I don't have a system currently to test what you are trying to do to further debug. Sorry for posting so hastily. Regards, Jake -- You received this message because you are subscribed to the Google Groups

[Puppet Users] Re: require file/package not managed by puppet

2012-09-24 Thread Justin Ryan
and interestingly, I see this when running puppet on the client: info: Loading facts in /var/lib/puppet/facts/pgsql_pkg.rb but it still doesn't appear in the output of `facter` or `facter -p` On Monday, September 24, 2012 12:35:39 PM UTC-7, Justin Ryan wrote: also, as suggested in the *Pro

[Puppet Users] Re: Overriding variables.

2012-09-24 Thread George Shammas
Another iteration of failure is the following. This one is in the likeness of ::parms for a class, but if it nrpe:load inherits override class, then I can't declare the override class anywhere else. This was my first attempt to do this, and have tried 4 other iterations of this, but as far as

Re: [Puppet Users] install vmware tools through puppet

2012-09-24 Thread Elias Abacioglu
I think that you can specify vmware version with a variable or something for the razors edge module.. Otherwise I can soon try to publish my vmware tools module.. Though it's not written as nice as razorsedge -- You received this message because you are subscribed to the Google Groups Puppet

[Puppet Users] Iterate over array to mount NFS directories

2012-09-24 Thread Forrie
I have many systems that require NFS mounts for production. Rather than have one entry of file{} and mount{} per NFS import, in a *.pp file, I'd rather set up and iterate over an array. Looking at the docs, I'm not quite sure how to do this properly. We have three groups for which I would

Re: [Puppet Users] install vmware tools through puppet

2012-09-24 Thread Wolf Noble
I've just added a fact to github which on vmware hosts running linux runs dmidecode and matches known bios address/ esx version to realize an ESX version fact. this information generated from http://virtwo.blogspot.com/2010/10/which-esx-version-am-i-running-on.html in limited testing on an

[Puppet Users] Re: [pe-users] MySQL and PuppetDB

2012-09-24 Thread Daniel Pittman
On Mon, Sep 24, 2012 at 3:03 PM, Stuart Cracraft smcracr...@me.com wrote: Anyone know how to resolve this mysql issue in the log below? Something is wrong with your RVM built Ruby - it doesn't have the 'psych' library for YAML support. That isn't the root cause of the problem, but it will

Re: [Puppet Users] puppet and std

2012-09-24 Thread Fabrice Bacchella
Le 24 sept. 2012 à 15:58, jcbollinger a écrit : On Saturday, September 22, 2012 3:36:35 AM UTC-5, Fabrice Bacchella wrote: Le 21 sept. 2012 à 17:05, jcbollinger a écrit : On Friday, September 21, 2012 4:35:41 AM UTC-5, Fabrice Bacchella wrote: I'm starting it by hand. It's the

Re: [Puppet Users] Re: puppet --no-client ignore USR1

2012-09-24 Thread Fabrice Bacchella
Le 24 sept. 2012 à 15:48, jcbollinger a écrit : I'm not well-versed in MCollective, but I would be surprised if it could not issue requests asynchronously. Even if it can't natively do so, whatever node is issuing the mco commands certainly can issue several of them asynchronously.

[Puppet Users] MSI Package Provider and Install_options

2012-09-24 Thread jbrown
Hello, I'm trying to install a few MSI packages on Windows, and I'm having trouble specifying options. Here is what I want to execute C:\packages\my_problematic_package.msi \quiet \passive As you can see, I'm trying to specify two arguments to the package, but I can't figure out how to use

[Puppet Users] Re: require file/package not managed by puppet

2012-09-24 Thread Justin Ryan
I figured it out, pluginsync = true needs to be added to puppet.conf [main] on both master and client. Also good to note, if the output of the custom fact script is empty, the fact will not appear at all. On Monday, September 24, 2012 12:35:39 PM UTC-7, Justin Ryan wrote: also, as suggested

Re: [Puppet Users] MSI Package Provider and Install_options

2012-09-24 Thread Nan Liu
On Mon, Sep 24, 2012 at 5:22 PM, jbrown justin.br...@fandingo.org wrote: Hello, I'm trying to install a few MSI packages on Windows, and I'm having trouble specifying options. Here is what I want to execute C:\packages\my_problematic_package.msi \quiet \passive As you can see, I'm trying

Re: [Puppet Users] Variable interpolation inside hiera data

2012-09-24 Thread Nan Liu
On Mon, Sep 24, 2012 at 2:39 AM, Josh j...@chickenmonkey.co.uk wrote: I am using the latest version of hiera and puppet and wondering if there is any way to make variables in hiera interpolate when they are called, for example: --- foo: bar: $::hostname baz: $some_variable When I try

[Puppet Users] Re: [pe-users] MySQL and Pupp

2012-09-24 Thread Daniel Pittman
On Mon, Sep 24, 2012 at 7:37 PM, Stuart Cracraft smcracr...@me.com wrote: Notes with ++ Something is wrong with your RVM built Ruby - it doesn't have the 'psych' library for YAML support. That isn't the root cause of the problem, but it will totally mess you up later, so you should fix

[Puppet Users] Re: Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-24 Thread Eric Sorenson
Friends -- As of 30da528e9c8ac345d1020d1cbeee02598174a3c5 we put this intentionally back to the 2.7 behaviour. Because both (a) the change crept in as a side-effect of other code changes, not as a deliberate language design choice -and- (b) we are not providing a simple (sigil or keyword)