Re: [Puppet Users] What's difference between roles and profiles, ENC and Hiera

2015-04-02 Thread Craig Dunn
On Wed, Apr 1, 2015 at 5:23 PM, Dhaval wrote: > Thanks for your time in explaining, what i understand is "roles and > profiles" is different from Hiera and ENC which is used for providing data > only. Let me search for example where Hiera is used and roles and profiles > are defined to make diffe

[Puppet Users] Re: How to check if a class is being used?

2015-04-02 Thread paul.gomersbach
This is working for me: if ! defined(Class['ops_logging']) { class { 'ops_logging': collectives => $collectives, middleware=> $rabbithost, metrics => $metrics, configuration => $configuration, monitor => $monitor, } } Op woensdag 1 apri

Re: [Puppet Users] Re: Status of Data in modules

2015-04-02 Thread Fraser Goffin
Here's a simple example that works for me :- First you obviously have the ripienaar/module_data module installed and available to your puppet apply (I'm using masterless puppet). My folder structure :- - puppet | modules |--- sonarqube |-- data |- hiera.yaml |---

Re: [Puppet Users] How to check if a class is being used?

2015-04-02 Thread Dan White
There is something basically wrong with this, IMHO If you need to do this, it means that there could be more than one place to instantiate the class, and we all know the problems caused by doing it more than once. You may want to consider refactoring to separate the class instantiation from th

Re: [Puppet Users] Re: How to check if a class is being used?

2015-04-02 Thread Guy Matz
Thanks!! I'm not sure that solves my problem, though .. . .and maybe I'm using "defined" incorrectly . . . what I really want is a way to check to see if a class has been included or assigned . . . . then I would like to make a decision based on that info. Does defined tell me if the class

Re: [Puppet Users] Re: How to check if a class is being used?

2015-04-02 Thread Guy Matz
Thanks!! I'm not sure that solves my problem, though .. . .and maybe I'm using "defined" incorrectly . . . what I really want is a way to check to see if a class has been included or assigned . . . . then I would like to make a decision based on that info. Does defined tell me if the class

[Puppet Users] Re: How to check if a class is being used?

2015-04-02 Thread jcbollinger
On Wednesday, April 1, 2015 at 10:15:45 AM UTC-5, Guy Matz wrote: > > Hi! I have a process that is controlled by daemontools on some servers, > and by init on other (i know, i know) and I need a way to have a Service > definition when daemontools is not in the run. > > I've tried this: > u

Re: [Puppet Users] rspec testing dependancies

2015-04-02 Thread choffee
Thanks for the info Gareth. I have managed to get it working as you suggested. Lots of other good stuff in that docker module as well. I still feel that for true spec testing I should be able to test each class standalone but maybe I am trying to break things down too much. Thanks john On Wed

Re: [Puppet Users] puppet enterprise free eval hardware requirements

2015-04-02 Thread Brad Knowles
On Apr 1, 2015, at 6:57 PM, Vince Skahan wrote: > Thanks - for under 10 clients is 100GB for storage really needed ?Would > more like 50 be good enough ? Sorry, I haven’t looked at the storage requirements. > Thinking of kickstarting up a centos7 host under qemu-kvm (on a centos7 host) >

[Puppet Users] Best approach to creating wrapper classes

2015-04-02 Thread Scott Jaffa
Hi, I'm working in an environment where certain parameters need to be enforced per security requirements.. The ways we've identified to do this are: 1) Put the specific settings in the profile: Advantages: Utilize stock roles and profiles pattern, plenty of documentation and guides online.

Re: [Puppet Users] Best approach to creating wrapper classes

2015-04-02 Thread Christopher Wood
You might be interested in this thread: https://groups.google.com/forum/#!topic/puppet-users/nmVQQA6G-f8 On Thu, Apr 02, 2015 at 12:23:19PM -0700, Scott Jaffa wrote: >Hi, >I'm working in an environment where certain parameters need to be enforced >per security requirements..   > >

[Puppet Users] Announce: Facter 2.4.3 available

2015-04-02 Thread Will Hopper
Facter 2.4.3 is an All-In-one Agent support release in the Facter 2.4 series that also includes two improvements to performance, as well as multiple bug fixes. *AIO Updates* In this release, we've added a new external fact directory for the root user, `/opt/puppetlabs/facter/facts.d`. The co