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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Dan Bode
2009-Dec-14 21:52 UTC
Re: [Puppet Users] Provider Augeas not functional on Sles10?
Did you compile the ruby augeas bindings? On Mon, Dec 14, 2009 at 8:24 AM, Os <ozzimojo@googlemail.com> wrote:> 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 > > -- > > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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? > > On Mon, Dec 14, 2009 at 8:24 AM, Os <ozzim...@googlemail.com> wrote: > > 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 > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Silviu Paragina
2009-Dec-15 10:11 UTC
Re: [Puppet Users] Re: Provider Augeas not functional on Sles10?
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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
David Lutterkort
2009-Dec-15 21:04 UTC
Re: [Puppet Users] Provider Augeas not functional on Sles10?
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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.