Re: [Puppet Users] puppetserver error: no such file to load -- pg on node puppetmaster1

2015-09-17 Thread Martin Alfke
On 18 Sep 2015, at 04:08, rhpuppetu...@gmail.com wrote: > Our puppet master used to run using apache passenger stack. We've recently > migrated from passenger to puppetserver. When i run puppet agent -vt on my > client, its showing the following error. > > Error 400 on server : could not auto

Re: [Puppet Users] Announce: Puppet-Agent 1.2.4, Puppet 4.2.2, Facter 3.1.0

2015-09-17 Thread Dirk Heinrichs
Am 18.09.2015 um 07:56 schrieb Dirk Heinrichs: > Am 17.09.2015 um 16:03 schrieb Rob Reynolds: > >> It /can/ work, it's just not deterministic. As you are seeing. > > That's not what I'm seeing. I'm seeing that it HAS worked fine on > Windows 2008 for the past 2 years or so (and still does), but do

Re: [Puppet Users] Announce: Puppet-Agent 1.2.4, Puppet 4.2.2, Facter 3.1.0

2015-09-17 Thread Dirk Heinrichs
Am 17.09.2015 um 16:03 schrieb Rob Reynolds: > It /can/ work, it's just not deterministic. As you are seeing. That's not what I'm seeing. I'm seeing that it HAS worked fine on Windows 2008 for the past 2 years or so (and still does), but doesn't on Windows 2012. Bye... Dirk -- *Dirk Heinr

[Puppet Users] puppetserver error: no such file to load -- pg on node puppetmaster1

2015-09-17 Thread rhpuppetuser
Our puppet master used to run using apache passenger stack. We've recently migrated from passenger to puppetserver. When i run puppet agent -vt on my client, its showing the following error. Error 400 on server : could not autoload puppet/parser/functions/get_location: no such file to load --

Re: [Puppet Users] Hiera doesn't work with JSON

2015-09-17 Thread ~Stack~
Greetings Matthaus! On 09/17/2015 05:24 PM, Matthaus Owens wrote: > Stack, [snip] >> BTW: the doc's actual JSON example is broken as it is missing the [ ] around >> it. I included it. below and if you don't you fail the parser and Hiera just >> ignores everything instead of giving an error. >> >

Re: [Puppet Users] Hiera doesn't work with JSON

2015-09-17 Thread Matthaus Owens
Stack, On Thu, Sep 17, 2015 at 12:41 PM, Stack Kororā wrote: > Greetings, > > I am having an issue with Hiera again. Bangin my head on it for a few hours > and not getting anywhere. Since this group was able to help last time, I > have my fingers crossed you can help me again. :-D > > I am tryi

Re: [Puppet Users] Re: Possible to overriding Hiera on the run-time?

2015-09-17 Thread Sans
Thanks Craig! I will give it a go tonight and report here back. -S On Thursday, September 17, 2015 at 2:55:23 PM UTC+1, Craig Dunn wrote: > > It's can be done easier than that, although facts is the right > track... You don't actually have to create a fact, you could just > test for the exis

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

2015-09-17 Thread Sean
Hi Peter, Thanks for that! I must have lost the = in translation from the old post, I appreciate you 2nd set of eyes. Now that I'm passed that and have data in the result, I've only graduated to having incorrect results. I had used the any2array function to ensure the array status of the tem

[Puppet Users] Re: Using hiera to configure the jgazeley/ossec module

2015-09-17 Thread Todd C
Just to close the loop on this (for anyone interested), originally I was failing with my hiera-fu. Once I got the error about missing the ossec_server_ip value sorted, the second problem (Error while evaluating a Function Call, ossec::agentkey: is missing) seemed to be related to the way the fa

[Puppet Users] Hiera doesn't work with JSON

2015-09-17 Thread Stack Kororā
Greetings, I am having an issue with Hiera again. Bangin my head on it for a few hours and not getting anywhere. Since this group was able to help last time, I have my fingers crossed you can help me again. :-D I am trying to use JSON with Hiera this time. First, fully updated dev box. $ cat /

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

2015-09-17 Thread Peter Huene
Hi Sean, On Thu, Sep 17, 2015 at 12:01 PM, Sean wrote: > Hello, > > I have been working on trying to drive an include statement with an array > parameter. > > The idea looks like so (in pseudo code) : > > > class foo( $whitelist = $::foo::params::whitelist, $blacklist = [],) { > > $include_lis

[Puppet Users] Puppet method to subtract two arrays?

2015-09-17 Thread Sean
Hello, I have been working on trying to drive an include statement with an array parameter. The idea looks like so (in pseudo code) : class foo( $whitelist = $::foo::params::whitelist, $blacklist = [],) { $include_list = inline_template( "<% @whitelist - @blacklist %>" ) validate_array($

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

2015-09-17 Thread Arnau
Hi, https://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html Maybe start with: puppet module generate user-modulename you'll get the basic stuff. HTH, 2015-09-17 8:46 GMT+02:00 : > I have some experience handling puppet modules but this time I wrote some > code in R

Re: [Puppet Users] Announce: Puppet-Agent 1.2.4, Puppet 4.2.2, Facter 3.1.0

2015-09-17 Thread Rob Reynolds
On Thu, Sep 17, 2015 at 6:01 AM, Dirk Heinrichs < dirk.heinri...@recommind.com> wrote: > Am 17.09.2015 um 12:53 schrieb Francois Lafont: > > It's a curious situation where there is an execution of a software during > its upgrade. > > > No, that's quite normal. Think "yum upgrade" upgrading yum its

Re: [Puppet Users] Managing Chocolatey sources with File resource and Template on Windows 7 x64 SP1

2015-09-17 Thread Rob Reynolds
On Tue, Sep 15, 2015 at 1:24 PM, jmp242 wrote: > The template file was created in Geppeto, and has crlf line endings. The > chocolatey.config also has crlf line endings. This is tested using the file > command on Scientific Linux 7.1. For testing the windows file, I copied it > over SMB from the

Re: [Puppet Users] Re: Possible to overriding Hiera on the run-time?

2015-09-17 Thread Craig Dunn
On Thu, Sep 17, 2015 at 3:00 PM, jcbollinger wrote: > > > On Wednesday, September 16, 2015 at 7:39:32 AM UTC-5, Sans wrote: >> >> Hi there, >> >> I got to solve a "rare" issue here which I'm running out of ideas for. In >> our manifest, we do some conditional git pull (using vcsrepo forgemodule)

[Puppet Users] Re: Possible to overriding Hiera on the run-time?

2015-09-17 Thread jcbollinger
On Wednesday, September 16, 2015 at 7:39:32 AM UTC-5, Sans wrote: > > Hi there, > > I got to solve a "rare" issue here which I'm running out of ideas for. In > our manifest, we do some conditional git pull (using vcsrepo > forgemodule) based on a Hiera variable that set either true or false. W

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

2015-09-17 Thread Kostis Fardelas
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: puppet cert --clean host2.example.com I verify that host1 cert was REMOVED from crl and host2

[Puppet Users] Write a basic custom module for puppet

2015-09-17 Thread alvaro . gomez
I have some experience handling puppet modules but this time I wrote some code in Ruby that I'd like to port to a custom puppet module. I already have read puppetlabs documentation( puppetforge , Beginner's guide

Re: [Puppet Users] Announce: Puppet-Agent 1.2.4, Puppet 4.2.2, Facter 3.1.0

2015-09-17 Thread Dirk Heinrichs
Am 17.09.2015 um 12:53 schrieb Francois Lafont: > It's a curious situation where there is an execution of a software > during its upgrade. No, that's quite normal. Think "yum upgrade" upgrading yum itself on Linux. > Finally, it seems to me a not reasonable situation, and we can't hope > a norma

Re: [Puppet Users] Announce: Puppet-Agent 1.2.4, Puppet 4.2.2, Facter 3.1.0

2015-09-17 Thread Francois Lafont
On 17/09/2015 12:53, Francois Lafont wrote: > I wanted to do exactly the same but I had errors too during an upgrade > (sorry I don't remember the messages). But in fact (and after interesting > discussions on IRC ;)) I was convinced that it's logical. Indeed, finally > I think it's not reasonable

Re: [Puppet Users] Announce: Puppet-Agent 1.2.4, Puppet 4.2.2, Facter 3.1.0

2015-09-17 Thread Francois Lafont
Hi, On 17/09/2015 09:11, Dirk Heinrichs wrote: > I'm using a self-written class to manage the Puppet agent package on agent > nodes. It works fine on any Linux and Windows Server 2008R2, but fails > reproducably on Windows Server 2012R2 when trying to upgrade the agent > package. > The follow

Re: [Puppet Users] Announce: Puppet-Agent 1.2.4, Puppet 4.2.2, Facter 3.1.0

2015-09-17 Thread Dirk Heinrichs
Am 14.09.2015 um 22:00 schrieb Eric Sorenson: > Puppet Agent 1.2.4 is out! This is a new minor release of the all-in-one > agent bundle which incorporates updates to Puppet, Facter, Hiera, and > Mcollective. I'm using a self-written class to manage the Puppet agent package on agent nodes. It wor