Hiera 2.0.0 is a new major version that includes several new features that expand Hiera's abilities. It also includes one breaking change so please read the release notes linked below.New features include the ability to pass options to the deep merge gem, new sub-keys to allow lookups to index into data structures, and an `alias()` function to make a key an alias for another key. It also includes a fix for interpolation recursion loops and several other bugs.Release notes are available here: http://docs.puppetlabs.com/hiera/latest/release_notes.htmlTo see a complete list of issues fixed in this release: https://tickets.puppetlabs.com/issues/?filter=13825We're tracking bugs people find in this release with the "Affected Version" field set to "HI 2.0.0": https://tickets.puppetlabs.com/issues/?filter=13824
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CALsUZFFun_HsmnEOUF9%2BhdWznzfO4RPp%3DoJvxNp4RGwhRXrrYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Is there going to be a native package drop of Hiera pre-AIO?
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CANs%2BFoV%2BHX1EXMgr2jSzjV98MnoOAin3ZkZxF_UAqTrnMBUPbA%40mail.gmail.com.
Would someone please explain a little more about HI-14, though, and especially about how the change implemented to fix that issue actually addresses it at all? The issue description is about traversing structured data in interpolation tokens, with an especial focus on structured fact values, but the "fix" seems to have been to modify the interpretation of keys. Either I'm misunderstanding something, or that doesn't address the issue at all.
On 2015-03-31 14:57, John Bollinger wrote:
A key can be qualified and consist of several segments. Let's assume that the first segment is the key of some structured data. The remaining segments of the key will then navigate in that data. Example:
On Thursday, March 26, 2015 at 8:24:30 AM UTC-5, John Bollinger wrote:
Would someone please explain a little more about HI-14, though, and especially about how the change implemented to fix that issue actually addresses it at all? The issue description is about traversing structured data in interpolation tokens, with an especial focus on structured fact values, but the "fix" seems to have been to modify the interpretation of keys. Either I'm misunderstanding something, or that doesn't address the issue at all.
Kylo? Anybody? Bueller?
$ hiera user
{"name"=>"kim", "home"=>"/home/kim"}
$ hiera user.name
kim
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/fc95b2f5-e5e0-402a-8c0d-1e9fcf0a82ab%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/551C6E8C.2080907%40puppetlabs.com.
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/551C860E.7030701%40puppetlabs.com.
Agreed, but as John points out, it *was* legal (intentionally or not) so this is a breaking change for some people.
Being a breaking change, I would vote for backing it out until something can be decided that will not break existing systems.
Is there any value that current is not valid in a key that would work instead of a dot?
Thanks,
Trevor
On Wed, Apr 1, 2015 at 7:58 PM, Thomas Hallgren <thomas....@puppetlabs.com> wrote:
On 2015-04-02 01:29, Trevor Vaughan wrote:
I think perhaps if the issue could be pointed out that provides for *key* interpolation on dotted values without interpolation notation, that might clear things up.I think that whether declaring a value with a dotted key is considered legal or not is a separate discussion. If that's the case, then we can't use dots to traverse. Not when looking up and not in interpolated expressions (since that's an implicit lookup).
Thomas' example does provide HI-14 as I read it *but* there may have been an unintended side effect that the following is a disaster for exsiting sites:
my.days_up: "%{system_uptime.days}"
my.days_up will try to traverse into the data structure of 'my' and will break. This is bad. Nothing should be interpolated that is not surrounded in "%{}"
- thomas
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/551C860E.7030701%40puppetlabs.com.
--
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvau...@onyxpoint.com
-- This account not approved for unencrypted proprietary information --
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CANs%2BFoVtQhG34cFk6BADSnQAubrWhLx6ARbmKEmGDJ9ZMTwBtw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/551C8AB3.4080000%40puppetlabs.com.
John,
We're seem to be talking past each other here. The description in HI-14 mentions facts specifically and that too is available. I can declare this for instance:
days_up: "%{scope('system_uptime.days')}"
or simply:
days_up: "%{system_uptime.days}"
and it returns the 'days' item from the structured fact 'system_uptime'. IMO, that's "traversing structured data in interpolation tokens, with especial focus on structured fact values" but it's obviously not what you're looking for.
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/673143a1-1d76-448d-a402-a518135748c0%40googlegroups.com.
John,
The HI-14's requested behavior was not implemented as an afterthought. On the contrary. Since all facts have been available in the top scope since Puppet 3.5, there was simply no need for a specific handling of facts in Hiera and the approach taken was very deliberate. We knew that whatever we would put in place would be applicable for all variables in the scope. We also knew that since scope variables are not the only structured data out there, it would be somewhat congested to create solution that would work only with scope variables but not with everything else. I think that would have been a really bad decision and as far as I can remember it was never brought up to discussion.
The current solution works with:
%{scope('some.dotted.key')}
and
%{hiera('some.dotted.key')}
and
Hiera.lookup('some.dotted.key')
The interpolated hiera lookup is implicitly doing the last one so they need to come as a package.
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/c522c4a4-832b-4915-909d-877af185ef5f%40googlegroups.com.