Re: [Puppet Users] class parameters that depend on other parameters

2018-06-13 Thread Tim Mooney
In regard to: Re: [Puppet Users] class parameters that depend on other...: On Tuesday, June 12, 2018 at 3:14:45 PM UTC-5, Tim.Mooney wrote: Let's say you had *many* parameters that you wanted to set defaults for (but allow overrides on an individual basis) based on a single parameter. The s

Re: [Puppet Users] class parameters that depend on other parameters

2018-06-13 Thread Tim Mooney
In regard to: Re: [Puppet Users] class parameters that depend on other...: Hope one of those examples gives you some inspiration. They do. Thank you very much for taking the time to read and consider the wall of text and code I posted, and then come back with some insightful suggestions. The

Re: [Puppet Users] class parameters that depend on other parameters

2018-06-13 Thread jcbollinger
On Tuesday, June 12, 2018 at 3:14:45 PM UTC-5, Tim.Mooney wrote: > Let's say you had *many* parameters that you wanted to set defaults for > (but allow overrides on an individual basis) based on a single parameter. > The simplest and most straightforward alternative I can think of is simply t

Re: [Puppet Users] class parameters that depend on other parameters

2018-06-13 Thread Henrik Lindberg
On 2018-06-12 22:14, Tim Mooney wrote: In regard to: Re: [Puppet Users] class parameters that depend on other...: On 2018-06-12 00:55, Tim Mooney wrote: [snip some of my original context] Here's an example: modules/sandbox/manifests/init.pp: # # This module exists only to serve as a sandbo

Re: [Puppet Users] class parameters that depend on other parameters

2018-06-12 Thread Tim Mooney
In regard to: Re: [Puppet Users] class parameters that depend on other...: On 2018-06-12 00:55, Tim Mooney wrote: [snip some of my original context] Here's an example: modules/sandbox/manifests/init.pp: # # This module exists only to serve as a sandbox where we can experiment with # puppet

Re: [Puppet Users] class parameters that depend on other parameters

2018-06-12 Thread Henrik Lindberg
On 2018-06-12 00:55, Tim Mooney wrote: Hi All! We've been long-time users of puppet (opensource).  A lot of our home-grown modules were written to use direct hiera() calls (and before that extlookup()) for loading config.  Because of prior limitations with class parameters, we also mostly avoid