{"action":"created","issue":{"url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/158","repository_url":"https://api.github.com/repos/voxpupuli/puppet-hiera","labels_url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/158/comments","events_url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/158/events","html_url":"https://github.com/voxpupuli/puppet-hiera/issues/158","id":182232664,"number":158,"title":"Problems configuring eyaml-gpg without eyaml","user":{"login":"earsdown","id":10148059,"avatar_url":"https://avatars.githubusercontent.com/u/10148059?v=3","gravatar_id":"","url":"https://api.github.com/users/earsdown","html_url":"https://github.com/earsdown","followers_url":"https://api.github.com/users/earsdown/followers","following_url":"https://api.github.com/users/earsdown/following{/other_user}","gists_url":"https://api.github.com/users/earsdown/gists{/gist_id}","starred_url":"https://api.github.com/users/earsdown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earsdown/subscriptions","organizations_url":"https://api.github.com/users/earsdown/orgs","repos_url":"https://api.github.com/users/earsdown/repos","events_url":"https://api.github.com/users/earsdown/events{/privacy}","received_events_url":"https://api.github.com/users/earsdown/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-11T10:48:27Z","updated_at":"2016-10-11T13:06:25Z","closed_at":"2016-10-11T13:06:25Z","body":"<!--\r\nThank you for contributing to this project!\r\n- This project has a Contributor Code of Conduct: https://voxpupuli.org/coc/\r\n- Please check that here is no existing issue or PR that addresses your problem.\r\n- Please fill the following form to enable us to help you.\r\n-->\r\n\r\n### Affected Puppet, Ruby, OS and module versions/distributions\r\n\r\n- Puppet: 4.7.x\r\n- Ruby: 2.1.9 (AIO)\r\n- Distribution: CentOS\r\n- Module version: 2.2.0\r\n\r\n### How to reproduce (e.g Puppet code you use)\r\n\r\n```puppet\r\nclass { '::hiera':\r\n  backends             => ['yaml'],\r\n  hierarchy            => ['fqdn/%{::trusted.certname}',\r\n                           'operatingsystem/%{::operatingsystem}/%{::operatingsystemmajrelease}',\r\n                           'operatingsystem/%{::operatingsystem}/common',\r\n                           'common' ],\r\n  hiera_yaml           => \"${::settings::confdir}/hiera.yaml\",\r\n  eyaml                => false,\r\n  eyaml_gpg            => true,\r\n}\r\n```\r\n\r\n### What are you seeing\r\n\r\nThe hiera.yaml file isn't configured with eyaml as a backend. I think this code in init.pp isn't getting triggered?\r\n\r\n```puppet\r\n  if ( $eyaml_gpg ) or ( $eyaml ) {\r\n\r\n    $eyaml_real_datadir = empty($eyaml_datadir) ? {\r\n      false => $eyaml_datadir,\r\n      true  => $datadir,\r\n    }\r\n    # the requested_backends has a side affect in that the eyaml will always be\r\n    # last for backend lookups.  This can be fixed by specifing the order in\r\n    # the backends parameter ie. ['yaml', 'eyaml', 'redis']\r\n    $requested_backends = unique(concat($backends, 'eyaml'))\r\n  } \r\n```\r\n\r\n### What behaviour did you expect instead\r\n\r\neyaml correctly configured in hiera.yaml as a backend by specifying only `eyaml_gpg => true`.\r\n\r\n### Output log\r\n\r\nN/A\r\n\r\n### Any additional information you'd like to impart\r\n\r\nN/A"},"comment":{"url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/comments/252910975","html_url":"https://github.com/voxpupuli/puppet-hiera/issues/158#issuecomment-252910975","issue_url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/158","id":252910975,"user":{"login":"earsdown","id":10148059,"avatar_url":"https://avatars.githubusercontent.com/u/10148059?v=3","gravatar_id":"","url":"https://api.github.com/users/earsdown","html_url":"https://github.com/earsdown","followers_url":"https://api.github.com/users/earsdown/followers","following_url":"https://api.github.com/users/earsdown/following{/other_user}","gists_url":"https://api.github.com/users/earsdown/gists{/gist_id}","starred_url":"https://api.github.com/users/earsdown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earsdown/subscriptions","organizations_url":"https://api.github.com/users/earsdown/orgs","repos_url":"https://api.github.com/users/earsdown/repos","events_url":"https://api.github.com/users/earsdown/events{/privacy}","received_events_url":"https://api.github.com/users/earsdown/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T13:06:25Z","updated_at":"2016-10-11T13:06:25Z","body":"Can't seem to reproduce this bug. Closing."}}
{"actor":{"display_login":"earsdown"}}