Provider Augeas not functional on Sles10?

54 views
Skip to first unread message

Os

unread,
Dec 14, 2009, 11:24:31 AM12/14/09
to Puppet Users
Hi,
I have a problem with augeas, puppet and Suse 10 SP2.
Augeas works when I use the augtool to edit files. But I would like to
use it in combination with puppet. My class looks something like this:
augeas {"sysctl.conf":
provider => "augeas",
context => "/files/etc/sysctl.conf",
changes => [
"set net.core.wmem_default 262144",
"set net.core.wmem_max 262144",
"set kernel.sem 250 32000 100 128",
],
}

When I do a 'puppetd -v -d --no-daemonize --onetime' on my node, I get
the following error:
"err: //Node...Failed to retrieve current state of resource: Provider
augeas is not functional on this platform"

I have installed the following packages:
# yum list | grep augeas
augeas.x86_64 0.5.0-3.1 installed
augeas-devel.x86_64 0.5.0-3.1 installed
augeas-lenses.x86_64 0.5.0-3.1 installed
libaugeas0.x86_64 0.5.0-3.1 installed

Is there something else I am missing or does augeas and puppet do not
work on Sles10 ?

Greetings,
Os

Dan Bode

unread,
Dec 14, 2009, 4:52:14 PM12/14/09
to puppet...@googlegroups.com
Did you compile the ruby augeas bindings?


--

You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.



Os

unread,
Dec 15, 2009, 4:36:41 AM12/15/09
to Puppet Users
No, I have just installed the 4 packages. How do I compile these
bindings, I have not worked with ruby that much.
I have downloaded "ruby-augeas-0.3.0.tgz" from "http://augeas.net/
download/ruby/" but do not know how to go further.
I need rake to compile this Rakefile?

On 14 Dez., 22:52, Dan Bode <d...@reductivelabs.com> wrote:
> Did you compile the ruby augeas bindings?
>
> > puppet-users...@googlegroups.com<puppet-users%2Bunsu...@googlegroups.com>
> > .

Silviu Paragina

unread,
Dec 15, 2009, 5:11:23 AM12/15/09
to puppet...@googlegroups.com
Os wrote:
> No, I have just installed the 4 packages. How do I compile these
> bindings, I have not worked with ruby that much.
> I have downloaded "ruby-augeas-0.3.0.tgz" from "http://augeas.net/
> download/ruby/" but do not know how to go further.
> I need rake to compile this Rakefile?
>
>
You may try (as it's easier) with the gem.
gem install ruby-augeas-0.x.x.gem


You will also need libaugeas-dev

Silviu


David Lutterkort

unread,
Dec 15, 2009, 4:04:05 PM12/15/09
to puppet...@googlegroups.com
On Mon, 2009-12-14 at 08:24 -0800, Os wrote:
> Is there something else I am missing or does augeas and puppet do not
> work on Sles10 ?

As others have mentioned, you need the ruby-augeas bindings. Rather than
building them from a tarball/gem, you might try to find (a) an srpm from
OpenSuSe or (b) an srpm from Fedora/EPEL and rebuild one of those -
there shouldn't be very many surprises.

David


Reply all
Reply to author
Forward
0 new messages