Jira (HI-577) Standalone `hiera` command errors with hiera v5 config file

2018-06-19 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Hiera /  HI-577  
 
 
  Standalone `hiera` command errors with hiera v5 config file   
 

  
 
 
 
 

 
Change By: 
 Henrik Lindberg  
 
 
Release Notes Summary: 
 The standalone and deprecated `hiera` CLI does not work with hiera version 5. Please use the `lookup` CLI instead as it works with hiera versions 3, 4 and 5.  
 
 
Release Notes: 
 Bug Fix Known Issue  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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-577) Standalone `hiera` command errors with hiera v5 config file

2018-06-05 Thread Martin Ewings (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Ewings updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Hiera /  HI-577  
 
 
  Standalone `hiera` command errors with hiera v5 config file   
 

  
 
 
 
 

 
Change By: 
 Martin Ewings  
 

  
 
 
 
 

 
 *Overview*Sometimes you need to use the standalone {{hiera}} command to debug a hierarchy when working with tools such as {{onceover}} or when setting up a whole {{puppet lookup}} environment is impractical.If this is attempted using the {{hiera}} command shipped in puppet-agent-1.10.5-1.el7.x86_64.rpm user will always encounter a confusing error if {{version}} is set to {{> 3}} in the {{hiera.yaml}} file*Expected result*Expect to be able to lookup data item on the command line using {{hiera}} command and hiera v5 config file*Actual result*User receives the error:{noformat}  Failed to start Hiera: RuntimeError: v4 hiera.yaml is only to be used inside an environment or a module and cannot be given to the global hiera{noformat}  *Steps to reporoduce*1. Hiera.yaml{noformat}  ---version: 5defaults:   datadir: hieradata  data_hash: yaml_datahierarchy:  - name: "Common data"path: "common.yaml"{noformat}  2. Lookup data as users:{noformat}  hiera -c hiera.yaml ruh::rohFailed to start Hiera: RuntimeError: v4 hiera.yaml is only to be used inside an environment or a module and cannot be given to the global hiera{noformat}  *Analysis*The error message seems to indicate that the hiera configuration file uses the old v4 format but it doesn't, its definitely version 5 and works fine with {{puppet lookup}} if dropped into the correct directory.      Looking at the sourcecode, versions > 3 will allways encounter this error and Indeed the error can be cleared by declaring {{version: 3}} in the {{hiera.yaml}} file.  I didn't check if this 'trick' still lets you work with hiera 5 functionality and wouldn't recommend it.*Workarounds*Setup the system to use {{puppet lookup}}  \ (?)*Desired fix*I'm not sure what is supposed to happen here.  I understand that hiera is now part of puppet but where does this leave the standalone hiera command?  Is it intended to work at all?  Is it deprecated in favour of {{puppet lookup}}?  Is it only intended to work with {{hiera.yaml}} files v3 and earlier?      Would be great to get some clarity around these issues as the error message about v4 configuration files is confusing when file is already in v5 format.  
 

  
 
 
 
 

 
 
 

 
 
 

Jira (HI-577) Standalone `hiera` command errors with hiera v5 config file

2017-09-18 Thread Michael Smith (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Michael Smith updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Hiera /  HI-577 
 
 
 
  Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 

Change By:
 
 Michael Smith 
 
 
 

Fix Version/s:
 
 HI 3.4.2 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-577) Standalone `hiera` command errors with hiera v5 config file

2017-09-18 Thread Michael Smith (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Michael Smith updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Hiera /  HI-577 
 
 
 
  Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 

Change By:
 
 Michael Smith 
 
 
 

Fix Version/s:
 
 HI 3.4.2 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-577) Standalone `hiera` command errors with hiera v5 config file

2017-08-28 Thread Karen Van der Veer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Karen Van der Veer updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Hiera /  HI-577 
 
 
 
  Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 

Change By:
 
 Karen Van der Veer 
 
 
 

Sprint:
 
 Platform Core Grooming 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-577) Standalone `hiera` command errors with hiera v5 config file

2017-08-28 Thread Karen Van der Veer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Karen Van der Veer updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Hiera /  HI-577 
 
 
 
  Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 

Change By:
 
 Karen Van der Veer 
 
 
 

Team:
 
 Platform Core 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-577) Standalone `hiera` command errors with hiera v5 config file

2017-08-28 Thread Karen Van der Veer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Karen Van der Veer assigned an issue to Garrett Guillotte 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Hiera /  HI-577 
 
 
 
  Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 

Change By:
 
 Karen Van der Veer 
 
 
 

Assignee:
 
 Garrett Guillotte 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-577) Standalone `hiera` command errors with hiera v5 config file

2017-08-27 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  HI-577 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 
 
The hiera CLI does not work with hiera 4 or 5 (it has never worked with anything but version 3 (or older)), it is strictly hiera 3 - it is also deprecated in favor of the lookup CLI. (The hiera CLI has a long history of bugs). Even when remaining on a hiera version 3 config, the recommendation is to not use the hiera CLI as the result can be incorrect (i.e. different than when used with puppet). The best way to test something is to use the lookup CLI or to run a simple manifest with the hiera function call or lookup call for the key in question as this provides a result that is the same as what you get when using hiera + puppet in combination in a particular environment. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-577) Standalone `hiera` command errors with hiera v5 config file

2017-08-25 Thread Karen Van der Veer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Karen Van der Veer commented on  HI-577 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 
 
Henrik Lindberg Could you clarify Garrett's point above on the behavior of the hiera CLI? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-577) Standalone `hiera` command errors with hiera v5 config file

2017-08-22 Thread Garrett Guillotte (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Garrett Guillotte commented on  HI-577 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 
 
Karen Van der Veer Henrik Lindberg I think what's already in this ticket is sufficient for any docs updates. I also agree that we should clarify this in the Release Notes. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-577) Standalone `hiera` command errors with hiera v5 config file

2017-08-22 Thread Karen Van der Veer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Karen Van der Veer commented on  HI-577 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 
 
Henrik Lindberg We don't change to DOCS tickets if it's related to a particular project, so I think it's in the right place. Then just marked with Release notes needed. Garrett Guillotte Do you need more info from Henrik? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-577) Standalone `hiera` command errors with hiera v5 config file

2017-08-22 Thread Karen Van der Veer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Karen Van der Veer updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Hiera /  HI-577 
 
 
 
  Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 

Change By:
 
 Karen Van der Veer 
 
 
 

Release Notes:
 
 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 (HI-577) Standalone `hiera` command errors with hiera v5 config file

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

 
 
 
 
 
 
 
 Hiera /  HI-577 
 
 
 
  Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 

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 (HI-577) Standalone `hiera` command errors with hiera v5 config file

2017-08-10 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  HI-577 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 
 
Repurpose this ticket to a DOCS 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 (HI-577) Standalone `hiera` command errors with hiera v5 config file

2017-08-10 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza commented on  HI-577 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 
 
It would be good to add an explicit note about incompatibility with hiera 5 to https://docs.puppet.com/puppet/latest/hiera_intro.html#some-features-are-deprecated where we mention that the hiera CLI tool is deprecated 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-577) Standalone `hiera` command errors with hiera v5 config file

2017-08-10 Thread Geoff Williams (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Geoff Williams commented on  HI-577 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 
 
Henrik Lindberg that comment was exactly what I'm after, thanks.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-577) Standalone `hiera` command errors with hiera v5 config file

2017-08-10 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg moved an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Hiera /  HI-577 
 
 
 
  Standalone `hiera` command errors with hiera v5 config file  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Affects Version/s:
 
 PUP 4.10.5 
 
 
 

Component/s:
 
 Hiera & Lookup 
 
 
 

Key:
 
 PUP HI - 7828 577 
 
 
 

Project:
 
 Puppet Hiera 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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.