[Puppet Users] Puppetlabs/Splunk Module Help!

2016-02-15 Thread Joseph Karns
Ok...so I'm trying to get the puppetlabs/splunk module to work with Roles and Profiles via Hiera. This is what I have. *hieradata file* splunk::params::version: '6.3.3' splunk::params::build: 'f44afce176d0' splunk::params::src_root: 'puppet:///software/splunk' <- Mapped on Puppetmaster using f

Re: [Puppet Users] testing a puppet master

2016-02-15 Thread Toni Schmidbauer
Jeff Abrahamson writes: > This is the puppetserver that is included in PE but not in the open > source version? (We're using the open source puppet atm.) puppetserver is also available in the opensource version (which we are using as well). e.g. for puppet 3 on rhel 7 it's available via http://yu

Re: [Puppet Users] testing a puppet master

2016-02-15 Thread Jeff Abrahamson
On 15 February 2016 at 17:44, Toni Schmidbauer wrote: > Jeff Abrahamson writes: > > 1. The puppet master is running under apache2. I assume it's healthy, > > in so much as it doesn't complain and I'm serving on 8140. But I'd > > love a better way to confirm that than absence of errors. Is there

Re: [Puppet Users] testing a puppet master

2016-02-15 Thread Toni Schmidbauer
Jeff Abrahamson writes: > 1. The puppet master is running under apache2. I assume it's healthy, > in so much as it doesn't complain and I'm serving on 8140. But I'd > love a better way to confirm that than absence of errors. Is there a > way to enquire about the master's health? i would strongly

[Puppet Users] Re: Module layout

2016-02-15 Thread jcbollinger
On Saturday, February 13, 2016 at 4:53:57 PM UTC-6, Matthew Ceroni wrote: > > Follow up to this regarding variable scope. > > Example: > > class test1 { > > $var1 = "some value" > > include test1::child > > } > > class test1::child { > > notify { "$test1::var1": } > > file { "/tmp/test":

Re: [Puppet Users] Syntax problem, if/case in class section for $hostname

2016-02-15 Thread jcbollinger
On Monday, February 15, 2016 at 7:33:47 AM UTC-6, Denny Schierz wrote: > It seems to be impossible to use if/case/whatever as selector for a > parameter. > > The 'if' and 'case' statements are *statements*, not expressions. They do not produce a value. As R.I. observed, if you need a condi

Re: [Puppet Users] Re: Nagios XI + Puppet?

2016-02-15 Thread Devesh mehta
Hi Sam and Jef, I am also trying to create the Puppet Module for Nagios XI. I am able to genterate the individual config file for each host & service in import directory. I have create a exec block execue the reconfigure script and subscribe it to import directory resource. But the issue is,

[Puppet Users] testing a puppet master

2016-02-15 Thread Jeff Abrahamson
[Apologies if this posts twice. I'm pretty sure I messed up posting earlier, and it's now been two days without the message appearing on the web view .] I'm new to puppet. I read a bunch, managed to write a

Re: [Puppet Users] Syntax problem, if/case in class section for $hostname

2016-02-15 Thread R.I.Pienaar
- Original Message - > From: "Denny Schierz" > To: "puppet-users" > Sent: Monday, February 15, 2016 2:33:47 PM > Subject: Re: [Puppet Users] Syntax problem, if/case in class section for > $hostname > hi, > > in the last 5 min I was able to solve my problem. The problem was that I > w

Re: [Puppet Users] Syntax problem, if/case in class section for $hostname

2016-02-15 Thread Denny Schierz
hi, in the last 5 min I was able to solve my problem. The problem was that I wanted to override a parameterized class .. my solution is is now: class users::fbar::params { if ($::hostname =~ /^devpc21+(\d+)./) { $groups = [ 'admin' ] } else { $groups = [ 'devel' ] } } cl

Re: [Puppet Users] Syntax problem, if/case in class section for $hostname

2016-02-15 Thread Henrik Lindberg
On 2016-15-02 8:37, Denny Schierz wrote: hi, I try to get an if/case thing working, but I always get a syntax error. We have something like that for an user: modules/users/manifests/fbar.pp class users::fbar ( $ensure = present, $groups = [ 'develop' ] ) { case $

Re: [Puppet Users] Testing Puppet dsl functions

2016-02-15 Thread Henrik Lindberg
On 2016-15-02 12:12, Alessandro Franceschi wrote: Hi all, I've started with some excitement to play with functions written in Puppet DSL, very simple things for the moment that do their work as expected: https://github.com/example42/puppet-tp/commit/d6973233bea27661fc91b475de16f3d0bbc9690c still

[Puppet Users] Testing Puppet dsl functions

2016-02-15 Thread Alessandro Franceschi
Hi all, I've started with some excitement to play with functions written in Puppet DSL, very simple things for the moment that do their work as expected: https://github.com/example42/puppet-tp/commit/d6973233bea27661fc91b475de16f3d0bbc9690c still I'm having issues with Travis and rspec Travis te