[Puppet Users] Re: Noop some classes/ressources

2013-12-12 Thread William Leese
> > I would like to set to noop some classes (not all) for some server > groups. (For example, we can have 2 types of modules, IT and Middleware, > IT must be in no-noop and Middleware must be in noop) > So you would like to sometimes apply a nodes assigned classes and sometimes not? That sou

[Puppet Users] Re: Stdlib and Defined Types

2013-12-12 Thread William Leese
On Friday, December 13, 2013 5:30:26 AM UTC+9, Trevor Vaughan wrote: > > Does anyone know of a way to add a file-centric backtrace to the validate > functions in the Stdlib? > > If you use a validator in a defined type, you end up not having any idea > what actually threw the error. > Annoying

[Puppet Users] Windows - MSI that shows up in Windows Features instead of Add/Remove Programs

2013-12-12 Thread Josh D
I'm trying to deploy IE11 through puppet. I've created a custom MSI using the IE Administration Kit that supports silent installs. The problem is, IE is "built into" Windows, so rather than showing up in the installed programs list, it winds up in Windows Features. I figured this would cause

Re: [Puppet Users] yamlyzer

2013-12-12 Thread Stuart Cracraft
John, I will look into this tomorrow. It sounds like the solution. Thanks very much. Stuart On Dec 12, 2013, at 8:32 PM, John Warburton wrote: > On 13 December 2013 15:07, Stuart Cracraft wrote: > Our Security Group would like to have complete visibility to logs in simple > formats they

Re: [Puppet Users] yamlyzer

2013-12-12 Thread Stuart Cracraft
Thank-you Dan. Stuart On Dec 12, 2013, at 8:42 PM, Dan White wrote: > Extending the script depends on what yaml files you plan to parse and what > serialized objects are contained therein. > > http://www.skorks.com/2010/04/serializing-and-deserializing-objects-with-ruby/ > > On Dec 12, 2013,

Re: [Puppet Users] yamlyzer

2013-12-12 Thread Dan White
Extending the script depends on what yaml files you plan to parse and what serialized objects are contained therein. http://www.skorks.com/2010/04/serializing-and-deserializing-objects-with-ruby/ On Dec 12, 2013, at 11:07 PM, Stuart Cracraft wrote: > Great. > > Okay - anyone additionally, how

Re: [Puppet Users] yamlyzer

2013-12-12 Thread John Warburton
On 13 December 2013 15:07, Stuart Cracraft wrote: > Our Security Group would like to have complete visibility to logs in > simple formats they can parse > and understand and socialize it to the C-suite with. Also, it can be used > to analyze Puppet's proposed > operations in noop mode prior to a

Re: [Puppet Users] yamlyzer

2013-12-12 Thread Stuart Cracraft
Great. Okay - anyone additionally, how would you extend Dan's script to dump the entirety of a Puppet YAML to a plain text report. I know, I know. It sounds boring, painful even but the rationale is to know exactly what the YAML says even though it is voluminous. The reason? Our Security G

Re: [Puppet Users] yamlyzer

2013-12-12 Thread Dan White
No. I whipped that sample up in about 10 minutes. It provides a starting point for you to develop what you want. On Dec 12, 2013, at 8:09 PM, Stuart Cracraft wrote: > Do you personally use something > more comprehensive with all fields > enabled? “Sometimes I think the surest sign that intell

Re: [Puppet Users] parsing puppet YAML

2013-12-12 Thread Dan White
Continue down the thread: http://www.mail-archive.com/puppet-users@googlegroups.com/msg11545.html and then this should help http://www.skorks.com/2010/04/serializing-and-deserializing-objects-with-ruby/ Puppet::Node is a data structure like Puppet::Transaction::Report and Puppet::Util::Log as

Re: [Puppet Users] yamlyzer

2013-12-12 Thread Stuart Cracraft
Do you personally use something more comprehensive with all fields enabled? > On Dec 12, 2013, at 4:59 PM, Dan White wrote: > > >> On Dec 12, 2013, at 6:20 PM, Stuart Cracraft wrote: >> >> >> Hi everybody, >> >> Is there a command-line program which parses: >> >> puppetmasters*:/var/lib/

Re: [Puppet Users] yamlyzer

2013-12-12 Thread Dan White
On Dec 12, 2013, at 6:20 PM, Stuart Cracraft wrote: > > Hi everybody, > > Is there a command-line program which parses: > > puppetmasters*:/var/lib/puppet/reports/*/*.yaml > > into simple a simple (though lengthy) report perhaps with > column/field/etc. selection based on a straightforward

[Puppet Users] Announce: Hiera 1.3.1-rc1 Now Available

2013-12-12 Thread Melissa Stone
**Release Candidate** Hiera 1.3.1-rc1 --- *Pre-release*: Hiera 1.3.1 is not yet released. - RC1: December 12, 2013. Hiera 1.3.0 Downloads -- Source: https://downloads.puppetlabs.com/hiera/hiera-1.3.1-rc1.tar.gz Availa

Re: [Puppet Users] parsing puppet YAML

2013-12-12 Thread Stuart Cracraft
Where did this go? On Friday, May 21, 2010 9:44:33 PM UTC-7, Luke Baker wrote: > Hey there, > > > > I’ve playing with parsing some of the yaml data that puppet creates. Has > anyone had luck doing this with python or the like? It seems that in every > yaml file, there is a comment at the top

[Puppet Users] yamlyzer

2013-12-12 Thread Stuart Cracraft
Hi everybody, Is there a command-line program which parses: puppetmasters*:/var/lib/puppet/reports/*/*.yaml into simple a simple (though lengthy) report perhaps with column/field/etc. selection based on a straightforward method. Holler if you know of any. I know this was queried by me on thi

Re: [Puppet Users] examples of puppet yaml output

2013-12-12 Thread Stuart Cracraft
Well, obviously, but... What if you do not have a lot of data or want more yaml's for testing against? Will anyone give me all their yaml's? I'd like thousands and thousands to test against. On Thursday, December 12, 2013 1:05:50 PM UTC-8, Ygor wrote: > /var/lib/puppet/reports > on a puppet m

Re: [Puppet Users] examples of puppet yaml output

2013-12-12 Thread ygor
/var/lib/puppet/reportson a puppet master. "Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."Bill Waterson (Calvin & Hobbes) -- You received this message because you are subscribed to the Google Groups "Puppet

[Puppet Users] examples of puppet yaml output

2013-12-12 Thread Stuart Cracraft
Greetings Puppeteers!!! Where can I get a very large set of puppet yaml output? I want to run my new yamlyzer program over it as a test. I don't want to run it against anything small. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubsc

[Puppet Users] Stdlib and Defined Types

2013-12-12 Thread Trevor Vaughan
All, Does anyone know of a way to add a file-centric backtrace to the validate functions in the Stdlib? If you use a validator in a defined type, you end up not having any idea what actually threw the error. Though much has moved to parameterized classes, there are still times when defines are u

Re: [Puppet Users] Can't seem to get modulepath attribute recognized by puppetmasterd

2013-12-12 Thread Jeff Bachtel
Felix, could that above behavior be linked to http://projects.puppetlabs.com/issues/23349 ? That is, could there be a hook/ordering issue? Sprang to mind, anyway. Probably cargo cult. Jeff On Thu, Dec 12, 2013 at 12:36 PM, John Pyeatt wrote: > OK, > Here is something I found with this problem

[Puppet Users] How best to distribute yaml file for custom fact?

2013-12-12 Thread Bret Wortman
I have a yaml file I'd like to distribute to my systems, and it contains some identifiers which help determine where that system is (this _can_ be determined from the IP address, but it's so much nicer to use a custom fact -- we're basically assigning names to our various subnets and storing tho

Re: [Puppet Users] recursive descent

2013-12-12 Thread Stuart Cracraft
Sure does John. Thanks for your interest! Do we know when the Puppet 3.0 book is coming out? It's showing as a very, very long delay at Amazon... On Thursday, December 12, 2013 7:17:17 AM UTC-8, jcbollinger wrote: > > > On Wednesday, December 11, 2013 4:38:02 PM UTC-6, Stuart Cracraft wrote: >

Re: [Puppet Users] Puppet and MCollective

2013-12-12 Thread Jeff Bachtel
I install puppet agent on provision (kickstart, VM template, whatever) and do a puppet agent -t -w 1 (we don't autosign) at the end of the provision script. MCollective in our environment is handled as part of the puppet manifest, so after the agent run the host should be registered in mco. J

Re: [Puppet Users] Can't seem to get modulepath attribute recognized by puppetmasterd

2013-12-12 Thread John Pyeatt
OK, Here is something I found with this problem When I run /etc/init.d/puppetmaster start in node/environment.rb validate_dirs is being passed /etc/puppet/modules:/usr/share/puppet/modules which isn't what I have in /etc/puppet/puppet.conf modulepath=. BUT! if I just do a *touch /etc/puppet

Re: [Puppet Users] using puppet device

2013-12-12 Thread Nan Liu
On Thu, Dec 12, 2013 at 12:08 AM, Markus Burger wrote: > Hi, > > On 11-12-2013 10:51:08, Dan Bode wrote: > > Hi all, > > > > I had a bit of time to research the existing device code to see if I can > > use it for an integration with two specific use cases: > > > > 1. discovery/inventory - access

Re: [Puppet-dev] Re: [Puppet Users] using puppet device

2013-12-12 Thread Nan Liu
On Thu, Dec 12, 2013 at 7:21 AM, Dan Bode wrote: > > > On Thu, Dec 12, 2013 at 1:46 AM, Nan Liu wrote: > >> On Wed, Dec 11, 2013 at 8:51 AM, Dan Bode wrote: >>> >>> I had a bit of time to research the existing device code to see if I can >>> use it for an integration with two specific use cases:

Re: [Puppet Users] Unpleasant puppetlabs experience

2013-12-12 Thread Nikola Petrov
On Sat, Dec 07, 2013 at 10:11:24AM +1300, xav wrote: > On Fri, 2013-12-06 at 11:31 -0500, Jerald Sheets wrote: > > > Please note that the exact same documentation is expected to be used > > for either and people spending crap-tons of money are expected to put > > up with the same issues. This is

[Puppet Users] Puppet and MCollective

2013-12-12 Thread ro001
Hi, I am writing scripts for deployment of our software and I am also using MCollective on linux. I hope to use MCollective in order to reduce the requirement of opening a putty session to each VM and running the puppet agent manually the first time (when its registers/ creates keys etc). T

Re: [Puppet Users] using puppet device

2013-12-12 Thread Dan Bode
On Thu, Dec 12, 2013 at 2:08 AM, Markus Burger wrote: > Hi, > > On 11-12-2013 10:51:08, Dan Bode wrote: > > Hi all, > > > > I had a bit of time to research the existing device code to see if I can > > use it for an integration with two specific use cases: > > > > 1. discovery/inventory - access h

Re: [Puppet-dev] Re: [Puppet Users] using puppet device

2013-12-12 Thread Dan Bode
On Thu, Dec 12, 2013 at 1:46 AM, Nan Liu wrote: > On Wed, Dec 11, 2013 at 8:51 AM, Dan Bode wrote: >> >> I had a bit of time to research the existing device code to see if I can >> use it for an integration with two specific use cases: >> > > I'm not sure what issues are still actively worked on

Re: [Puppet Users] recursive descent

2013-12-12 Thread jcbollinger
On Wednesday, December 11, 2013 4:38:02 PM UTC-6, Stuart Cracraft wrote: > > > http://christian.hofstaedtler.name/blog/2008/11/puppet-managing-directories-recursively.html > > Yes. Do you still have a question here, or does that blog post answer the question sufficiently for you? John -- Y

[Puppet Users] Re: Need help in addressing this error - ERROR OpenSSL::SSL::SSLError: SSL_accept returned=1 errno=0 state=SSLv3 read client certificate A: tlsv1 alert unknown ca

2013-12-12 Thread jcbollinger
On Thursday, December 12, 2013 3:14:09 AM UTC-6, Dhanarajan Ponnurangam wrote: > > > Hi , > > I am new to this puppet. I am implementing a network where my cisco switch > will contact the puppet server for getting the configuration. > I tried installing open source puppet and was successful in

[Puppet Users] puppet nagios module integration

2013-12-12 Thread Esshan Gupta
Hi all, I am pretty much confused regarding nagios integration with puppet, I have some question: 1) Do we need to install nagios separately. 2) Can we manage nagios through puppet UI. Some instructions to proper integration of nagios with puppet will be helpful. Thanks in advance, Esshan -

Re: [Puppet Users] pupplet-labs/firewall module errors

2013-12-12 Thread Tomas Barton
I'm getting the same error. Any progress on this? Thanks, Tomas On Tuesday, 5 November 2013 21:42:26 UTC+1, James Loosli wrote: > > I'm getting this same error, but for me it shows up from a basic puppet > resource firewall; > > root@drawer:/etc/puppet/environments/development/modules# puppet re

[Puppet Users] Re: storeconfigs errors and other beginner questions

2013-12-12 Thread jcbollinger
On Wednesday, December 11, 2013 2:31:06 PM UTC-6, Pierre-Andre Malbrough wrote: > > Hey guys, > > Im new to puppet and running into challenges getting a puppet module > installed. > > so I've installed a module > (puppet-ossec), > and I want to install it

[Puppet Users] Re: using multiple facter values with hiera

2013-12-12 Thread Paul Archer
On Wednesday, December 11, 2013 11:03:33 PM UTC-6, William Leese wrote: > > > > Facter was designed before hiera. It serves a larger purpose than just > usage as hiera hierarchy conditionals. > > I get that. > Do I understand correctly that your custom fact which "spits out a list of > ser

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread shlo . afgin
Sorry I had a spelling mistake in the hostname. Now the manifest file work okay with the $hostname variable. I left with the problem with Dashboard that don't give me the 'Inventory' details. Sorry & Thanks again for the promptly answers. On Thursday, December 12, 2013 1:59:52 PM UTC+2, shl

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread shlo . afgin
In the end of the file I add : node default { } Thanks again On Thursday, December 12, 2013 12:45:49 PM UTC+2, Felix.Frank wrote: > > On 12/12/2013 11:42 AM, shlo@gmail.com wrote: > > case $hostname { > >'puppetagent': {include sendmail} > > } > > Puppet

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread Felix Frank
On 12/12/2013 11:42 AM, shlo.af...@gmail.com wrote: > case $hostname { >'puppetagent': {include sendmail} > } > Puppet don't use the value in $hostname. Is this in the top scope, i.e. not inside a class {}, node {} or define {} block? > About the Dashboard, I use Puppet

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread shlo . afgin
Hi, I add 'node default {}'. Now I don't get any errors but it don't execute the case $hostname { 'puppetagent': {include sendmail} } Puppet don't use the value in $hostname. I understood that it's not recommended way to use $hostname as variable, but it should work. A

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread Felix Frank
Ah, OK, you lack a default node. The puppet master expects to find some node, a simple workaround could be 'node default {}' anywhere in site.pp or node.pp. But, as Jeff pointed out - don't do that, there is no reason to prefer the silly-ish case pattern in this context. As gor the 403 error wrt.

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread shlo . afgin
Hi, 1. When I have in node.pp: case $hostname { 'puppetagent': {include sendmail} } I got the error: *Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with 'puppetagent.weizmann.ac.il

[Puppet Users] Need help in addressing this error - ERROR OpenSSL::SSL::SSLError: SSL_accept returned=1 errno=0 state=SSLv3 read client certificate A: tlsv1 alert unknown ca

2013-12-12 Thread Dhanarajan Ponnurangam
Hi , I am new to this puppet. I am implementing a network where my cisco switch will contact the puppet server for getting the configuration. I tried installing open source puppet and was successful in pushing down the configurations. I wanted then to try the same exercise with puppet enterpr

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread Felix Frank
This is getting confusing. Please share what your nodes.pp looks like now and what error that yields. Thanks, Felix On 12/12/2013 10:09 AM, shlo.af...@gmail.com wrote: > I get the mention error when I try to use the facter and use $hostname > in my manifest file node.pp -- You received this me

Re: [Puppet Users] Pattern question for providers

2013-12-12 Thread Felix Frank
On 12/09/2013 06:12 PM, Jeff Bachtel wrote: > When creating a provider that uses a command not in PATH, what is the > best-practice pattern for case'ing out different potential locations? As > an example, the puppetlabs rabbitmq pupmod has a rabbitmqplugins > provider that falls down on CentOS usin

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread shlo . afgin
Hi, When I write the name of the agent explicitly : node puppetagent.yourdomain { include sendmail } it's work. I get the mention error when I try to use the facter and use $hostname in my manifest file node.pp Thanks a lot. On Thursday, December 12, 2013 10:55:33 AM UTC+2,

Re: [Puppet Users] Can't seem to get modulepath attribute recognized by puppetmasterd

2013-12-12 Thread Felix Frank
Yes. The agent does default to environment=production if not specified otherwise. Your [production] should match your [main] wrt. modulepath etc. HTH, Felix On 12/11/2013 09:59 PM, John Pyeatt wrote: > Could it be because my puppet.conf has a [production], [test] and > [development] environment

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread Felix Frank
Hi, please be aware that "puppetagent.yourdomain" is a contrived example. Try "node puppetagent.weizmann.ac.il" or just "node puppetagent". HTH, Felix On 12/12/2013 07:35 AM, shlo.af...@gmail.com wrote: > I tried it and now I get: > Error: Could not retrieve catalog from remote server: Error

Re: [Puppet Users] using puppet device

2013-12-12 Thread Markus Burger
Hi, On 11-12-2013 10:51:08, Dan Bode wrote: > Hi all, > > I had a bit of time to research the existing device code to see if I can > use it for an integration with two specific use cases: > > 1. discovery/inventory - access hardware inventory and store it somewhere > where it can be retrieved.