Re: [Puppet Users] puppet cron jobs overwhelming host

2015-05-01 Thread Tim Dunphy
> Also you could consider wrapping these in a flock to prevent actions piling= > up behind each other - like described here: > http://www.elevatedcode.com/2013/05/07/flock-for-cron-jobs.html > > Many other examples on the net. Ok, Dan. That's really good info! Thanks and I'll be sure to check it

Re: [Puppet Users] puppet cron jobs overwhelming host

2015-05-01 Thread Denmat
Also you could consider wrapping these in a flock to prevent actions piling up behind each other - like described here: http://www.elevatedcode.com/2013/05/07/flock-for-cron-jobs.html Many other examples on the net. Den On 2 May 2015, at 04:15, Tim Dunphy wrote: >> In addition to Peter's exce

[Puppet Users] rspec testing; how to test a subclass that requires another class

2015-05-01 Thread Trey Ormsbee
I have a puppet module that I am not sure hot to write a test for: Example below: class appsuite ( $param1, $param2, $param3, $param4, ) { include appsuite::params include appsuite::repo include appsuite::preconfig } #nothing in params, repo or preconfig really matter, other th

Re: [Puppet Users] Hiera Hash Merge - Avoiding Duplicating

2015-05-01 Thread Ramin K
On 4/30/15 10:10 AM, Joseph Swick wrote: dev-db-01.mydomain.net.yaml: --- mysql::server::override_options: mysqld: server_id: 1 dev-db-02.mydomain.net.yaml: --- mysql::server::override_options: mysqld: server_id: 2 John covered the technical in detail. However I'd like to ap

Re: [Puppet Users] Re: Possibly bug in Puppetlabs/Registry module

2015-05-01 Thread Rob Reynolds
On Fri, May 1, 2015 at 12:59 PM, Mark Wolek wrote: > C:\Users\Administrator>puppet apply --version > 3.7.5 > > C:/ProgramData/PuppetLabs/puppet/etc/modules > └─┬ puppetlabs-registry (v1.1.0) > └── puppetlabs-stdlib (v4.6.0) > > > No puppetmaster server is involved. > > Thanks! > It's possible

[Puppet Users] Re: Visual Studio Code Released for Windows, OSX, and Linux

2015-05-01 Thread Byron Miller
You got my vote! :) Exciting times to see stuff like this from MS! On Thursday, April 30, 2015 at 11:03:22 AM UTC-5, Rob Reynolds wrote: > > For those paying attention, > > Yesterday Microsoft released Visual Studio Code, which is built on top of > Electron (what Atom Editor is built on). > > One

Re: [Puppet Users] Fresh Puppet PE 3.8 install error

2015-05-01 Thread Martin Alfke
I have created a blog posting with PE 3.8 installation issues and fixes on Debian 6 and 7, CentOS 6 and 7, SLES 11 and 12, Ubuntu 12.04 and 14.10: http://tuxmea.blogspot.de/2015/05/puppet-enterprise-38-installation-steps.html On 01 May 2015, at 19:58, Martin Alfke wrote: > Confirmed. > This pac

Re: [Puppet Users] puppet cron jobs overwhelming host

2015-05-01 Thread Tim Dunphy
> > In addition to Peter's excellent catch of the scheduling issue, depending > on how many files you have in /var/www and how much other contention there > is for disk I/O, your find commands could simply be getting bogged down > traversing the directory tree. They are pretty inefficient, as writt

Re: [Puppet Users] Re: Possibly bug in Puppetlabs/Registry module

2015-05-01 Thread Mark Wolek
C:\Users\Administrator>puppet apply --version 3.7.5 C:/ProgramData/PuppetLabs/puppet/etc/modules └─┬ puppetlabs-registry (v1.1.0) └── puppetlabs-stdlib (v4.6.0) No puppetmaster server is involved. Thanks! On Tuesday, April 28, 2015 at 12:38:23 PM UTC-5, Rob Reynolds wrote: > > > > On Mon, A

Re: [Puppet Users] Fresh Puppet PE 3.8 install error

2015-05-01 Thread Martin Alfke
Confirmed. This package list also solves installation issue on Ubuntu 14.10 Many thanks, Martin On 01 May 2015, at 19:49, Jay Benner wrote: > Nailed it! Not sure which package did the trick, but smooth sailing after > installing these. > > On Thursday, April 30, 2015 at 5:21:20 PM UTC-7, Ka

Re: [Puppet Users] Fresh Puppet PE 3.8 install error

2015-05-01 Thread Jay Benner
Nailed it! Not sure which package did the trick, but smooth sailing after installing these. On Thursday, April 30, 2015 at 5:21:20 PM UTC-7, Kamil Keski wrote: > > Scratch 2.1.5 as the issue. Quick lsof shows that everything is still > using the 1.9.1 binary pulled in the install. Only other

Re: [Puppet Users] puppet cron jobs overwhelming host

2015-05-01 Thread Peter Bukowinski
> On May 1, 2015, at 12:52 PM, Tim Dunphy wrote: > > This isn't really a Puppet problem, but regardless: > Those cron entries are for "every minute during the zeroth hour". So at 00:00 > it will run, then at 00:01, then 00:02, and so > on all the way to 00:59, then will stop until 00:00 the nex

Re: [Puppet Users] puppet cron jobs overwhelming host

2015-05-01 Thread Tim Dunphy
> > This isn't really a Puppet problem, but regardless: > Those cron entries are for "every minute during the zeroth hour". So at > 00:00 it will run, then at 00:01, then 00:02, and so > on all the way to 00:59, then will stop until 00:00 the next day. Therefore, > if the chmod/chown processes tak

Re: [Puppet Users] puppet cron jobs overwhelming host

2015-05-01 Thread Peter Kristolaitis
On 05/01/2015 12:31 PM, Tim Dunphy wrote: That produces the following crons in my crontab: # Puppet Name: chmod-files * 0 * * * /bin/find /var/www -type f -exec chmod -v 664 {} \; # Puppet Name: apache-chown * 0 * * * /bin/chown -R apache:ftpgroup /var/www # Puppet Name: chmod-directories * 0

[Puppet Users] puppet cron jobs overwhelming host

2015-05-01 Thread Tim Dunphy
Hey guys, Ok, so I've run into a situation where I setup some cron jobs via puppet that do chown's and chmod's to make sure the web directory is owned by the web server and that the contents have the right permissions. The idea was to have the developer push their code via subversion and then ha

[Puppet Users] Puppet Server caches nodes twice?

2015-05-01 Thread ssnodgra
I've recently upgraded my puppet installation to Puppet 3.7.5 with Puppet Server 1.0.8. It's working very well, but I'm curious about Puppet Server's logs. Whenever an agent runs, Puppet Server outputs something like this: 2015-05-01 11:20:29,243 INFO [puppet-server] Puppet Caching node for

[Puppet Users] Re: Partial change from a puppet run

2015-05-01 Thread David Evans
Hi John, Thanks for this - very helpful. It's good to know that properly written code will complete in one run and that will be my goal - I'm refactoring the code already and can see that it contains a lot of rookie errors. I have also implemented a loop in our provisioning script to re-run pu

Re: [Puppet Users] Re: passing resource ensure=> values in variables?

2015-05-01 Thread Christopher Wood
On Fri, May 01, 2015 at 05:58:37AM -0700, jcbollinger wrote: > > > On Thursday, April 30, 2015 at 1:00:45 PM UTC-5, Christopher Wood wrote: > > > > I'm trying to pass ensure=> values in variables (and set resource defaults > > conditionally) and it doesn't seem to work that way. If there's some

Re: [Puppet Users] Re: Open Source 4.0 version identifier vs. very different rpm and dpkg package versions

2015-05-01 Thread jcbollinger
On Thursday, April 30, 2015 at 11:32:43 AM UTC-5, Michael Stanhke wrote: > > Rather than reply and quote lots of points, I'll just bring up a few > things which could help clarify our goals. I'm sure not everybody will > agree or love all of them, we know there are compromises here but attempte

Re: [Puppet Users] Hiera Hash Merge - Avoiding Duplicating

2015-05-01 Thread jcbollinger
On Thursday, April 30, 2015 at 12:10:19 PM UTC-5, Joseph Swick wrote: > > On 30/04/15 09:30, jcbollinger wrote: > > > > > > > Priority lookup is Hiera's focus and default, and automated data binding > > uses that mode exclusively. If you want hash-merge lookup then you must > > call h

Re: [Puppet Users] Catalog synchronisation

2015-05-01 Thread jcbollinger
On Thursday, April 30, 2015 at 12:10:51 PM UTC-5, Jochen Haeberle wrote: > > Hi Cesar, > > I know of no way to synchronise catalog compilation. > > Me neither. However, you can control which resources are managed for each node, and which properties are assigned to them. > I would try to up

[Puppet Users] Re: passing resource ensure=> values in variables?

2015-05-01 Thread jcbollinger
On Thursday, April 30, 2015 at 1:00:45 PM UTC-5, Christopher Wood wrote: > > I'm trying to pass ensure=> values in variables (and set resource defaults > conditionally) and it doesn't seem to work that way. If there's some way of > getting this working I am very happy to hear about it. > > In

[Puppet Users] Re: include a class in another class

2015-05-01 Thread Doug Byrne
'apache::service' is the name of a Class. You can look inside that class to find the service resource you're trying to notify. It's probably Service['apache2']. -Doug On Thursday, April 30, 2015 at 11:38:29 PM UTC-4, bluethundr wrote: > > Hey all, > > I'd like to include the apache service i

[Puppet Users] Re: include a class in another class

2015-05-01 Thread jcbollinger
On Thursday, April 30, 2015 at 10:38:29 PM UTC-5, bluethundr wrote: > Yet when I try to run puppet on the client node, I'm getting this result: > > Could not retrieve fact='nr_java_found', resolution='': > undefined method `start_with?' for nil:NilClass > Error: Could not retrieve catalog from