Jira (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-04-07 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Release Notes Summary:
 
 This  is  was  a regression  in 4.9.4  from 4.9.3 , but it affects a feature  that  hasn't previously shipped with PE.In  in  some very rare cases ,  could cause  a v5 hiera.yaml file  can  to  ignore certain hierarchy levels. This only  happens  happened  for hierarchy levels that  interpolate  interpolated  a top-scope variable whose value was set after the _first_ Hiera lookup. Even then, it only  occurs  occurred  if the variable  is  was  an array or hash, the hierarchy level accesses one of its members with key.subkey notation, _and_ the variable  is  was  referenced with the top-scope namespace (`::attributes.role`). If this affects you, you can remove the top-scope namespace (`attributes.role`) to work around it until this bug This problem  is  now  fixed. However, we strongly recommend against making your hierarchy self-configuring like this. You should only interpolate the `$facts`, `$trusted`, and `$server_facts` variables in your hierarchy. (Dirty details: In the lookup that initially sets the offending variable, that variable doesn't exist yet. Hiera remembers that it doesn't exist, so in subsequent lookups it won't use the new value. This is part of an optimization for top-scope variables that don't change, which is why removing the top namespace works around it.) 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 

Jira (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-04-07 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-7336 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 
 
The "known issue note" was for Puppet 4.9.4. It is fixed in 4.10.0. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-04-07 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Release Notes:
 
 Known Issue Bug Fix 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-22 Thread Eric Thompson (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Eric Thompson updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Eric Thompson 
 
 
 

QA Risk Assessment Reason:
 
 covered by unit tests 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-22 Thread Eric Thompson (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Eric Thompson updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Eric Thompson 
 
 
 

QA Risk Assessment:
 
 Needs Assessment No Action 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

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

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Story Points:
 
 1 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

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

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Sprint:
 
 PDE 2017-03-22 , PDE 2017-04-05 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-22 Thread Thomas Hallgren (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Hallgren assigned an issue to qa 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Thomas Hallgren 
 
 
 

Status:
 
 Ready for  CI  Test 
 
 
 

Assignee:
 
 qa 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-22 Thread Kenn Hussey (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kenn Hussey updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Kenn Hussey 
 
 
 

Fix Version/s:
 
 PUP 4.9.z 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

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

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Sprint:
 
 PDE 2017-03-22 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-22 Thread Kenn Hussey (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kenn Hussey commented on  PUP-7336 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 
 
Henrik Lindberg should this be added to the current sprint? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-13 Thread Linus Lotz (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Linus Lotz updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Linus Lotz 
 
 
 

Release Notes Summary:
 
 This is a regression from 4.9.3, but it affects a feature that hasn't previously shipped with PE.In some very rare cases, a v5 hiera.yaml file can ignore certain hierarchy levels. This only happens for hierarchy levels that interpolate a top-scope variable  _whose  whose  value was set  with a  after the _first_  Hiera  lookup_ (like `$attributes =  lookup ('attributes')`) . Even then, it only occurs if the variable is an array or hash, the hierarchy level accesses one of its members with key.subkey notation, _and_ the variable is referenced with the top-scope namespace (`::attributes.role`).If this affects you, you can remove the top-scope namespace (`attributes.role`) to work around it until this bug is fixed. However, we strongly recommend against making your hierarchy self-configuring like this. You should only interpolate the `$facts`, `$trusted`, and `$server_facts` variables in your hierarchy.(Dirty details: In the lookup that initially sets the offending variable, that variable doesn't exist yet. Hiera remembers that it doesn't exist, so in subsequent lookups it won't use the new value. This is part of an optimization for top-scope variables that don't change, which is why removing the top namespace works around it.) 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 

Jira (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-13 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-7336 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 
 
Linus Lotz Yes, the manner in which the global variable is set is not important - only that there was a lookup and interpolation of that variable prior to setting it. The interpolation must then also use a sub lookup in that variable (i.e. using 'dot notation') to trigger the problem fixed in this ticket. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-13 Thread Linus Lotz (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Linus Lotz commented on  PUP-7336 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 
 
Thanks for the quick reply and fix! Just a remark on the release note summary: From what I understood the issue is triggered when a global variable is set after the first hiera lookup and the hierachy contains an interpolation using a array (or possibly hash) access to this variable. So it does not require the global variable to be set with hiera, the global variable just has to be set after the first lookup, right? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-12 Thread Thomas Hallgren (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Hallgren assigned an issue to Unassigned 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Thomas Hallgren 
 
 
 

Assignee:
 
 Thomas Hallgren 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Thomas Hallgren (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Hallgren commented on  PUP-7336 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 
 
I can confirm that this is related to dotted key lookup. That particular lookup, when called in an interpolation, will result in an empty string rather than nil when there is no value. Consequently, Hiera thinks that the global variable is set and decides that it's now stable. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Thomas Hallgren (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Hallgren updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Thomas Hallgren 
 
 
 

Comment:
 
 Some conclusions from looking at the description. This interpolation:{code}%{::roles.0}{code}refers to the global scope variable 'roles'. The declaration here, however:{code}roles:- test1{code}declares a 'roles', that doesn't. It cannot be found using an interpolation _expression_ that references a global scope variable. For that to happen, the interpolation must use a function, e.g. {{%{hiera('roles')\}}}, or rely on that some calling scope declares it as a variable (which still wouldn't make it available as anything but local, i.e. without '::' prefix). Perhaps that's the case here? I suspect it is, because if changing 'roles' to '::roles', makes a difference, then it must be caused a declaration in the local scope of the caller. That scope might well have a 'roles' defined and it might be related to the declaration described in the declaration. If so, it's an undesired side effect and the fact that it used to work using a global scope declaration was a bug. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 

Jira (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Nicholas Fagerlund (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nicholas Fagerlund updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Nicholas Fagerlund 
 
 
 

Release Notes Summary:
 
 If a non existing global variable This  is  interpolated into  a  path with both leading  regression from 4.9.3, but it affects a feature that hasn  ' ::' and t previously shipped with PE.In some very rare cases,  a  reference to  v5 hiera.yaml file can ignore certain hierarchy levels. This only happens for hierarchy levels that interpolate  a  subpart  top-scope variable _whose value was set with a Hiera lookup_  ( using dot notation like `$attributes = lookup('attributes' )  for example "%{::mylist `) . 0}" (with  Even then, it only occurs if  the  result that a warning is logged that  variable  does not exist) and where  is an array or hash,  the  hierarchy level accesses one of its members with key.subkey notation, _and_ the  variable is  later assigned in  referenced with the  top -  scope  given a value from a lookup  namespace (`::attributes.role`).If this affects you ,  such that subsequent lookups would find a value -  you can remove  the  result  top-scope namespace (`attributes.role`) to work around it until this bug  is  a faulty interpolation as hiera 5 does not understand  fixed. However, we strongly recommend against making your hierarchy self-configuring like this. You should only interpolate the `$facts`, `$trusted`, and `$server_facts` variables in your hierarchy.(Dirty details: In the lookup  that  initially sets  the  offending  variable  now has a value , that variable doesn't exist yet .  A workaround is to not use  Hiera remembers that it doesn  ' :: t exist, so in subsequent lookups it won '  when interpolating t use  the  new  value. This is  a regression from 4  part of an optimization for top-scope variables that don't change, which is why removing the top namespace works around it . 9.3. ) 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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

Jira (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Thomas Hallgren (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Hallgren commented on  PUP-7336 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 
 
Some conclusions from looking at the description. This interpolation: 
 
 
 
 
 
 
%{::roles.0}
 
 
 
 
 
 
 
refers to the global scope variable 'roles'. The declaration here, however: 
 
 
 
 
 
 
roles: 
 
 
 
 
- test1
 
 
 
 
 
 
 
declares a 'roles', that doesn't. It cannot be found using an interpolation _expression_ that references a global scope variable. For that to happen, the interpolation must use a function, e.g. %{hiera('roles')}, or rely on that some calling scope declares it as a variable. Perhaps that's the case here? I suspect it is, because if changing 'roles' to '::roles', makes a difference, then it must be caused a declaration in the local scope of the caller. That scope might well have a 'roles' defined and it might be related to the declaration described in the declaration. If so, it's an undesired side effect and the fact that it used to work using a global scope declaration was a bug. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 

Jira (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Susan McNerney (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Susan McNerney commented on  PUP-7336 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 
 
Just to make it clear to non-agent team members, the Agent team decided this is NOT a showstopper for the Flanders 2017.1 PE release and will be fixed in Agent after that goes out. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-7336 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 
 
I am fine making this a major again if others feel that way - we are fixing it asap anyway. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-7336 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 
 
Nicholas Fagerlund To trigger this error you would also have to perform a lookup before the global variable is set, and you have to use that global variable in an interpolation, and you have to do that with a subkey lookup. For any normal use of facts etc, or variables set at top scope before lookups/ APL are performed there will be no problem.  
I.e. the advice/ workaround is most likely ok as a temporary fix - or even better - stop using a solution that requires looking up a variable that is then interpolated to define the hierarchy.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

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

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Release Notes Summary:
 
 If a non existing global variable is interpolated into a path with both leading '::' and a reference to a subpart (using dot notation) for example "%{::mylist.0}" (with the result that a warning is logged that variable does not exist) and where the variable is later assigned in top scope given a value from a lookup, such that subsequent lookups would find a value - the result is a faulty interpolation as hiera 5 does not understand that the variable now has a value. A workaround is to not use '::' when interpolating the value. This is a regression from 4.9.3. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Eric Thompson (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Eric Thompson updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Eric Thompson 
 
 
 

Labels:
 
 regression 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Lindsey Smith (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Lindsey Smith updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Lindsey Smith 
 
 
 

Release Notes:
 
 Known Issue 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Nicholas Fagerlund (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nicholas Fagerlund commented on  PUP-7336 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 
 
Henrik Lindberg I think I disagree. Hiera is the one place in Puppet where the leading :: is necessary, because the parent scope of a given lookup is completely out of Hiera's control. If it's not one of the three protected variables, you need the :: to ensure you're getting the proper top-scope value rather than some arbitrary local value. I'm in favor of "major." 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-7336 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 
 
I first changed this to a major problem - but realized that a work around is to simply drop the leading '::'. Hence setting this at normal priority. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

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

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Priority:
 
 Major Normal 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Josh Cooper 
 
 
 

Team:
 
 Puppet Developer Experience 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

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

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Fix Version/s:
 
 PUP 4.10.0 
 
 
 

Fix Version/s:
 
 PUP 4.9.z 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg assigned an issue to Thomas Hallgren 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Assignee:
 
 Thomas Hallgren 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

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

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Priority:
 
 Normal Major 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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 (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

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

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 
 
 
 
 
 
 
 When using an array in hiera.yaml changes of global variables are ignored in puppet 4.9.4.Example environments/development/hiera.yaml:{code:yaml}---version: 5defaults:  datadir: 'data'  data_hash: yaml_datahierarchy:  - name: "Global settings"path: "global.yaml"  - name: "Role specific settings"paths:  - "roles/%{::roles.0}.yaml"{code}Example test.pp:{code:puppet}$roles = lookup('roles')$data = lookup('data', Array[String], 'unique')notify{"data: ${data}":}{code}Example environments/development/data/global.yaml:{code:yaml}roles:- test1data:- "from global"{code}Example environments/development/data/roles/test1.yaml:{code:yaml}data:- 'from test1'{code}When running "puppet apply --environment=development test.pp" this results in:{code}Warning: Undefined variable '::roles';(file & line not available)Notice: Compiled catalog for hostname in environment development in 0.07 secondsNotice: data: [from global]Notice: /Stage[main]/Main/Notify[data: [from global]]/message: defined 'message' as 'data: [from global]'Notice: Applied catalog in 0.17 seconds{code}When changing  {code}  "roles/%{::roles.0}.yaml" {code}  to  {code}  "roles/%{roles.0}.yaml" {code}  puppet apply returns:{code}Warning: Undefined variable 'roles';(file & line not available)Notice: Compiled catalog for hostname in environment development in 0.07 secondsNotice: data: [from global, from test1]Notice: /Stage[main]/Main/Notify[data: [from global, from test1]]/message: defined 'message' as 'data: [from global, from test1]'Notice: Applied catalog in 0.17 seconds{code}In Puppet 4.9.3 both versions return the same result. This bug is probably related to PUP-7303. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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

Jira (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

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

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 
 
 
 
 
 
 
 When using an array in hiera.yaml changes of global variables are ignored in puppet 4.9.4.Example environments/development/hiera.yaml:{ { code:yaml} ---version: 5defaults:  datadir: 'data'  data_hash: yaml_datahierarchy:  - name: "Global settings"path: "global.yaml"  - name: "Role specific settings"paths:  - "roles/%{::roles.0}.yaml" {code } } Example test.pp:{ { code:puppet} $roles = lookup('roles')$data = lookup('data', Array[String], 'unique')notify{"data: ${data}":} {code } } Example environments/development/data/global.yaml:{ { code:yaml} roles:- test1data:- "from global" {code } } Example environments/development/data/roles/test1.yaml:{ { code:yaml} data:- 'from test1' {code } } When running "puppet apply --environment=development test.pp" this results in:{ { code} Warning: Undefined variable '::roles';(file & line not available)Notice: Compiled catalog for hostname in environment development in 0.07 secondsNotice: data: [from global]Notice: /Stage[main]/Main/Notify[data: [from global]]/message: defined 'message' as 'data: [from global]'Notice: Applied catalog in 0.17 seconds {code } } When changing "roles/%{::roles.0}.yaml" to "roles/%{roles.0}.yaml" puppet apply returns:{ { code} Warning: Undefined variable 'roles';(file & line not available)Notice: Compiled catalog for hostname in environment development in 0.07 secondsNotice: data: [from global, from test1]Notice: /Stage[main]/Main/Notify[data: [from global, from test1]]/message: defined 'message' as 'data: [from global, from test1]'Notice: Applied catalog in 0.17 seconds {code } } In Puppet 4.9.3 both versions return the same result. This bug is probably related to PUP-7303. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

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

Jira (PUP-7336) Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4

2017-03-10 Thread Linus Lotz (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Linus Lotz created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7336 
 
 
 
  Interpolation behavior in hiera.yaml changed between Puppet version 4.9.3 and 4.9.4  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 4.9.4 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2017/03/10 8:19 AM 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Linus Lotz 
 
 
 
 
 
 
 
 
 
 
When using an array in hiera.yaml changes of global variables are ignored in puppet 4.9.4. Example environments/development/hiera.yaml: {{ — version: 5 
defaults: datadir: 'data' data_hash: yaml_data 
hierarchy: 
 

name: "Global settings" path: "global.yaml"
 

name: "Role specific settings" paths:
 

"roles/%{::roles.0}.yaml" }} Example test.pp: {{ $roles = lookup('roles') $data = "" Array[String], 'unique') notify 

Unknown macro: {"data} 
 
}} Example environments/development/data/global.yaml: {{ roles:
 

test1