[Puppet Users] CentOS 7.1 : facter problem

2015-04-01 Thread Alexandre Barth
OS informations are broken using facter in CentOS 7.1 : os variable is not populated as it should be, and so operatingsystemmajrelease and operatingsystemrelease are not created at all. I think this comes from the /etc/redhat-release file in centos 7.1 In Centos 7.0, /etc/redhat-release is a

[Puppet Users] Re: [Announce] Micro-puppet v0.0.2 now available with new code extinguisher feature

2015-04-01 Thread Raphink
This is great! I was looking forward to something that would be more useable than the puppet-lint plugins to migrate my Puppet code, and this is just so simple and efficient! Thank you! On Wednesday, April 1, 2015 at 10:00:56 AM UTC+2, Corey Osman wrote: On the heels of the previously

Re: [Puppet Users] Re: [Announce] Micro-puppet v0.0.2 now available with new code extinguisher feature

2015-04-01 Thread Martin Alfke
I really like the approach of m::in { auto: } and m::cf { auto: } to have my systems up and running in seconds. I just think of my new configuration to change and everything works. ;-) no more manual work. more beertime. And: the future fix script works as documented. ;-) happy hacking!! On 01

[Puppet Users] Looking for recommendations on double DTAP environments

2015-04-01 Thread Walter Heck
Hi all, I'm working on an environment and encounter the same issue I have encountered a couple of times before. This'll be a bit of a long one, so brace yourselves ;) Situation: We have a large managed hosting enterprise organisation where we're implementing puppet.The tooling team develops

[Puppet Users] Re: CentOS 7.1 : facter problem

2015-04-01 Thread Alexandre Barth
centos-release package has been updated this night and fixes the problem :) Le mercredi 1 avril 2015 09:59:14 UTC+2, Alexandre Barth a écrit : OS informations are broken using facter in CentOS 7.1 : os variable is not populated as it should be, and so operatingsystemmajrelease and

Re: [Puppet Users] Looking for recommendations on double DTAP environments

2015-04-01 Thread Garrett Honeycutt
On 4/1/15 11:33 AM, Walter Heck wrote: Hi all, I'm working on an environment and encounter the same issue I have encountered a couple of times before. This'll be a bit of a long one, so brace yourselves ;) Situation: We have a large managed hosting enterprise organisation where we're

Re: [Puppet Users] Re: nodes set to environment 'none'

2015-04-01 Thread Romain
Ok thank you! 2015-04-01 3:57 GMT+02:00 Tim Dunphy bluethu...@gmail.com: Hey guys, Yeah, that's correct. I'm using the Foreman in my setup. I actually did a reinstall of the foreman and that got rid of this issue. So I'm sorry if that's not very informative. But that's how I solved it.

[Puppet Users] [Announce] Micro-puppet v0.0.2 now available with new code extinguisher feature

2015-04-01 Thread Corey Osman
On the heels of the previously announced tiny-puppet (https://github.com/example42/puppet-tp.git) now comes micro-puppet. A shortened version of tiny-puppet for the keystroke impaired. But with Micro-puppet there is so much more. Version 0.0.2 now brings a new feature called code

[Puppet Users] Re: Custom facts ordering / full package name

2015-04-01 Thread jcbollinger
On Tuesday, March 31, 2015 at 5:13:07 PM UTC-5, Luan Cestari wrote: Hi everybody. I got a question about puppet. I have a case which I would like to run all the statements in order and one of them is a custom fact that I created and the return is assigned to a variable but I got an

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

2015-04-01 Thread jcbollinger
On Tuesday, March 31, 2015 at 10:31:14 AM UTC-5, Dhaval wrote: Thanks, I have seen some of those, if someone can brief me when to use what appreciate that .. Hiera is a framework for maintaing machine- and site-specific data outside your Puppet manifests, and for serving it to the catalog

[Puppet Users] rspec testing dependancies

2015-04-01 Thread choffee
Hi, I am having some trouble testing some classes using rspec. I have three classes. init, service and config. service contains just the service settings with a class setting for service name eg. class tc::service ( $service_name = tc::service_name ) { service {'tc': service_name

[Puppet Users] Upgrading from 0.25.1 to 3.7.4

2015-04-01 Thread James Perry
I have been tasked to upgrade puppet 0.25.1 to 3.7.4. There has been a lot of past admins tweaking this puppet server and most of the existing modules are all ad-hoc creations. I want to ensure I do not miss any expected dependencies, but I also do not have months to manually traverse the

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

2015-04-01 Thread Guy Matz
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: unless defined(Class['daemontools']) { notify { 'I Do not see daemontools': }

Re: [Puppet Users] Upgrading from 0.25.1 to 3.7.4

2015-04-01 Thread Hunter Haugen
Wow, that's a pretty big jump :). It's not super terribly helpful, but each node should have a classfile that is often in the $vardir/classes.txt or $statedir/classes.txt that contains all the classes a node has applied to it in the last puppet run. I think `puppetd --configprint classfile` on a

Re: [Puppet Users] Upgrading from 0.25.1 to 3.7.4

2015-04-01 Thread Martin Alfke
Hi James, a horrible task (I am still busy at a customer upgrading the puppet DSL code from 2.7.23). You want to get rid of: - non-scoped variables (in manifests, modules and templates) - import in class files You might need to: - clean up node classification - rewrite classes to have

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

2015-04-01 Thread Dhaval
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 difference in data as per the defined profile. Thanks

Re: [Puppet Users] proper way to mirror apt.puppetlabs.com?

2015-04-01 Thread Taher Bohari
Hello, I want to mirror puppet packages locally. I am trying to mirror it using cobbler reposync. But I am getting the error as http://apt.puppetlabs.com/ubuntu/dists/lucid/

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

2015-04-01 Thread Guy Matz
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: unless defined(Class['daemontools']) { notify { 'I Do not see daemontools': }

Re: [Puppet Users] rspec testing dependancies

2015-04-01 Thread Gareth Rushgrove
On 1 April 2015 at 15:37, choffee chof...@gmail.com wrote: Hi, I am having some trouble testing some classes using rspec. I have three classes. init, service and config. service contains just the service settings with a class setting for service name eg. class tc::service (

[Puppet Users] Re: Running classes in a certain order

2015-04-01 Thread Brian Morris
Hello Jason, Instead of treating each object as a separate class, what do you think about putting them all in one class? This would allow you to then control the flow of objects within the class by ordering them something like this: Package[IIS] - File[site config] - File[site content] -

[Puppet Users] Re: Announce: PuppetDB 2.3.2 is now available!

2015-04-01 Thread Pete Brown
That was quick! Thanks gang! On 2 April 2015 at 09:45, Wyatt Alt wy...@puppetlabs.com wrote: PuppetDB 2.3.2 - April 1, 2015 PuppetDB 2.3.2 Downloads Available in native package format in the release repositories at: http://yum.puppetlabs.com and

[Puppet Users] Announce: PuppetDB 2.3.2 is now available!

2015-04-01 Thread Wyatt Alt
PuppetDB 2.3.2 - April 1, 2015 PuppetDB 2.3.2 Downloads Available in native package format in the release repositories at: http://yum.puppetlabs.com and http://apt.puppetlabs.com For information on how to enable the Puppet Labs repos, see:

Re: [Puppet Users] Running classes in a certain order

2015-04-01 Thread Felix Frank
On 04/01/2015 09:03 PM, Jason Gagui wrote: How would I make sure the four classes run in the specified order above? Hi, an intermittent reboot implies that the three latter classes *cannot* be evaluated during the same agent transaction as the first one. To implement this, add a custom fact

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

2015-04-01 Thread Vince Skahan
On Tuesday, March 31, 2015 at 12:48:40 AM UTC-7, Brad Knowles wrote: When running the eval copy of PE 3.7.2 on AWS, we have found that you can boot the master if the VM is an m3.medium (3.5GB), but you run into memory problems that cause the system to be unreliable. If we use m3.larges

[Puppet Users] Re: adding new users to /etc/sudoers

2015-04-01 Thread Brian Morris
Another thing to think on is adding a group to sudoers which covers your users needs, and then simply adding users to that group. By proxy, this also allows you to dump the users belonging to that group out to a facter for referencing and reporting. Brian On Monday, March 30, 2015 at

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

2015-04-01 Thread Guy Matz
I've seen some folks say this should work: if defined(::class::subclass) but it doesn't seem to work for me. Again, any thoughts would be greatly appreciated! Regards, Guy On Wed, Apr 1, 2015 at 11:26 AM, Guy Matz guym...@gmail.com wrote: Hi! I have a process that is controlled by

[Puppet Users] Running classes in a certain order

2015-04-01 Thread Jason Gagui
Hello, I created a module to perform the following on a windows server 2012 R2 system: 1. JoinDomain_then_reboot.pp Then after reboot: 1. Install_IIS.pp 2. Create_website.pp 3. copy_sitecontent.pp I want to make sure those four classes run in the order specified above. I was able to

[Puppet Users] Re: Problem installing modules in PE 3.7.2

2015-04-01 Thread Jason Gagui
Hi Mark, You need to run the puppet command as sudo. sudo /opt/puppetlabs/bin/puppet module install module-name doing so will install modules in the correct path. /etc/puppetlabs/puppet/environments/production/modules/ I am using RHEL 7 and I normally run the command: sudo su - before

Re: [Puppet Users] proper way to mirror apt.puppetlabs.com?

2015-04-01 Thread Matthaus Owens
Taher, The readme (http://apt.puppetlabs.com/README.txt) suggests using `rsync -av --copy-links --del rsync://apt.puppetlabs.com/packages/apt/ /var/apt/` to mirror the apt repos, which should work. Hope that helps. On Wed, Apr 1, 2015 at 1:32 AM, Taher Bohari taher.boh...@gslab.com wrote: