{"action":"closed","issue":{"url":"https://api.github.com/repos/ripienaar/puppet-module-data/issues/31","labels_url":"https://api.github.com/repos/ripienaar/puppet-module-data/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/ripienaar/puppet-module-data/issues/31/comments","events_url":"https://api.github.com/repos/ripienaar/puppet-module-data/issues/31/events","html_url":"https://github.com/ripienaar/puppet-module-data/issues/31","id":111120302,"number":31,"title":"[QUESTION] Does it support environment hierarchy ?","user":{"login":"mickaelperrin","id":5844226,"avatar_url":"https://avatars.githubusercontent.com/u/5844226?v=3","gravatar_id":"","url":"https://api.github.com/users/mickaelperrin","html_url":"https://github.com/mickaelperrin","followers_url":"https://api.github.com/users/mickaelperrin/followers","following_url":"https://api.github.com/users/mickaelperrin/following{/other_user}","gists_url":"https://api.github.com/users/mickaelperrin/gists{/gist_id}","starred_url":"https://api.github.com/users/mickaelperrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickaelperrin/subscriptions","organizations_url":"https://api.github.com/users/mickaelperrin/orgs","repos_url":"https://api.github.com/users/mickaelperrin/repos","events_url":"https://api.github.com/users/mickaelperrin/events{/privacy}","received_events_url":"https://api.github.com/users/mickaelperrin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-13T07:20:57Z","updated_at":"2015-10-13T07:53:06Z","closed_at":"2015-10-13T07:53:06Z","body":"Hi,\r\n\r\nI created two environments in my node (dev and production).\r\n\r\nI would like to provide good defaults for each environments using different hiera files. My first approach was to combine defaults in one hiera file (common.yaml) and it works really great.\r\n\r\nNow, I would like to split defaults for each environment.\r\n\r\nI updated my hiera.yaml with `- \"%{::environment}\"` : \r\n\r\n    ---\r\n    :version: 3\r\n    :hierarchy:\r\n      - \"%{::environment}\"\r\n      - common\r\n    :backends:\r\n      - yaml\r\n    \r\nThen in the data folder of my module, alongside common.yaml, I created two files `dev.yaml` and `production.yaml`.\r\n\r\nBut the settings, I put in those files are not retrieved. \r\n\r\nAm I missing something ?\r\n\r\nThanks,"}}