[augeas-devel] trouble getting augeas to work with puppet

Marc Fournier marc.fournier at camptocamp.com
Tue Sep 2 12:57:56 UTC 2008


Hello,

I would like to try out augeas with puppet on redhat 5 machines, but I
am blocked by the following problem:

[root at kissrv20 ~]# puppetd -t
info: Retrieving plugins
notice: /File[/var/lib/puppet/lib]/checksum: checksum changed
'{mtime}Tue Jul 29 15:30:45 +0200 2008' to '{mtime}Tue Sep 02 12:08:22
+0200 2008'
notice: /File[/var/lib/puppet/lib/puppet/type/augeas.rb]/ensure: created
info: Retrieving facts
err: Could not retrieve catalog: The type 'augeas' requires the
augeas-ruby bindings to be installed
at /etc/puppetmaster/modules/augeas/manifests/classes/augeas-test.pp:6
on node kissrv20.epfl.ch
warning: Not using cache on failed catalog

I installed the RPMs from [1] and took the puppet type from [2]:
[root at kissrv20 ~]# rpm -qa augeas* ruby-augeas
ruby-augeas-0.1.0-1.el5
augeas-0.3.0-1.el5
augeas-libs-0.3.0-1.el5

Ruby bindings seem to load as expected:
[root at kissrv20 ~]# ruby 
require 'augeas'
[root at kissrv20 ~]# echo $?
0

I noticed the RPMs weren't putting their files in the same location
than other packages:

[root at kissrv20 ~]# rpm -ql ruby-augeas ruby-libs | grep '\.so'
/usr/lib64/ruby/site_ruby/1.8/x86_64-linux/_augeas.so
/usr/lib64/libruby.so.1.8
/usr/lib64/libruby.so.1.8.5
/usr/lib64/ruby/1.8/x86_64-linux/bigdecimal.so
/usr/lib64/ruby/1.8/x86_64-linux/curses.so
/usr/lib64/ruby/1.8/x86_64-linux/digest.so
[...]

[root at kissrv20 ~]# rpm -ql ruby-augeas ruby-libs | grep '\.rb'
/usr/lib/ruby/site_ruby/1.8/
/usr/lib/ruby/1.8/English.rb
/usr/lib/ruby/1.8/Env.rb
/usr/lib/ruby/1.8/abbrev.rb
[...]

I tried symlinking _augeas.so into /usr/lib64/ruby/1.8/x86_64-linux/ as
well as augeas.rb into /usr/lib/ruby/1.8/ but this doesn't help.

Sorry for cross-posting, but I'm not sure at which level my problem
lies. I suspect something related to the path to ruby libs but
being quite new to ruby I don't know in which direction to search.

Thanks for any pointers !

Marc

 [1] http://people.redhat.com/dlutter/yum/rhel/5/
 [2] http://git.et.redhat.com/?p=ace.git;a=tree;f=modules/augeas





More information about the augeas-devel mailing list