Jira (HI-507) Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot

2017-10-03 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Hiera /  HI-507 
 
 
 
  Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot   
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Component/s:
 
 DOCS 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (HI-507) Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot

2017-10-03 Thread Thomas Hallgren (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Hallgren commented on  HI-507 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot   
 
 
 
 
 
 
 
 
 
 
Mihail Mihaylov, I assume that you have a yaml or (corresponding json) file somewhere with that looks like this: 
 
 
 
 
 
 
ssh::keys::firstname.lastname: some value
 
 
 
 
 
 
 
and not like this 
 
 
 
 
 
 
ssh::keys::firstname: 
 
 
 
 
   lastname: some value
 
 
 
 
 
 
 
and you wonder why value isn't found? Expressed as a hash, the two forms would look like this: 
 
 
 
 
 
 
{ 'ssh::keys::firstname.lastname' => 'some value' }# first example 
 
 
 
 
{ 'ssh::keys::firstname' => { 'lastname' => 'some value' } # second example
 
 
 
 
 
 
 
and unless you quote the key (as in really include quotes in a quoted string, not just quote the string itself), then the lookup will roughly do the equivalence of: 
 
 
 
 
 
   

Jira (HI-507) Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot

2017-10-03 Thread Mihail Mihaylov (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mihail Mihaylov commented on  HI-507 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot   
 
 
 
 
 
 
 
 
 
 
Hello Thomas Hallgren, 
I apology for bringing you back on old topic, but could you please clarify a bit more the solution for this "dot issue" with keynames in Hiera. I hit same problem while migrating from Puppet3 to Puppet4. I found that your explanation in this discussion matches behavior I observe for my case. I also read the related tickets and discussions, but I haven't got clear understanding how to make it run properly, yet.  
My particular case is: I use puppet to distribute users' ssh keys, where user names are in format "firstname.lastname". It works fine with Puppet3, but with Puppet4 (Agent v. 4.10.8; Hiera v. 3.3.2 ), Hiera looks only for the "firstname". Dot acts as separator. A short example: 
 
 
 
 
 
 
puppet master --compile mymaster.mydomain.net -v --debug 
 
 
 
 
 
 
 
 
 
Debug: Lookup of 'ssh::keys::firstname.lastname' 
 
 
 
 
  Searching for "ssh::keys::firstname.lastname" 
 
 
 
 
Global Data Provider (hiera configuration version 5) 
 
 
 
 
  Using configuration "/etc/puppetlabs/puppet/hiera.yaml" 
 
 
 
 
  Hierarchy entry "Json hierarchy levels" 
 
 
 
 
Merge strategy hash 
 
 

Jira (HI-507) Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot

2016-03-30 Thread Andreas Papst (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Andreas Papst commented on  HI-507 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot   
 
 
 
 
 
 
 
 
 
 
Hello, 
Are you telling me, that this works as being designed? 
At least it is very confusing when somebody like me did an upgrad from puppet3 to puppet4. With puppet3 this YAML-key with a dot inside was valid and could be used with any tool reporting the respective value. After upgrading to puppet4 it took me half a day to find out this dot is not valid any more even using hiera command itself. And I'm aware of friends running into the same problem. 
May I suggest, that you update your upgrade-documentation including this issue. 
Thank you Andreas 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (HI-507) Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot

2016-03-30 Thread Andreas Papst (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Andreas Papst commented on  HI-507 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot   
 
 
 
 
 
 
 
 
 
 
Yes, my example above is failing even with Hiera 3.1.1 
For my output of your 

HI-504
 checks look at https://tickets.puppetlabs.com/browse/HI-504 
Thank you Andreas 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (HI-507) Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot

2016-03-30 Thread Thomas Hallgren (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Hallgren commented on  HI-507 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot   
 
 
 
 
 
 
 
 
 
 
The problem is that lookup passes a dotted key verbatim to Hiera (lookup has no special processing for dotted keys). Hiera splits the key (it's not quoted). Hence, in the example above it looks for the keys 'foo::@*#bar' (no quotes in there) and 'foo'. It doesn't find 'foo' and hence, raises an error. Lookup has no idea that this particular provider splits keys so it reports that 'foo.bar' cannot be found. 
The behavior would be different if an Hiera Data Provider was used (for environment or module data). It will not split the key unless it's found in an interpolation _expression_. A behavior which in itself can be seen as somewhat inconsistent. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (HI-507) Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot

2016-03-30 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  HI-507 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot   
 
 
 
 
 
 
 
 
 
 
Ping Thomas Hallgren Can you take a look if the example works, or if there is something wrong with 

HI-504
 ? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (HI-507) Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot

2016-03-30 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg assigned an issue to Andreas Papst 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Hiera /  HI-507 
 
 
 
  Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot   
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Assignee:
 
 Andreas Papst 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (HI-507) Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot

2016-03-30 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  HI-507 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot   
 
 
 
 
 
 
 
 
 
 
Maybe I was a bit quick. Are you saying that the example in this ticket is failing for you? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (HI-507) Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot

2016-03-30 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  HI-507 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot   
 
 
 
 
 
 
 
 
 
 
This is still a duplicate of 

HI-504
 so I will close this again. Please do not reopen this. You can see how this was verified on 

HI-504
, also note the easy to make mistakes by others when trying to verify (being bitten by shell quoting etc.). If you have a reproducible sample that shows the problem please post that on Hi-504. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (HI-507) Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot

2016-03-30 Thread Andreas Papst (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Andreas Papst commented on  HI-507 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot   
 
 
 
 
 
 
 
 
 
 
Sorry, but I cannot confirm, that with Hiera 3.1.1 this issue is resolved. In contrary, with 
 
 
 
 
 
 
 puppetserver   2.3.1-1puppetlabs1 
 
 
 
 
 puppet-agent   1.4.1-1jessie 
 
 
 
 
$ /opt/puppetlabs/bin/hiera -V 
 
 
 
 
3.1.1
 
 
 
 
 
 
 
neither hiera command itself nor puppet lookup show up true for foo.bar I still get nil! 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
 

Jira (HI-507) Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot

2016-03-22 Thread Michael Stahnke (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Michael Stahnke moved an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Hiera /  HI-507 
 
 
 
  Puppet lookup (doing a Hiera lookup) in yaml files do not find keys with a dot   
 
 
 
 
 
 
 
 
 

Change By:
 
 Michael Stahnke 
 
 
 

Affects Version/s:
 
 puppet-agent 1.4.0 
 
 
 

Workflow:
 
 Release Engineering Scrum Team  Workflow 
 
 
 

Key:
 
 PA HI - 248 507 
 
 
 

Project:
 
 Puppet Agent Hiera 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit