Jira (HI-376) datadir in hiera.yaml not interpolating %{::environment}
Title: Message Title Kurt Wall updated an issue Hiera / HI-376 datadir in hiera.yaml not interpolating %{::environment} Change By: Kurt Wall QA Risk Assessment Reason: N/A for unreproducible bugs Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (HI-376) datadir in hiera.yaml not interpolating %{::environment}
Title: Message Title Kurt Wall updated an issue Hiera / HI-376 datadir in hiera.yaml not interpolating %{::environment} Change By: Kurt Wall QA Status: Reviewed Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (HI-376) datadir in hiera.yaml not interpolating %{::environment}
Title: Message Title Sivakalyan Chintakana commented on HI-376 Re: datadir in hiera.yaml not interpolating %{::environment} Henrik Lindberg Please close the ticket. Using puppet apply to test worked. $ cat hiera.yaml --- :backends: - yaml :hierarchy: - "nodes/%{::fqdn}" - "environment/%{::environment}" - global :yaml: # datadir is empty here, so hiera uses its defaults:
Jira (HI-376) datadir in hiera.yaml not interpolating %{::environment}
Title: Message Title Sivakalyan Chintakana commented on HI-376 Re: datadir in hiera.yaml not interpolating %{::environment} Looks like :: is required while setting the variables on the command line. $ hiera -d message environment=production DEBUG: 2015-06-02 01:10:56 +: Hiera YAML backend starting DEBUG: 2015-06-02 01:10:56 +: Looking up message in YAML backend DEBUG: 2015-06-02 01:10:56 +: Looking for data source global nil $ hiera -d message ::environment=production DEBUG: 2015-06-02 01:11:11 +: Hiera YAML backend starting DEBUG: 2015-06-02 01:11:11 +: Looking up message in YAML backend DEBUG: 2015-06-02 01:11:11 +: Looking for data source environment/production
Jira (HI-376) datadir in hiera.yaml not interpolating %{::environment}
Title: Message Title Henrik Lindberg commented on HI-376 Re: datadir in hiera.yaml not interpolating %{::environment} The hiera command does not understand anything about variables that are available when hiera is used from inside puppet. You must explicitly set them on the command line. (And do not use :: when doing so). Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (HI-376) datadir in hiera.yaml not interpolating %{::environment}
Title: Message Title Sivakalyan Chintakana commented on HI-376 Re: datadir in hiera.yaml not interpolating %{::environment} Henrik Lindberg I haven't used it in a manifest yet. However, I use it in the hierarchy and works fine when I have the full path in the :datadir. $ cat /etc/puppetlabs/code/hiera.yaml --- :backends: - yaml :hierarchy: - "nodes/%{::fqdn}" - "environment/%{::environment}" - global :yaml:
Jira (HI-376) datadir in hiera.yaml not interpolating %{::environment}
Title: Message Title Henrik Lindberg commented on HI-376 Re: datadir in hiera.yaml not interpolating %{::environment} oh, this is via the hiera command - does it work when used with puppet? i.e. in a puppet manifest? Suspect you have to provide all the variables that should be set, or get them as stored facts for a node - which is broken in some versions of hiera/puppet. (The hiera command line app is not the greates). Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (HI-376) datadir in hiera.yaml not interpolating %{::environment}
Title: Message Title Sivakalyan Chintakana commented on HI-376 Re: datadir in hiera.yaml not interpolating %{::environment} Removed the "::" in front of "environment" variable and restarted puppet server. Same issue persists. $ cat /etc/puppetlabs/code/hiera.yaml --- :backends: - yaml :hierarchy: - "nodes/%{::fqdn}" - "environment/%{::environment}" - global :yaml: :datadir: "/etc/puppetlabs/code/hieradata/%{environment}"
Jira (HI-376) datadir in hiera.yaml not interpolating %{::environment}
Title: Message Title Henrik Lindberg updated an issue Hiera / HI-376 datadir in hiera.yaml not interpolating %{::environment} Change By: Henrik Lindberg Priority: Critical Normal Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (HI-376) datadir in hiera.yaml not interpolating %{::environment}
Title: Message Title Henrik Lindberg assigned an issue to Sivakalyan Chintakana Hiera / HI-376 datadir in hiera.yaml not interpolating %{::environment} Change By: Henrik Lindberg Assignee: Sivakalyan Chintakana Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (HI-376) datadir in hiera.yaml not interpolating %{::environment}
Title: Message Title Henrik Lindberg commented on HI-376 Re: datadir in hiera.yaml not interpolating %{::environment} Please try dropping the :: in front of the names - hiera only interpolates top scope variables anyway. Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (HI-376) datadir in hiera.yaml not interpolating %{::environment}
Title: Message Title Henrik Lindberg moved an issue Hiera / HI-376 datadir in hiera.yaml not interpolating %{::environment} Change By: Henrik Lindberg Fix Version/s: PUP 4.1.0 Component/s: Puppet Server Affects Version/s: PUP 4.1.0 Key: PUP HI - 4667 376 Project: Puppet Hiera Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receivin