{"action":"created","issue":{"url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/141","repository_url":"https://api.github.com/repos/voxpupuli/puppet-hiera","labels_url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/141/comments","events_url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/141/events","html_url":"https://github.com/voxpupuli/puppet-hiera/issues/141","id":166788622,"number":141,"title":"Variables in a single-quote is changed to value - should not be (according to the README)","user":{"login":"khdevel","id":4986837,"avatar_url":"https://avatars.githubusercontent.com/u/4986837?v=3","gravatar_id":"","url":"https://api.github.com/users/khdevel","html_url":"https://github.com/khdevel","followers_url":"https://api.github.com/users/khdevel/followers","following_url":"https://api.github.com/users/khdevel/following{/other_user}","gists_url":"https://api.github.com/users/khdevel/gists{/gist_id}","starred_url":"https://api.github.com/users/khdevel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khdevel/subscriptions","organizations_url":"https://api.github.com/users/khdevel/orgs","repos_url":"https://api.github.com/users/khdevel/repos","events_url":"https://api.github.com/users/khdevel/events{/privacy}","received_events_url":"https://api.github.com/users/khdevel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-21T10:36:17Z","updated_at":"2016-09-02T12:00:27Z","closed_at":null,"body":"### Affected Puppet, Ruby, OS and module versions/distributions\r\nPuppet v3.8.4\r\n\r\n### What are you seeing\r\nIn the _/etc/puppet/hiera.yaml_ the values in a _hierarchy_ are completed strings but should be with some variables. According to the README it should work in other way.\r\n\r\n### What behavior did you expect instead\r\nAfter the puppet executes the code my _hiera.yaml_ file looks as below:\r\n```\r\n:hierarchy:\r\n  - hieradata/host_type/dev/foreman\r\n```\r\nBut should...:\r\n```\r\n:hierarchy:\r\n  - \"hieradata/host_type/%{::deployment_group}/%{::host_type}\"\r\n```\r\nIf I \"escape\" the special characters I have a mess in my hiera.yaml:\r\nConfiguration:\r\n```\r\nclasses:\r\n  - hiera\r\nhiera::hierarchy:\r\n  - 'hieradata/host_type/\\%\\{\\:\\:deployment_group\\}/\\%\\{\\:\\:host_type\\}'\r\n```\r\nOutput:\r\n```\r\n:hierarchy:\r\n  - 'hieradata/host_type/\\x5c%\\x5c{\\x5c:\\x5c:deployment_group\\x5c}/\\x5c%\\x5c{\\x5c:\\x5c:host_type\\}'\r\n```\r\n### How did this behavior get triggered\r\nMy configuration for THIS host in hieradata is:\r\n```\r\nclasses:\r\n  - hiera\r\nhiera::hierarchy:\r\n  - 'hieradata/host_type/%{::deployment_group}/%{::host_type}'\r\n```\r\n### Output log\r\n\r\n### Any additional information you'd like to impart\r\n"},"comment":{"url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/comments/244356121","html_url":"https://github.com/voxpupuli/puppet-hiera/issues/141#issuecomment-244356121","issue_url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/141","id":244356121,"user":{"login":"ortegaga","id":7382862,"avatar_url":"https://avatars.githubusercontent.com/u/7382862?v=3","gravatar_id":"","url":"https://api.github.com/users/ortegaga","html_url":"https://github.com/ortegaga","followers_url":"https://api.github.com/users/ortegaga/followers","following_url":"https://api.github.com/users/ortegaga/following{/other_user}","gists_url":"https://api.github.com/users/ortegaga/gists{/gist_id}","starred_url":"https://api.github.com/users/ortegaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ortegaga/subscriptions","organizations_url":"https://api.github.com/users/ortegaga/orgs","repos_url":"https://api.github.com/users/ortegaga/repos","events_url":"https://api.github.com/users/ortegaga/events{/privacy}","received_events_url":"https://api.github.com/users/ortegaga/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T12:00:27Z","updated_at":"2016-09-02T12:00:27Z","body":"Well, in fact README doesn't explain the way to \"feed\" class parameters via hiera itself. Acording to [this](https://tickets.puppetlabs.com/browse/HI-127) ticket, you must define your hierachy this way:\r\n```\r\nhiera::hierarchy:\r\n  - 'hieradata/host_type/%%{}{::deployment_group}/%%{}{::host_type}'\r\n```\r\nAt least, this solved the problem for me."}}
{"actor":{"display_login":"ortegaga"}}