[Puppet Users] Hiera lookup function doesnt fail if attr isnt found

2015-09-18 Thread Joao Morais
Hello list. I am using the hiera() lookup function in order to query some few attributes from a http backend. Something like this: common.yaml --- ... class::attr: "%{hiera('other::attr')}" This works very well if other::attr is defined, but an empty string is returned in the loo

Re: [Puppet Users] Package install_options

2015-09-18 Thread Garrett Honeycutt
On 9/18/15 1:55 PM, Alexander Dacre wrote: > Hi, > > I'm having some difficulty with specifying a nogpgcheck option when > installing custom RPM packages via Puppet. The problem is that the > install_options do not get picked up by the agent. > > I've tried the following syntax: > > package { bl

[Puppet Users] Package install_options

2015-09-18 Thread Alexander Dacre
Hi, I'm having some difficulty with specifying a nogpgcheck option when installing custom RPM packages via Puppet. The problem is that the install_options do not get picked up by the agent. I've tried the following syntax: package { blah: ensure => latest, install_options => [ '--nogpgchec

Re: [Puppet Users] Write a basic custom module for puppet

2015-09-18 Thread Gareth Rushgrove
On 17 September 2015 at 15:27, Arnau wrote: > Hi, > > https://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html > > Maybe start with: > > puppet module generate user-modulename > puppet module generate assumes a pure Puppet module, rather than one using the Ruby API. The

Re: [Puppet Users] Puppet method to subtract two arrays?

2015-09-18 Thread Sean
My woes were definitely due to the data in the parameters being treated as strings throughout. Basically, for whatever reason even when using any2array(), the issue came down to all the desired individual elements were being treated as a single string that became element 0 of an array... Effec

[Puppet Users] Re: puppet cert clean unrevokes old revoked certs?

2015-09-18 Thread jcbollinger
On Thursday, September 17, 2015 at 7:27:59 AM UTC-5, Kostis Fardelas wrote: > > Hi, > I revoke a host cert: > puppet cert --revoke host1.example.com > > I verify that the host1 cert was added to the crl, restarted puppetmaster > and the client is indeed banned. > > I clean another's host cert: >

Re: [Puppet Users] Some environments not working in puppet

2015-09-18 Thread Martin Alfke
On 18 Sep 2015, at 10:53, Vishal Goel wrote: > When I kill it and restart the puppetmaster, it is again created. And how do > i make sure that only passenger/ruby webrick runs the puppet master? service puppetmaster will start the ruby process This is the one you want to disable. service apac

Re: [Puppet Users] Some environments not working in puppet

2015-09-18 Thread Vishal Goel
When I kill it and restart the puppetmaster, it is again created. And how do i make sure that only passenger/ruby webrick runs the puppetmaster? On Friday, September 18, 2015 at 1:40:22 PM UTC+5:30, Martin Alfke wrote: > > > On 18 Sep 2015, at 09:49, Vishal Goel > > wrote: > > > Yes, I always r

Re: [Puppet Users] Some environments not working in puppet

2015-09-18 Thread Martin Alfke
On 18 Sep 2015, at 09:49, Vishal Goel wrote: > Yes, I always restart puppetmaster after adding a new environment or doing > any changes in code for that matter. > > Also, below are the two processes that are running on the puppetmaster (used > ps -ef | grep puppet ) > puppet 29247 1 0

Re: [Puppet Users] Some environments not working in puppet

2015-09-18 Thread Vishal Goel
Yes, I always restart puppetmaster after adding a new environment or doing any changes in code for that matter. Also, below are the two processes that are running on the puppetmaster (used ps -ef | grep puppet ) puppet 29247 1 0 12:27 ?00:00:00 Rack: /usr/share/puppet/rack/puppe

Re: [Puppet Users] Some environments not working in puppet

2015-09-18 Thread Martin Alfke
On 18 Sep 2015, at 09:24, Vishal Goel wrote: > I am experiencing a very strange error in puppet. I have around 4-5 > environments in my puppet codebase and whenever i add a new environment, it > doesn't work. Even thought the code of new environment added is almost > similar, it doesn't work.

[Puppet Users] Some environments not working in puppet

2015-09-18 Thread Vishal Goel
I am experiencing a very strange error in puppet. I have around 4-5 environments in my puppet codebase and whenever i add a new environment, it doesn't work. Even thought the code of new environment added is almost similar, it doesn't work. Below is my puppet.conf file: [main] logdir=/var/log/