{"action":"created","issue":{"url":"https://api.github.com/repos/ripienaar/puppet-module-data/issues/21","labels_url":"https://api.github.com/repos/ripienaar/puppet-module-data/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ripienaar/puppet-module-data/issues/21/comments","events_url":"https://api.github.com/repos/ripienaar/puppet-module-data/issues/21/events","html_url":"https://github.com/ripienaar/puppet-module-data/issues/21","id":54203511,"number":21,"title":"Module Data backend over-rides core Hiera backend... ","user":{"login":"fatmcgav","id":2235170,"avatar_url":"https://avatars.githubusercontent.com/u/2235170?v=3","gravatar_id":"","url":"https://api.github.com/users/fatmcgav","html_url":"https://github.com/fatmcgav","followers_url":"https://api.github.com/users/fatmcgav/followers","following_url":"https://api.github.com/users/fatmcgav/following{/other_user}","gists_url":"https://api.github.com/users/fatmcgav/gists{/gist_id}","starred_url":"https://api.github.com/users/fatmcgav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatmcgav/subscriptions","organizations_url":"https://api.github.com/users/fatmcgav/orgs","repos_url":"https://api.github.com/users/fatmcgav/repos","events_url":"https://api.github.com/users/fatmcgav/events{/privacy}","received_events_url":"https://api.github.com/users/fatmcgav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-13T15:03:45Z","updated_at":"2015-01-13T15:16:44Z","closed_at":null,"body":"Firstly, thanks for a great addition, I've found it very useful. \r\n\r\nAnyhow, the issue I'm seeing is that I'm using the module data backend to ship data for some internal application modules. \r\nThis works great for prod, however we now want to use the same modules in Dev, whilst changing some of the values that are pulled in from hiera... \r\n\r\nI'd hoped it would have been a simple case of providing the modified values in the core hiera data, however it appears that the module data backend gets looked up after the core backend, thereby preventing us from over-riding application module data... \r\n\r\nAn example of this from a debug puppet run is: \r\n> Debug: hiera(): Looking up remotepost::resources in YAML backend\r\nDebug: hiera(): Looking for data source applications/ncr\r\nDebug: hiera(): Looking for data source applications/remotepost\r\nDebug: hiera(): Found remotepost::resources in applications/remotepost\r\nDebug: hiera(): Looking for data source nodes/rps-node1\r\nDebug: hiera(): Looking for data source os/CentOS\r\nDebug: hiera(): Looking for data source common/common\r\nDebug: hiera(): Looking up remotepost::resources in Module Data backend\r\nDebug: hiera(): Reading config from /tmp/vagrant-puppet-3/modules-0/remotepost/data/hiera.yaml file\r\nDebug: hiera(): Looking for data in source /tmp/vagrant-puppet-3/modules-0/remotepost/data/version/.yaml\r\nDebug: hiera(): Looking for data in source /tmp/vagrant-puppet-3/modules-0/remotepost/data/common.yaml\r\n\r\nIs there a way around this? \r\n\r\nCheers\r\nGav"},"comment":{"url":"https://api.github.com/repos/ripienaar/puppet-module-data/issues/comments/69759224","html_url":"https://github.com/ripienaar/puppet-module-data/issues/21#issuecomment-69759224","issue_url":"https://api.github.com/repos/ripienaar/puppet-module-data/issues/21","id":69759224,"user":{"login":"beddari","id":692371,"avatar_url":"https://avatars.githubusercontent.com/u/692371?v=3","gravatar_id":"","url":"https://api.github.com/users/beddari","html_url":"https://github.com/beddari","followers_url":"https://api.github.com/users/beddari/followers","following_url":"https://api.github.com/users/beddari/following{/other_user}","gists_url":"https://api.github.com/users/beddari/gists{/gist_id}","starred_url":"https://api.github.com/users/beddari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beddari/subscriptions","organizations_url":"https://api.github.com/users/beddari/orgs","repos_url":"https://api.github.com/users/beddari/repos","events_url":"https://api.github.com/users/beddari/events{/privacy}","received_events_url":"https://api.github.com/users/beddari/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T15:16:44Z","updated_at":"2015-01-13T15:16:44Z","body":"This is indeed how I expect (and count on) it to work ...\r\n\r\nI remember I saw some work on Hiera backend ordering but not sure where or how that went."}}