[Puppet Users] any way to debug a Puppet custom function?

2016-09-19 Thread Thomas Cheng
Hi howdies, Recently I'm picking up some legacy puppet codes in my new company. the puppet code base has custom functions written in ruby before. One major issue is: how to debug the custom functions to figure out the logic inside? Can I copy/paste into an external general ruby script and

Re: [Puppet Users] A Scalable HA Setup with on 2 configs, check this out !

2016-09-19 Thread Neil - Puppet List
Hello Trevor, I put this in when we did a fairly big puppet upgrade. This meant I could direct a few clients to the upgraded server upgrade the agents see how that went then do all dev service before moving others. I guess we could have done that in a number of other ways but this worked well

[Puppet Users] Puppet -- Powershell script

2016-09-19 Thread Shivayogi Kamat
I have an application which requires a local account to be required for the configuration. I have created a module inside that I have 2 folders : i. files ii.manifests under manifests init file I have the below code: class xyz { exec { ' app_config': command => '

Re: [Puppet Users] A Scalable HA Setup with on 2 configs, check this out !

2016-09-19 Thread Trevor Vaughan
Hi Neil, Thanks for sharing that config, it's quite useful. Did you see any large benefit of this versus using DNS SRV records (yes, I understand the actual load balancing implications). I'm curious if the extra infrastructure was worth the effort. I'm partial to a fan-out DNS SRV structure,

Re: [Puppet Users] I'd like to see you at PuppetConf 2016

2016-09-19 Thread Trevor Vaughan
Mike, You couldn't keep me away man Even if you wanted to Which you probably do I'm bad at haiku T On Fri, Sep 16, 2016 at 11:31 AM, Michael Stahnke wrote: > PuppetConf is coming up in just about a month, in San Diego, CA. It would > be wonderful to see

Re: [Puppet Users] HOWTO ERB Template generate an array of files

2016-09-19 Thread warron.french
Thanks for the feedback John, much appreciated. -- Warron French On Mon, Sep 19, 2016 at 9:12 AM, jcbollinger wrote: > > > On Sunday, September 18, 2016 at 3:42:36 AM UTC-5, Warron French wrote: >> >> Hi, thanks Peter. >> >> I am writing this

Re: [Puppet Users] Re: notify resource different between 3 and 4?

2016-09-19 Thread R.I.Pienaar
> On 19 Sep 2016, at 15:31, jcbollinger wrote: > > > >> On Friday, September 16, 2016 at 12:11:26 PM UTC-5, Christopher Wood wrote: >> While trying to figure out the reduce function with notice/notify I happened >> across this thing. It looks like an unquoted

[Puppet Users] Re: notify resource different between 3 and 4?

2016-09-19 Thread jcbollinger
On Friday, September 16, 2016 at 12:11:26 PM UTC-5, Christopher Wood wrote: > > While trying to figure out the reduce function with notice/notify I > happened across this thing. It looks like an unquoted array in the notify > resource's message only appears as its first array item. Not sure if

Re: [Puppet Users] HOWTO ERB Template generate an array of files

2016-09-19 Thread jcbollinger
On Sunday, September 18, 2016 at 3:42:36 AM UTC-5, Warron French wrote: > > Hi, thanks Peter. > > I am writing this module to write it based on the design I have had > because... being a little lazy I guess you might say/think. I know that I > could do a link, but I believe for something like

Re: [Puppet Users] A Scalable HA Setup with on 2 configs, check this out !

2016-09-19 Thread Neil - Puppet List
Hello One extra thing to mention is I have got into issues with configuring the loadbal itself through puppet, as broken loadbal config breaks the puppet service which means the loadbal can;t be fixed via puppet, so admin login is required on these servers. Thanks Neil On 19 September 2016 at

Re: [Puppet Users] A Scalable HA Setup with on 2 configs, check this out !

2016-09-19 Thread Neil - Puppet List
Hello Below is a slightly edited version of the haproxy.cfg All the backends except the ca require a valid client cert 'http-request deny unless { ssl_c_verify 0 }' global chroot /var/lib/haproxy daemon group haproxy log 127.0.0.1 local4 log 127.0.0.1 local5 notice maxconn