Am Mittwoch, 2. November 2016 15:10:41 UTC+1 schrieb Craig Dunn: > > > > On Fri, Oct 28, 2016 at 7:45 PM, Christopher Wood <[email protected] > <javascript:>> wrote: > >> >> >> So how would I auto-magically auto-paragraph hiera yaml to make it >> friendlier for more people, while still keeping it syntactically valid? >> >> >> Example two: >> >> --- >> one::services::enabled: true >> >> one::two::abc: 8.45 >> one::two::three: this is the string >> >> puppet4::ca_server: otherhostname >> puppet4::server: hostname >> > > Another options not yet presented is to split the files out into the > classes they represent. > > This can be done with something like this in your hiera.yaml using the > special variable %{calling_module} > > --- > :yaml: > :hierarchy: > - foo/%{calling_module} > > or %{calling_module_path} which replaces :: by /
usefull if you checkout your hiera git repo on Windows where no : are allowed in filenames. - Thomas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/58f6a985-10af-49d0-827f-f9cdb3133f84%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
