Installing hiera-eyaml-gpg in Puppetserver

381 views
Skip to first unread message

Raphink

unread,
Feb 12, 2015, 6:17:41 AM2/12/15
to puppet...@googlegroups.com
Hello,


I'm trying to use hiera-eyaml-gpg with the puppetserver.

I've tried installing it with:

sudo -u puppet puppetserver gem install hiera-eyaml-gpg



where puppet is the user running the puppetserver.


However, it fails to compile the native gpgme gem:

Building native extensions.  This could take a while...
ERROR
:  Error installing hiera-eyaml-gpg:
 ERROR
: Failed to build gem native extension.


    java
-jar /usr/share/puppetserver/puppet-server-release.jar extconf.rb
Exception in thread "main" java.lang.IllegalStateException: Unable to find bootstrap.cfg file via --bootstrap-config command line argument, current working directory, or on classpath
 at puppetlabs
.trapperkeeper.bootstrap$find_bootstrap_config.invoke(bootstrap.clj:141)
 at puppetlabs
.trapperkeeper.core$boot_with_cli_data.invoke(core.clj:113)
 at puppetlabs
.trapperkeeper.core$run.invoke(core.clj:144)
 at puppetlabs
.trapperkeeper.core$main.doInvoke(core.clj:159)
 at clojure
.lang.RestFn.invoke(RestFn.java:408)
 at clojure
.lang.Var.invoke(Var.java:415)
 at clojure
.lang.AFn.applyToHelper(AFn.java:161)
 at clojure
.lang.Var.applyTo(Var.java:532)
 at clojure
.core$apply.invoke(core.clj:617)
 at puppetlabs
.trapperkeeper.main$_main.doInvoke(main.clj:7)
 at clojure
.lang.RestFn.applyTo(RestFn.java:137)
 at puppetlabs
.trapperkeeper.main.main(Unknown Source)




Gem files will remain installed in /var/lib/puppet/jruby-gems/gems/gpgme-2.0.8 for inspection.
Results logged to /var/lib/puppet/jruby-gems/gems/gpgme-2.0.8/ext/gpgme/gem_make.out


Is there a way to install native gems inside the Puppetserver to use this functionality? What am I missing?


Cheers,

Raphaël

Raphink

unread,
Feb 12, 2015, 9:22:48 AM2/12/15
to puppet...@googlegroups.com
https://github.com/puppetlabs/puppet-server/blob/master/documentation/gems.markdown#gems-with-native-c-extensions apparently answers my question, so I'm looking to port hiera-eyaml-gpg to a pure ruby module now.

Raphink

unread,
Feb 16, 2015, 4:54:54 AM2/16/15
to puppet...@googlegroups.com
For the record, I've decided to port the code to ruby_gpg when running inside the Puppetserver.

Hunter Haugen

unread,
Mar 10, 2015, 8:06:13 PM3/10/15
to puppet-users
For those following along at home, 0.5.rc1 has been pushed to rubygems and can be installed with `gem install hiera-eyaml-gpg --pre` or `puppetserver gem install hiera-eyaml-gpg --pre` :D

Thanks raphink!



-Hunter

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/2fc439d9-1d47-427d-baa3-3faaed686554%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages