Re: [Puppet Users] puppet module repository w/ self signed ssl?

2018-06-05 Thread Josh Cooper
On Tue, Jun 5, 2018 at 8:52 AM, Sean wrote: > Hello, > > I'm wanting to use the module_repository setting in puppet.conf on my > puppet5 master. The local repo mirror we've setup requires SSL, but has a > self-signed cert. Is there a way to make puppet trust that cert? > > Mostly, I want to be

Re: [Puppet Users] Style (syntax?) question

2018-06-05 Thread Ramin K
On 6/5/2018 6:01 AM, jcbollinger wrote: On Monday, June 4, 2018 at 1:06:52 PM UTC-5, Ramin K wrote: On 6/4/18 8:25 AM, Peter Berghold wrote: > I was looking at someone else's code one day last week and saw a pattern > I've not seen before. Maybe that's what I get for developi

[Puppet Users] puppet module repository w/ self signed ssl?

2018-06-05 Thread Sean
Hello, I'm wanting to use the module_repository setting in puppet.conf on my puppet5 master. The local repo mirror we've setup requires SSL, but has a self-signed cert. Is there a way to make puppet trust that cert? Mostly, I want to be able to use puppet module search as a convenience since

Re: [Puppet Users] Style (syntax?) question

2018-06-05 Thread Arnau
2018-06-05 15:01 GMT+02:00 jcbollinger : > > > On Monday, June 4, 2018 at 1:06:52 PM UTC-5, Ramin K wrote: >> >> On 6/4/18 8:25 AM, Peter Berghold wrote: >> > I was looking at someone else's code one day last week and saw a >> pattern >> > I've not seen before. Maybe that's what I get for developi

Re: [Puppet Users] Style (syntax?) question

2018-06-05 Thread R.I.Pienaar
On Tue, 5 Jun 2018, at 15:01, jcbollinger wrote: > > > On Monday, June 4, 2018 at 1:06:52 PM UTC-5, Ramin K wrote: > > > > On 6/4/18 8:25 AM, Peter Berghold wrote: > > > I was looking at someone else's code one day last week and saw a pattern > > > I've not seen before. Maybe that's what I g

Re: [Puppet Users] Style (syntax?) question

2018-06-05 Thread jcbollinger
On Monday, June 4, 2018 at 1:06:52 PM UTC-5, Ramin K wrote: > > On 6/4/18 8:25 AM, Peter Berghold wrote: > > I was looking at someone else's code one day last week and saw a pattern > > I've not seen before. Maybe that's what I get for developing Puppet code > > in a vacuum. :-) > > > > clas

Re: [Puppet Users] How to have init.pp in a module run some function whenever any class in the module is called.

2018-06-05 Thread Martin Alfke
Hi Dan, variables in classes are always local variables. You can reference variables from other classes by adding the namespace (classname) to the variable. Referencing variables from other classes is only possible when the class containing the variables has been declared: class adduser::user_r