Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hiera-eyaml-gpg and other gems never installed to puppetserver #129

Closed
treydock opened this issue Apr 25, 2016 · 0 comments
Closed

hiera-eyaml-gpg and other gems never installed to puppetserver #129

treydock opened this issue Apr 25, 2016 · 0 comments

Comments

@treydock
Copy link
Contributor

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:

# puppetserver gem list

*** LOCAL GEMS ***

hiera-eyaml (2.1.0)
highline (1.6.21)
jar-dependencies (0.1.13)
jruby-openssl (0.9.7 java)
json (1.8.0 java)
rake (10.1.0)
rdoc (4.1.2)
trollop (2.1.2)

# find /var/lib/puppet/jruby-gems/gems/ -maxdepth 1 -type d -regextype posix-egrep -regex '.*/hiera-eyaml-gpg-([0-9].?)+' ; echo $?
0
# find /var/lib/puppet/jruby-gems/gems/ -maxdepth 1 -type d -regextype posix-egrep -regex '.*/hiera-eyaml-([0-9].?)+' ; echo $?
/var/lib/puppet/jruby-gems/gems/hiera-eyaml-2.1.0
0

The 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.

treydock added a commit to treydock/puppet-hiera that referenced this issue Apr 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant