Issue #22647 has been updated by Henrik Lindberg. Status changed from Accepted to In Topic Branch Pending Review Branch set to https://github.com/puppetlabs/puppet/pull/1957
https://github.com/puppetlabs/puppet/pull/1957 ---------------------------------------- Feature #22647: Add smart defaults in Hiera-2 hiera.yaml / binder_config.yaml https://projects.puppetlabs.com/issues/22647#change-98186 * Author: Henrik Lindberg * Status: In Topic Branch Pending Review * Priority: Normal * Assignee: * Category: databinding * Target version: * Affected Puppet version: * Keywords: databinding hiera-2 usability * Branch: https://github.com/puppetlabs/puppet/pull/1957 ---------------------------------------- Currently, a level in the hierarchy needs to be defined with: <pre> - ['osfamily', '${osfamily}', 'data/osfamily/${osfamily}'] </pre> By using smart defaults, this could be reduced to: <pre> - 'osfamily' </pre> If the `value` is missing, use the name of the category as the name of the variable to interpolate, and use `"'<datadir>/<category-name>/'${<category-name>}'"` as the default path. This depends on #22646 where the format is changed to a format with named attributes instead of an anonymous array of data. Also add the corresponding smart defaults to binder_config.yaml, to enable a compact listing of the categories like this: <pre> categories: - 'node' - 'operatingsystem' - 'osfamily' - 'environment' - 'common' </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
