[Puppet Users] Strange exec behavior on windows

2014-07-22 Thread cko
Hi everyone, I am running Puppet 3.6.2 on the affected Windows Server 2008 R2 node. First of all the manifest that I'm trying to use: * define static_route ($net,$netmask,$gw) * * {* * if $::kernel == 'Linux' * * {* * exec { $name:* *command = route add -net

Re: [Puppet Users] Managing config files...

2014-07-22 Thread Felix Frank
On 07/21/2014 09:52 AM, Gavin Williams wrote: Ah, forgot about the parsed file stuff... Good call, think that could be a good fit for the jre.properties file :) Cheers Gavin To clarify, though - do write Ruby code that will parse files, but refrain from basing providers on Puppet's

[Puppet Users] How to install Tomcat

2014-07-22 Thread phani krishna
hi i am new to puppet please can any one let me know how to install tomcat on client machine Thanks -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Puppet Users] Re: Passing undef as argument to classes defines overrides default parameter

2014-07-22 Thread jcbollinger
On Monday, July 21, 2014 9:39:39 AM UTC-5, David Schmitt wrote: On 2014-07-21 15:00, jcbollinger wrote: On Monday, July 21, 2014 12:00:35 AM UTC-5, Atom Powers wrote: I think you should be able to send json to the yaml backend and it will work. I did some testing with

[Puppet Users] Re: Resource without reporting of change

2014-07-22 Thread jcbollinger
On Monday, July 21, 2014 9:20:59 AM UTC-5, Georg Brunmayr wrote: Hi folks, i work with puppet for some time now and usually find what i need to know but here my google skills fail... What i'm doing is roughly this: I have a pre and post stage where a node gets disabled in our build

[Puppet Users] Re: Strange exec behavior on windows

2014-07-22 Thread jcbollinger
On Tuesday, July 22, 2014 3:35:01 AM UTC-5, cko wrote: Hi everyone, I am running Puppet 3.6.2 on the affected Windows Server 2008 R2 node. First of all the manifest that I'm trying to use: * define static_route ($net,$netmask,$gw) * * {* * if $::kernel == 'Linux' * * {*

[Puppet Users] Ruby, YAML Hiera data

2014-07-22 Thread Matthew Burgess
Hi, It's probably best for you to not ask why we're doing the following, but here's what we're trying to achieve: We'd like to programmatically edit our Hiera data, and we're using the YAML backend. I can successfully load the correct YAML file and make the changes we require. However, we've

Re: [Puppet Users] Re: puppetlabs-corosync help using multiple primitive operations

2014-07-22 Thread willi . fehler
Hi Trey, I'm using Hiera and changed now: p_drbd_jira: primitive_class: ocf primitive_type: drbd provided_by: linbit parameters: drbd_resource: jira operations: monitor: - {interval: '10s', role: 'Master'} -

[Puppet Users] Re: Reports from puppet

2014-07-22 Thread Maxim Nikolaev
HI I'm using puppetdb-2.1.0-1.el6.noarch Puppetboard installed from pip yesterday, so I suppose it's also last. I get mail about errors, so I know that report is generated. But I can't see it not in Puppetboard ( Overvie). When I check report in Node tab - I see that it's empty. Error on

Re: [Puppet Users] Re: Strange exec behavior on windows

2014-07-22 Thread Rob Reynolds
On Tue, Jul 22, 2014 at 6:18 AM, jcbollinger john.bollin...@stjude.org wrote: On Tuesday, July 22, 2014 3:35:01 AM UTC-5, cko wrote: Hi everyone, I am running Puppet 3.6.2 on the affected Windows Server 2008 R2 node. First of all the manifest that I'm trying to use: * define

[Puppet Users] Re: Facter unable to parse custom fact

2014-07-22 Thread Maxim Nikolaev
As I understand from Facrer 2 manual (http://docs.puppetlabs.com/facter/2.1/custom_facts.html#adding-custom-facts-to-facter) I can set all custom facts to /etc/facts/facts.d. Fact example: Facter.add(role) do setcode do Facter::Util::Resolution.exec('ec2-describe-tags -O KEY -W KEY

Re: [Puppet Users] Re: Facter unable to parse custom fact

2014-07-22 Thread José Luis Ledesma
You are confusing custom and external facts, as david explained. Regards, El 22/07/2014 18:33, Maxim Nikolaev m...@maximnik.com escribió: As I understand from Facrer 2 manual ( http://docs.puppetlabs.com/facter/2.1/custom_facts.html#adding-custom-facts-to-facter) I can set all custom facts to

[Puppet Users] use client_data/catalog/fqdn.json for nagios check?

2014-07-22 Thread Bernard Clark
We need to be alerted whenever a puppet report from any puppet client is late. We were thinking of having Nagios monitor the last modification time of a client's /var/lib/puppet/client_data/catalog/fqdn.json and alert us when that file ages too much. Anyone have a better idea? -- You received

Re: [Puppet Users] use client_data/catalog/fqdn.json for nagios check?

2014-07-22 Thread Atom Powers
I use a script that checks if the puppet client is running and parses the lastrunreport for last run time and if any errors were reported applying the catalog. On Tue, Jul 22, 2014 at 12:36 PM, Bernard Clark berniecla...@gmail.com wrote: We need to be alerted whenever a puppet report from any

[Puppet Users] Puppet API for Unsigned Certs

2014-07-22 Thread Danny Roberts
I'm trying to use the Puppet API in our monitoring to check for and alert on any unsigned certificates that might be waiting in Puppet. As per http://docs.puppetlabs.com/guides/rest_api.html#certificate-status I should be able to use something like: curl --cert

[Puppet Users] custom function to read inifile

2014-07-22 Thread Ritesh Nanda
Hello , I was trying to write a custom function which would run on puppet master take input a ini file , parse a section of that ini file and assign its value to a variable . Something like $test = iniread('example.ini', 'Program', 'path') This would assign the value to test variable when

Re: [Puppet Users] use client_data/catalog/fqdn.json for nagios check?

2014-07-22 Thread Denmat
This one from RIP works ok for me: https://github.com/ripienaar/monitoring-scripts/blob/master/puppet/check_puppet.rb On 23 Jul 2014, at 5:47, Atom Powers atom.pow...@gmail.com wrote: I use a script that checks if the puppet client is running and parses the lastrunreport for last run time

Re: [Puppet Users] Re: puppetlabs-corosync help using multiple primitive operations

2014-07-22 Thread Hunter Haugen
On Tue, Jul 22, 2014 at 9:16 AM, willi.feh...@home24.de wrote: Hi Trey, I'm using Hiera and changed now: p_drbd_jira: primitive_class: ocf primitive_type: drbd provided_by: linbit parameters: drbd_resource: jira operations:

[Puppet Users] Banned from RHN due to exessive connections; would like opions on my solution.

2014-07-22 Thread Stack Kororā
Greetings, In my multiple hundred servers, I have 10 that are Red Hat based. We recently brought them under the same management as the rest of the servers utilizing Puppet. Then we ran into issues because we were hitting RHN too frequently and we got our servers banned. :-( I went digging for