[Puppet Users] hiera & hiera-gpg

2013-04-10 Thread Stefan Heijmans
Hello, We are looking into using hiera with hiera-gpg, installed puppet 3.1.1 & hiera 1.2.0 with rpm's. Installing the hiera-gpg gem, it also depends on the hiera gem (used version 1.2.0). The hiera rpm installs under /usr/lib/ruby/site_ruby/1.8/ The hiera gem installs under /usr/lib/ruby/gem

[Puppet Users] Re: How to optimize puppet class/module code ?

2013-04-10 Thread Stefan Heijmans
You could use sourceselect in source; http://docs.puppetlabs.com/references/stable/type.html#file or use parameter in the source statement; source => "puppet:///modules/syslog/syslog.conf_${::$lsbmajdistrelease}", and create 2 syslog.conf files in the files directory; syslog.conf_5 syslog.conf_

[Puppet Users] Re: How to optimize puppet class/module code ?

2013-04-10 Thread Stefan Heijmans
bad cp; source => "puppet:///modules/syslog/syslog.conf_${::lsbmajdistrelease}", -- 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 puppet-users+unsubscr...@goog

[Puppet Users] Defining custom resource types wrapping exec resources and using optional “unless”

2013-04-10 Thread christian . le . flamm
The following code example is purely academical but it illustrates my question pretty well. define touch($file=$title, $unless='/bin/false') { exec { "/bin/touch ${file}": unless => $unless } } If I define my own resource type that wraps another *exec* resource and I want to *add

[Puppet Users] Re: Nagios Module Facter Lib 'mountpoints.rb' Causing Windows Clients to Not Operate Properly

2013-04-10 Thread Klavs Klavsen
I think it's: ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin" That gives you problems. don't set ENV['PATH'].. if you really need to set path (the path set there is unnecessary AFAIK), you can set it with the with_env function. So the ENV.. setting. (it is inherited to all other facts and pup

[Puppet Users] Re: testing static manifests

2013-04-10 Thread Bernardo Costa
Hey Joe ! I am kind of new on developing configs on puppet. I have already taken a look at rspec-puppet. It looks fine but doesn't seems to be what I really need. These two passages above tells me that rspec-puppet is related to module testing. What it automates is a test like this: whether you

[Puppet Users] Re: Realize a virtual parametriced class

2013-04-10 Thread jcbollinger
On Tuesday, April 9, 2013 5:20:36 AM UTC-5, Israel Calvete wrote: > > Hi, > > I try some like this... > > I need virtual parametriced class. > Why do you think you need such a thing? > > *@class {backup::client:* > * backup => xx* > *}* > > Is posible to do something like this? If >

[Puppet Users] Re: Realize a virtual parametriced class

2013-04-10 Thread jcbollinger
On Wednesday, April 10, 2013 8:11:49 AM UTC-5, jcbollinger wrote: > > I advise you to thinking of them as resources at all. > > That is, I advise you to *avoid* thinking of them as resources at all. John -- You received this message because you are subscribed to the Google Groups "Puppet Use

[Puppet Users] Re: puppet uninstall package

2013-04-10 Thread jcbollinger
On Tuesday, April 9, 2013 5:50:28 PM UTC-5, Francesco wrote: > > Now eureka I have uninstall screen with rpm and I have created the > following > I begun from screen installation again :))) > /etc/puppet/modules/screen/manifests/init.pp > > class screen { > > package { 'screen': > ensure

Re: [Puppet Users] Puppet mount fails due to kernel module

2013-04-10 Thread Sergio Jimenez
Hi! just a thought, I don't have any place to test it and it's been a while since I had to deal with SELinux...but check SELinux booleans you might find something there that is not allowing puppet agent to use mount. IIRC you could list all of them with "semanage boolean -l". sjr On Wednesday

[Puppet Users] Re: puppet inverts dependencies?

2013-04-10 Thread jcbollinger
On Tuesday, April 9, 2013 2:35:07 PM UTC-5, Mike Power wrote: > > Have anyone of you every seen puppet invert a dependency? > > > Say I have a class like so: > class jenkins { > user {"jenkins": > ensure => present, > } > } > > That should form a dependency like s

[Puppet Users] Re: How to optimize puppet class/module code ?

2013-04-10 Thread jcbollinger
On Tuesday, April 9, 2013 4:47:40 AM UTC-5, Gavin Williams wrote: > > Hi there, > > I think you're quickest win for making the code cleaner and easier would > be to create a ::params class, which sets the correct values for package, > file and service based on your distro. > > A ::params clas

[Puppet Users] Re: Defining custom resource types wrapping exec resources and using optional “unless”

2013-04-10 Thread jcbollinger
On Wednesday, April 10, 2013 4:26:19 AM UTC-5, christian...@gmail.com wrote: > > The following code example is purely academical but it illustrates my > question pretty well. > >define touch($file=$title, $unless='/bin/false') { >exec { "/bin/touch ${file}": unless => $unless } >

[Puppet Users] Re: Defining custom resource types wrapping exec resources and using optional “unless”

2013-04-10 Thread christian . le . flamm
Never heard of *undef *before - sounds great! 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 puppet-users+unsubscr...@googlegroups.com. To post to this g

[Puppet Users] example42 mcollective - setting version produces an error

2013-04-10 Thread Larry Fast
When I define the mcollective_version variable using hiera I get the following error. There is no indication where the problem has occurred. Error: Failed to apply catalog: You cannot specify more than one of content, source, target If I set this variable in code it pretents to work but I think

[Puppet Users] Re: hiera & hiera-gpg

2013-04-10 Thread llowder
On Wednesday, April 10, 2013 3:45:39 AM UTC-5, Stefan Heijmans wrote: > > Hello, > > We are looking into using hiera with hiera-gpg, installed puppet 3.1.1 & > hiera 1.2.0 with rpm's. > Installing the hiera-gpg gem, it also depends on the hiera gem (used > version 1.2.0). > > The hiera rpm inst

[Puppet Users] Re: example42 mcollective - setting version produces an error

2013-04-10 Thread Ellison Marks
The error you're getting indicates an incorrectly specified resource. Please post your manifest to make it easier to debug. On Wednesday, April 10, 2013 8:27:20 AM UTC-7, Larry Fast wrote: > > When I define the mcollective_version variable using hiera I get the > following error. There is no ind

[Puppet Users] Re: example42 mcollective - setting version produces an error

2013-04-10 Thread Larry Fast
I'm guessing that the problem is in example42/mcollective/manifests/init.pp... class mcollective ( $install_dependencies = params_lookup( 'install_dependencies' ), $stomp_host = params_lookup( 'stomp_host' ), $stomp_port = params_lookup( 'stomp_port' ), $stomp_user

[Puppet Users] Re: Puppet parameterized class - include for declaration?

2013-04-10 Thread Shantanu
On Tuesday, April 9, 2013 8:00:40 AM UTC-5, jcbollinger wrote: > > > > On Monday, April 8, 2013 4:10:03 PM UTC-5, Shantanu wrote: >> >> >> The parameterized classes guide mentions that a parameterized class is >> declared using following syntax [1]: >> >> class {'classname': } >> >> >> But th

Re: [Puppet Users] puppet 3.x, rubygem pkg can't be found on a RHEL 6.4

2013-04-10 Thread Yusup Ashrap
I have having the same problem with install puppet on redhat 6.2. -- 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 puppet-users+unsubscr...@googlegroups.com. To p

[Puppet Users] Re: ssh keymaster new key notification

2013-04-10 Thread Chris Denneen
Try this: http://www.warden.pl/2012/09/05/puppet-send-an-email-to-the-client-when-a-new-key-is-generated/ On Wednesday, August 1, 2012 10:39:06 AM UTC-4, Radosław Antoniuk wrote: > > I am using the key rotation mechanism of ssh::auth, along these guidelines. > > > ssh::auth::key {[ "alice", "bob"

[Puppet Users] Managing multiple nagios servers with puppet and virtual resources

2013-04-10 Thread Phil Cole
Hi, For several years, we have @work had a puppet environment where when we add a new host/node, some basic monitoring is fed through to a nagios server using virtual resources and an old nagios class which either someone here wrote themselves, or found on the internet at the time. We are tr

[Puppet Users] External Facts on Windows with Powershell

2013-04-10 Thread Grant Trevor
I'm trying to follow the steps on http://docs.puppetlabs.com/guides/custom_facts.html in regards to declaring External Facts using powershell. I've created a simple .ps1 file outputing a single key pair eg: Write-Host "mykey=123456", however if I run Facter from the Command Prompt(with puppet)

Re: [Puppet Users] example42 mcollective - setting version produces an error

2013-04-10 Thread Matthew Schmitt
Pretty sure you could use use 'version' in both your node declaration or in hiera. Matt On Apr 10, 2013, at 1:48 PM, Larry Fast wrote: > I'm guessing that the problem is in example42/mcollective/manifests/init.pp... > > class mcollective ( > $install_dependencies = params_lookup( 'install_d

Re: [Puppet Users] Managing multiple nagios servers with puppet and virtual resources

2013-04-10 Thread Dave Nash
At work we add a tag for when setting up the nagios checks in puppet tag "nagios_env:$environment" then when we realize or export the check We link the generation to the tag Nagios_serviceescalation <<| tag == "nagios_env:$environment" |>> { require => Service["nagios"],

Re: [Puppet Users] Managing multiple nagios servers with puppet and virtual resources

2013-04-10 Thread Peter Brown
Hi Phil, The monitoring module I wrote does this very well. It is on puppet forge if you want to have a look for some inspiration or install it and go from there :) http://forge.puppetlabs.com/rendhalver/monitoring The docs are pretty comprehensive now and explain how it all works. I basically se

Re: [Puppet Users] External Facts on Windows with Powershell

2013-04-10 Thread Justin Stoller
This only works in Facter 1.7, what do you get when you run `facter --version`? Have you double checked http://docs.puppetlabs.com/guides/custom_facts.html#enabling-powershell-scriptsto ensure that the powershell scripts are enabled? - Justin On Tue, Apr 9, 2013 at 8:44 AM, Grant Trevor wrot

[Puppet Users] Anyone managed to integrate Ambari/Hortonworks with an existing puppet installation?

2013-04-10 Thread John Warburton
Hi All We're investigating the Hortonworks Hadoop Data Platform. It uses the Apache Ambari installer, and we are running into problems as the installation notes (http://hortonworks.com/hdp110-hmc-quick-start-guide/) for the application say (and I kid you not): *Remove or disable any existing Pupp

Re: [Puppet Users] Anyone managed to integrate Ambari/Hortonworks with an existing puppet installation?

2013-04-10 Thread Peter Brown
That sounds a bit restrictive. I would be investigating whether you can add your modules and manifests to the puppet master they use for the management server. On 11 April 2013 10:22, John Warburton wrote: > Hi All > > We're investigating the Hortonworks Hadoop Data Platform. It uses the > Apa

[Puppet Users] How to enable hiera debug when running puppet 3.0 with apache/passenger?

2013-04-10 Thread Schofield
What's the trick to displaying hiera debug messages when the puppet master is running under passenger? I have uncommented 'ARGV << "--debug"' in the config.ru file but that doesn't help. Not sure where to go to next. Currently running puppet 3.0. -- You received this message because you are