[Puppet Users] Can ERB templates be used to process hashes of arbitrary depth?

2014-04-07 Thread Andreas Ntaflos
Hi list, I am in the process of writing a module to manage strongSwan, an IKE keying daemon for IPsec VPNs on Linux [1]. The strongSwan daemon's (charon) configuration file is basically formatted like a hash, with sections containing key-value pairs that may themselves contain further sections [2]

Re: [Puppet Users] Can't get puppetmaster working with passenger

2014-04-07 Thread Denmat
Hi, I'll see if I can answer this before my train hits the underground.. Check for gems and multiple versions of puppet. Run your puppetmaster without apache, ie, stop apache and run puppet master --no-daemonize --debug. Run your agent against that. Apache shouldn't be that much of an issue,

Re: [Puppet Users] Need help optimizing our Puppet module

2014-04-07 Thread Denmat
Hi, And further to that I also did a quick skim and found you use augeas for a few resources that can probably be better executed with simpler resource types (I'm looking at you yumrepo). Augeas is costly from my understanding. Also to get a good view of where the costs are in your manifest yo

Re: [Puppet Users] Need help optimizing our Puppet module

2014-04-07 Thread Pete Brown
Hi Harrison, Here are some initial thoughts after a quick glance at your code. First question I would have would be why are you using ensure_resource to do one thing at a time? Like install one package or one service etc. I love wrappers but it seems like overkill to use it do do something the na

[Puppet Users] Re: Trying to deploy / update logmein on Windows 7x64 with Puppet 3.4.3, getting error

2014-04-07 Thread Adam Stacey
On Monday, 7 April 2014 18:39:54 UTC+1, jmp242 wrote: > > So I'm trying to do this: > file {'logmein.msi': > path => 'C:/ProgramData/puppetfiles/logmein.msi', > source => "puppet:///modules/logmein/LogMeIn.msi", > owner=> 'SYSTEM', >

[Puppet Users] Can't get puppetmaster working with passenger

2014-04-07 Thread John Pyeatt
Tried to convert from webrick to passenger today. Failed. When I run puppet agent -tv I get two things that are troubling. 1) I get this message: Notice: with older puppet master. To remove this notice, please upgrade your master(s) Notice: to Puppet 3.3 or newer. Even though in my webrick day

[Puppet Users] Need help optimizing our Puppet module

2014-04-07 Thread Harrison Ripps
Hey all-- Over at OpenShift we are big fans of Puppet. We've developed our own module, which is central to our OpenShift Origin installer and to our Vagrant-based development environment. As the author of the ins

[Puppet Users] Re: puppet forge gives "Internal Server Error" when trying to push module?

2014-04-07 Thread Leslie
Ahha! For those of you following along at home, Alex Dreyer noticed that I had a list for version requirements instead of a string, which caused a failure. Thank you Alex! On Mon, Apr 7, 2014 at 9:57 AM, Leslie wrote: > Hey puppet users - > I was hoping someone has seen this before and can give

Re: [Puppet Users] Re: Remove certificate requests

2014-04-07 Thread Leon Springer
I created a quick script to workaround the issue until the bug is fixed. Replace the grep with the host(s) you want to target. --- #!/bin/bash for OUTPUT in $(puppet cert list | awk '{FS=" ";print $1;}' | sed -e 's/^"//' -e 's/"$//'| grep -i hostname) do echo "Removing certificate

[Puppet Users] Trying to deploy / update logmein on Windows 7x64 with Puppet 3.4.3, getting error

2014-04-07 Thread jmp242
So I'm trying to do this: file {'logmein.msi': path => 'C:/ProgramData/puppetfiles/logmein.msi', source => "puppet:///modules/logmein/LogMeIn.msi", owner=> 'SYSTEM', group=> 'Administrators', mode => 0770,

[Puppet Users] puppet forge gives "Internal Server Error" when trying to push module?

2014-04-07 Thread Leslie
Hey puppet users - I was hoping someone has seen this before and can give me a tip. I'm trying to push up https://github.com/CumulusNetworks/puppet-netdev-stdlib-cumulus-linux as a module to the forge, however when I attempt the push, I get an "Internal Server Error" Has anyone seen this before a

Re: [Puppet Users] Re: chaining of create_resources

2014-04-07 Thread Baptiste
Hi, Le mercredi 26 mars 2014 16:03:05 UTC+1, Jose Luis Ledesma a écrit : > > > About using the "require" I think the problem is the parser doesn't found > the File['/local_area'] beacuse it's created in the "create_resources", > although IMHO it should work (although I don't know the complexity

Re: [Puppet Users] fileserving in parser function

2014-04-07 Thread Rob Reynolds
Rich, What version is the puppet agent? On Fri, Apr 4, 2014 at 3:51 PM, Rich Siegel wrote: > In my loadcsv parser function I do (I stripped out all non-relevant parts) > > ``` > require 'puppet/file/serving/configuration' > # on windows this fails - path is the args[0]: > # path = 'puppet://

Re: [Puppet Users] How to remove a directory?

2014-04-07 Thread jcbollinger
On Monday, April 7, 2014 12:32:45 AM UTC-5, Dirk Heinrichs wrote: > > Am 06.04.2014 01:27, schrieb Swit Zerland: > > I am writing a site.pp to automate some tasks performed on a Windows VM > puppet agent and I would like to know how to remove recursively a directory. > > > Either use an exec,

Re: [Puppet Users] Puppet always recreates Nagios_hosts

2014-04-07 Thread Jonathan Gazeley
On 07/04/14 14:10, Felix Frank wrote: Ugh, dammit. This does look like a bug. What version of Puppet is this? Can you open a Jira issue? This is Puppet 3.4.3. I've logged issue PUP-2170 - let me know if you want me to provide any more info. Thanks, Jonathan -- You received this message bec

Re: [Puppet Users] Using a message bus with Puppet

2014-04-07 Thread vioilly
Thanks Felix. That does help. On Monday, April 7, 2014 2:55:50 PM UTC+1, Felix.Frank wrote: > > Hi, > > you could try and write a simple report processor that invokes a > producer for your event queue. > > > http://docs.puppetlabs.com/guides/reporting.html#make-masters-process-reports > > HTH

Re: [Puppet Users] Announce: Puppet 3.5.0 now available!

2014-04-07 Thread Jonathan Gazeley
On 07/04/14 15:08, Kinzel, David wrote: This does not appear to exist athttp://downloads.puppetlabs.com/puppet/puppet-3.5.0.tar.gz yet... Can someone fix it? This release of puppet was withdrawn after bugs were identified. https://groups.google.com/forum/#!msg/puppet-users/uJCKQ7uUlCs/46Hlk

RE: [Puppet Users] Announce: Puppet 3.5.0 now available!

2014-04-07 Thread Kinzel, David
>-Original Message- >From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] >On Behalf Of Eric Sorenson >Sent: Thursday, April 03, 2014 3:33 PM >To: puppet-users@googlegroups.com >Subject: [Puppet Users] Announce: Puppet 3.5.0 now available! > >Puppet 3.5.0 is now availa

Re: [Puppet Users] Using a message bus with Puppet

2014-04-07 Thread Felix Frank
Hi, you could try and write a simple report processor that invokes a producer for your event queue. http://docs.puppetlabs.com/guides/reporting.html#make-masters-process-reports HTH, Felix On 04/07/2014 03:38 PM, vioilly wrote: > Has anyone got any good information on how to use a message bus s

[Puppet Users] Using a message bus with Puppet

2014-04-07 Thread vioilly
Has anyone got any good information on how to use a message bus solution with Puppet, so that when puppet provisions an application, it will send back a notification to a message bus to notify that the application installation has completed? Many thanks -Oli -- You received this message becau

Re: [Puppet Users] Puppet always recreates Nagios_hosts

2014-04-07 Thread Felix Frank
Ugh, dammit. This does look like a bug. What version of Puppet is this? Can you open a Jira issue? Thanks, Felix On 04/07/2014 02:23 PM, Jonathan Gazeley wrote: > I've been using puppet with nagios for ages without any problems. > Recently I looked into the puppet logs on my nagios server and it

Re: [Puppet Users] Puppet - NFS read only

2014-04-07 Thread Christopher Wood
NFS will set the directory's user/group to the user/group of the mounted export, not the local directory's user/group. In your example below what happens is: file resource sets the uid/gid mount resource mounts an export with a different uid/gid as read-only (ro in your mount options) file res

[Puppet Users] Puppet always recreates Nagios_hosts

2014-04-07 Thread Jonathan Gazeley
I've been using puppet with nagios for ages without any problems. Recently I looked into the puppet logs on my nagios server and it seems on every puppet run, puppet throws an error and recreates all the nagios_host objects (see below), even if none of them have been changed. I haven't changed

[Puppet Users] Re: Puppet Agent's webrick crashes every 30sec.

2014-04-07 Thread Peter Bauer
Simple solution: use Monits TCPSSL port check typ instead of TCP. Am Montag, 7. April 2014 13:18:21 UTC+2 schrieb Peter Bauer: > > For the records: it was Monit checking the port every 30sec., totally > forgot about that one. Need to find a different way to check it. > > g, > Peter > > Am Samstag

[Puppet Users] Re: Puppet Agent's webrick crashes every 30sec.

2014-04-07 Thread Peter Bauer
For the records: it was Monit checking the port every 30sec., totally forgot about that one. Need to find a different way to check it. g, Peter Am Samstag, 5. April 2014 06:56:30 UTC+2 schrieb Peter Bauer: > > thank you very much John! I will investigate this further with Wireshark. -- You rec

[Puppet Users] Puppet - NFS read only

2014-04-07 Thread willi . fehler
Hello, I want to ensure that an nfs mount exists. The first puppet agent run is successfully but a second run brings the following error: Error: Failed to set owner to '199': Read-only file system - /mnt/static/exports/media Error: /Stage[main]/H24-nfs::Mount::Static/File[/mnt/static/exports/