Re: [Puppet Users] Offline facts

2014-09-05 Thread Khoury Brazil
Admittedly I haven't. I didn't really want to go chasing after something that has an established practice/pattern or is for some reason a bad idea. I assumed Facter.value would pull from a cache of some sort, but clearly that was just a speculative fantasy on my part. If it computes it each time

Re: [Puppet Users] client not seeing changes made on puppetmaster

2014-09-05 Thread José Luis Ledesma
Hi, Have you checked this? https://docs.puppetlabs.com/references/latest/configuration.html#filetimeout regards, On Thu, Sep 4, 2014 at 9:28 PM, Mike Reed mjohn.r...@gmail.com wrote: Greetings, I have a class for which I would like to simply print a few parameters about a node, before

[Puppet Users] Re: suppress notice for file resource recursive

2014-09-05 Thread Constantin Wolber
Hi, thx a lot for the answer. I was experimenting with the loglevel already but misunderstood the concept :) So everything works now as expected. Once again thx alot Constantin Am Donnerstag, 4. September 2014 22:19:02 UTC+2 schrieb Constantin Wolber: Hi, i searched quite a bit in the

[Puppet Users] Re: client not seeing changes made on puppetmaster

2014-09-05 Thread Antoine Cotten
Hi Mike, It's very likely due to Directory Environments caching. By the default the environment timeout https://docs.puppetlabs.com/references/3.7.latest/configuration.html#environmenttimeout is 3m, which means you whole environment will cached during this time. You can enforce the value of

Re: [Puppet Users] custom script execution and sending output back to master

2014-09-05 Thread kaustubh chaudhari
Cool!!! Thanks for that Felix. It did what i was looking for. The only catch was formatting of the file is messed, but i did some scripting on the master server and fixed it. Thanks for your help . more i work with puppet.. more i fell in love with it!!! With Warm Regards

[Puppet Users] Re: roles? paramaters? facts? with somebodys hacked puppet modules...

2014-09-05 Thread jcbollinger
On Thursday, September 4, 2014 11:27:31 PM UTC-5, Colin Kincaid Williams wrote: I have a hacked together class that somebody else wrote based on some wikimedia puppet scripts. I've been asked to set the JAVA_HEAP_MAX if the host is a resource manager. I'm trying to set the variable

Re: [Puppet Users] Challenge: who am i and what do i do

2014-09-05 Thread jcbollinger
On Thursday, September 4, 2014 5:50:43 PM UTC-5, Jason Antman wrote: Agreed with Atom... I generally think that this method is backwards. The system shouldn't tell Puppet what it wants to be; Puppet (possibly fed by some external data source(s)) should tell the system what to be. +1

[Puppet Users] --configprint

2014-09-05 Thread Jonathan Gazeley
Hi peeps, I've just noticed that puppet agent --configprint runinterval is not doing what I expect. Why does it misreport the environment? The node is indeed checking into the netops environment. [jg4461@web-team-dev ~]$ puppet agent --configprint environment production [jg4461@web-team-dev

Re: [Puppet Users] --configprint

2014-09-05 Thread R.I.Pienaar
- Original Message - From: Jonathan Gazeley jonathan.gaze...@bristol.ac.uk To: puppet-users puppet-users@googlegroups.com Sent: Friday, September 5, 2014 2:53:27 PM Subject: [Puppet Users] --configprint Hi peeps, I've just noticed that puppet agent --configprint runinterval is

[Puppet Users] How to use Puppet Dashboard Group in MCollective?

2014-09-05 Thread Stella
Hi guys, I am a little bit confused about how to use Puppet Dashboard group in MCollective. As we know, we can add group in Puppet Dashboard to include Nodes and Classes, then when Puppet agent runs, it will check the groups to find out which node should have which class. How is this Group

Re: [Puppet Users] --configprint

2014-09-05 Thread Jonathan Gazeley
On 05/09/14 15:02, R.I.Pienaar wrote: - Original Message - From: Jonathan Gazeley jonathan.gaze...@bristol.ac.uk To: puppet-users puppet-users@googlegroups.com Sent: Friday, September 5, 2014 2:53:27 PM Subject: [Puppet Users] --configprint Hi peeps, I've just noticed that puppet

Re: [Puppet Users] --configprint

2014-09-05 Thread R.I.Pienaar
- Original Message - From: Jonathan Gazeley jonathan.gaze...@bristol.ac.uk To: puppet-users puppet-users@googlegroups.com Sent: Friday, September 5, 2014 3:59:28 PM Subject: Re: [Puppet Users] --configprint On 05/09/14 15:02, R.I.Pienaar wrote: - Original Message - From:

Re: [Puppet Users] --configprint

2014-09-05 Thread Jonathan Gazeley
On 05/09/14 16:04, R.I.Pienaar wrote: - Original Message - From: Jonathan Gazeley jonathan.gaze...@bristol.ac.uk To: puppet-users puppet-users@googlegroups.com Sent: Friday, September 5, 2014 3:59:28 PM Subject: Re: [Puppet Users] --configprint On 05/09/14 15:02, R.I.Pienaar wrote:

[Puppet Users] Moving away from Puppet Enterrpize piecemeal?

2014-09-05 Thread Matthew Nicholson
tl;dr: Splitting up an PE all-in-one install AND moving to puppet open source... So, a kinda odd/complicated query here: I'm a long-time puppet user/admin/master/cool-word-of-the-moment. I recently changed jobs. My old shop was 100% puppet open source and had been for ~6 years or so, with myself

Re: [Puppet Users] --configprint

2014-09-05 Thread R.I.Pienaar
- Original Message - From: Jonathan Gazeley jonathan.gaze...@bristol.ac.uk To: puppet-users puppet-users@googlegroups.com Sent: Friday, September 5, 2014 4:09:26 PM Subject: Re: [Puppet Users] --configprint On 05/09/14 16:04, R.I.Pienaar wrote: - Original Message - From:

Re: [Puppet Users] --configprint

2014-09-05 Thread Jonathan Gazeley
On 05/09/14 16:20, R.I.Pienaar wrote: - Original Message - From: Jonathan Gazeley jonathan.gaze...@bristol.ac.uk To: puppet-users puppet-users@googlegroups.com Sent: Friday, September 5, 2014 4:09:26 PM Subject: Re: [Puppet Users] --configprint On 05/09/14 16:04, R.I.Pienaar wrote:

Re: [Puppet Users] --configprint

2014-09-05 Thread R.I.Pienaar
- Original Message - From: Jonathan Gazeley jonathan.gaze...@bristol.ac.uk To: puppet-users puppet-users@googlegroups.com Sent: Friday, September 5, 2014 4:39:49 PM Subject: Re: [Puppet Users] --configprint On 05/09/14 16:20, R.I.Pienaar wrote: - Original Message - From:

[Puppet Users] puppet (3.7.0) module install fails with a specific module that worked on puppet 3.6.2

2014-09-05 Thread Sebastian Otaegui
Hello, I was able to do puppet module install gini/archive before and now with version 3.7.0 I am getting the following: # puppet module install gini/archive Notice: Preparing to install into /Users/otaeguis/.puppet/modules ... Notice: Downloading from https://forgeapi.puppetlabs.com ... Error:

[Puppet Users] inline template variable access

2014-09-05 Thread Brandon Metcalf
Using puppet 3.4.3 and getting the following warning: Variable access via 'java_home_var' is deprecated. Use '@java_home_var' instead. template[inline]:1 from the following line: $java_home = inline_template('%= scope[@java_home_var] %') Any ideas? Thanks. -- Brandon Metcalf | Technical

[Puppet Users] Re: roles? paramaters? facts? with somebodys hacked puppet modules...

2014-09-05 Thread Colin Kincaid Williams
I'm going to try your suggestion. Thanks for the response! I'm curious however if $rm_hosts is available where you suggest. E.G. class role::wh::hadoop::production { $is_rm = $::hostname in $rm_hosts When the relevant lines from the provided hadoop.pp pasted above : class

[Puppet Users] MCollective puppet runonce and puppet agent daemon conflict?

2014-09-05 Thread Stella
Hi, I am using open source Puppet 3.6.2 with Dashboard and Mcollective. If I have puppet agent running and then from puppet master I run mco puppet runonce --server puppetmaster_name, I will get this error: Cannot specify any custom puppet options when the daemon is running I understand that

Re: [Puppet Users] MCollective puppet runonce and puppet agent daemon conflict?

2014-09-05 Thread José Luis Ledesma
You can use mcollective to run periodic revisions with noop: mco puppet --noop runall 10 This will run puppet on every machine with concurrency of 10 ( so no more than 10 puppet agent will be retrieving/applying the catalog at the same time). You can also stop puppet from mcollective, push

Re: [Puppet Users] MCollective puppet runonce and puppet agent daemon conflict?

2014-09-05 Thread José Luis Ledesma
Forgot about last question,you can specify more than one -I in each command El 05/09/2014 20:46, Stella stellatian1...@gmail.com escribió: Hi, I am using open source Puppet 3.6.2 with Dashboard and Mcollective. If I have puppet agent running and then from puppet master I run mco puppet

[Puppet Users] Re: client not seeing changes made on puppetmaster

2014-09-05 Thread Mike Reed
@Antoine you are exactly correct. After creating an environment.conf file for my 'test' environment and setting 'environment_timeout = 0', it seems the cache is being cleared after each run and the appropriate changes are being reflected on my test clients. I opted to create a .conf file for

[Puppet Users] How to use Puppet Dashboard Group in MCollective?

2014-09-05 Thread Stefan Heijmans
Hi Stella, Out of the box there is no support for this. You can write your own MCollective discovery plugin to do this or use my basic version [1] and enhance it  Stefan [1] https://github.com/sheijmans/mcollective-discovery -- You received this message because you are subscribed to the

Re: [Puppet Users] MCollective puppet runonce and puppet agent daemon conflict?

2014-09-05 Thread Stella
Jose, thank you for the reply. Yes, I understand all those commands. Oh, so you are saying I can use mco to temporarily stop my puppet agent when I need to do mco runonce and then start it back. Good idea! But what is the answer to my question: Can I have both puppet agent running (so that

[Puppet Users] Re: How to use Puppet Dashboard Group in MCollective?

2014-09-05 Thread Stella
Hi Stefan, Great! I will give your basic version a try and let you know how it works! thanks, Stella On Friday, September 5, 2014 3:29:06 PM UTC-4, Stefan Heijmans wrote: Hi Stella, Out of the box there is no support for this. You can write your own MCollective discovery plugin to do

Re: [Puppet Users] MCollective puppet runonce and puppet agent daemon conflict?

2014-09-05 Thread Christopher Wood
On Fri, Sep 05, 2014 at 11:46:14AM -0700, Stella wrote: Hi, I am using open source Puppet 3.6.2 with Dashboard and Mcollective. If I have puppet agent running and then from puppet master I run mco puppet runonce --server puppetmaster_name, I will get this error: Cannot

Re: [Puppet Users] MCollective puppet runonce and puppet agent daemon conflict?

2014-09-05 Thread Stella
No, I didn't try with filtering. I tried Jose's suggestion: mco puppet runall 10 and yours: mco puppet runonce -F hostname=puppetmaster_name Both work fine. So I will forget --server option :) thanks a lot Stella On Friday, September 5, 2014 3:41:16 PM UTC-4, Christopher Wood wrote: On

[Puppet Users] Could not evaluate: Could not retrieve file metadata

2014-09-05 Thread Alex Wacker
Hello, I am currently having the following problem and have not been able to track down the cause in all my searches online. I have a script file located in a module I have written that the client appears to be unable to get. Error: /Stage[main]/modulename/File[remove_script]: Could not

[Puppet Users] Re: roles? paramaters? facts? with somebodys hacked puppet modules...

2014-09-05 Thread jcbollinger
On Friday, September 5, 2014 1:37:21 PM UTC-5, Colin Kincaid Williams wrote: I'm going to try your suggestion. Thanks for the response! I'm curious however if $rm_hosts is available where you suggest. I made no suggestion about where $rm_hosts is available in your code. You were

[Puppet Users] Re: roles? paramaters? facts? with somebodys hacked puppet modules...

2014-09-05 Thread Colin Kincaid Williams
Hi John, I provided the complete code which contains the rm_hosts in my original post; see role/wh/hadoop.pp . I tried your suggestion but I was getting errors in the role/wh/hadoop.pp file. Do you believe your code will work in the role/wh/hadoop.pp above? If so can you be a little more

[Puppet Users] Re: roles? paramaters? facts? with somebodys hacked puppet modules...

2014-09-05 Thread Colin Kincaid Williams
Thanks for your last post, I gave it another attempt and it works. I'm still a puppet novice cast onto a developed framework. Thanks for you help! On Friday, September 5, 2014 8:45:07 PM UTC, jcbollinger wrote: On Friday, September 5, 2014 1:37:21 PM UTC-5, Colin Kincaid Williams wrote:

[Puppet Users] Re: puppet (3.7.0) module install fails with a specific module that worked on puppet 3.6.2

2014-09-05 Thread Anderson Mills
Sebastian, So, this is caused by symlinks in this module which don't have a corresponding directory or file. Puppet 3.7.0 now checks for symlinks, and unfortunately has a File Not Found error if the symlinks don't have a corresponding target. My only suggestion for working around this is to

Re: [Puppet Users] Re: puppet (3.7.0) module install fails with a specific module that worked on puppet 3.6.2

2014-09-05 Thread Sebastian Otaegui
Damn, that really sucks because I am using this module from my rspec-puppet tests, so this module gets installed from the fixtures. oh well. On Fri, Sep 5, 2014 at 3:44 PM, Anderson Mills ander...@puppetlabs.com wrote: Sebastian, So, this is caused by symlinks in this module which don't

Re: [Puppet Users] Offline facts

2014-09-05 Thread Khoury Brazil
On Thu, Sep 4, 2014 at 9:26 AM, jcbollinger john.bollin...@stjude.org wrote: As long as you intend to perform the validation inside the fact implementation, the fact can keep and use its own cache somewhere on the system. Alternatively, the master stores the most recent set of facts

Re: [Puppet Users] Offline facts

2014-09-05 Thread Spencer Krum
I've also used facter.d for facts that require longer to run than you want to wait for a Puppet run. For example a big find to check all of / for setuid files, then count them. Run that in a cron then write to facter.d, then grab it with facter. On Fri, Sep 5, 2014 at 5:04 PM, Khoury Brazil