Re: [Puppet Users] Set default param value based on another param

2018-10-07 Thread Jody Des Roches
need to > do like this: > > > > class myClass ( > > String $base_dir, > > Optional[String] $conf_dir, > > ) { > > if $myClass::conf_dir == undef { > >$myClass::actual_conf_dir = "$myClass::base_dir/conf” > > } else { > >

[Puppet Users] Set default param value based on another param

2018-10-05 Thread Jody Des Roches
I'd like to set default values for parameters that will be passed to epp templates. However, the default value is based on another parameter. I understand that variables are immutable but this is a parameter that shouldn't be touched unless it wasn't set. Here is an example construct with a f