voxpupuli / puppet-augeas

Helper for using augeas with puppet
Apache License 2.0
44 stars 82 forks source link

Can't run augeas() from puppet master #66

Closed ColinHebert closed 3 years ago

ColinHebert commented 7 years ago

It is currently impossible to run augeas() from puppet master as the newer versions of puppet master use JRuby which does not allow native extensions to be used.

This issue relates to hercules-team/ruby-augeas#9 and https://tickets.puppetlabs.com/browse/MODULES-5170

Attempting to load the library leads to:

# puppetserver ruby -e 'require "augeas"'
LoadError: no such file to load -- _augeas
  require at org/jruby/RubyKernel.java:961
  require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
   <main> at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/augeas.rb:23
  require at org/jruby/RubyKernel.java:961
   (root) at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
   <main> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54

_augeas being the native component.

raphink commented 7 years ago

Ah, that's right. I'm not sure if there's a way to fix this really…

ColinHebert commented 7 years ago

@raphink well it'll be mainly dependent on Hercules-team providing FFI bindings (see hercules-team/ruby-augeas#9 )

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.