{"action":"closed","issue":{"url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/129","repository_url":"https://api.github.com/repos/voxpupuli/puppet-hiera","labels_url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/129/comments","events_url":"https://api.github.com/repos/voxpupuli/puppet-hiera/issues/129/events","html_url":"https://github.com/voxpupuli/puppet-hiera/issues/129","id":150924048,"number":129,"title":"hiera-eyaml-gpg and other gems never installed to puppetserver","user":{"login":"treydock","id":739622,"avatar_url":"https://avatars.githubusercontent.com/u/739622?v=3","gravatar_id":"","url":"https://api.github.com/users/treydock","html_url":"https://github.com/treydock","followers_url":"https://api.github.com/users/treydock/followers","following_url":"https://api.github.com/users/treydock/following{/other_user}","gists_url":"https://api.github.com/users/treydock/gists{/gist_id}","starred_url":"https://api.github.com/users/treydock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treydock/subscriptions","organizations_url":"https://api.github.com/users/treydock/orgs","repos_url":"https://api.github.com/users/treydock/repos","events_url":"https://api.github.com/users/treydock/events{/privacy}","received_events_url":"https://api.github.com/users/treydock/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-25T16:53:20Z","updated_at":"2016-05-05T15:16:34Z","closed_at":"2016-05-05T15:16:34Z","body":"Right now a fresh install of RedHat 6 Puppetserver open source puppet master using this module results in Puppet thinking hiera-eyaml-gpg, ruby_gpg and deep_merge are all installed to puppetserver when they are not.  Somehow hiera-eyaml managed to get installed though.  This is the reason I think:\r\n\r\n```\r\n# puppetserver gem list\r\n\r\n*** LOCAL GEMS ***\r\n\r\nhiera-eyaml (2.1.0)\r\nhighline (1.6.21)\r\njar-dependencies (0.1.13)\r\njruby-openssl (0.9.7 java)\r\njson (1.8.0 java)\r\nrake (10.1.0)\r\nrdoc (4.1.2)\r\ntrollop (2.1.2)\r\n\r\n# find /var/lib/puppet/jruby-gems/gems/ -maxdepth 1 -type d -regextype posix-egrep -regex '.*/hiera-eyaml-gpg-([0-9].?)+' ; echo $?\r\n0\r\n# find /var/lib/puppet/jruby-gems/gems/ -maxdepth 1 -type d -regextype posix-egrep -regex '.*/hiera-eyaml-([0-9].?)+' ; echo $?\r\n/var/lib/puppet/jruby-gems/gems/hiera-eyaml-2.1.0\r\n0\r\n```\r\n\r\nThe exit code for find is always 0, regardless of the regex finding a match.  So far the only solution seems to be piping the output to egrep and letting egrep's exit code be used by the Exec resource."}}