Re: [Puppet Users] Re: augeas error: Could not evaluate: unknown error - Failed to initialize Augeas

2012-01-19 Thread Dominic Cleal
[ CC'ed to augeas-devel, more on-topic for ruby-augeas build errors ] On 18/01/12 04:45, LawrieC wrote: > Thanks for the tip Aaron. > > I have stuck with the platform RPMs as indicated earlier in the > thread. I could not find a ruby-augeas SLED platform RPM. I'm not familiar with the SUSE commu

[Puppet Users] Re: augeas error: Could not evaluate: unknown error - Failed to initialize Augeas

2012-01-17 Thread LawrieC
Thanks for the tip Aaron. I have stuck with the platform RPMs as indicated earlier in the thread. I could not find a ruby-augeas SLED platform RPM. I downloaded the ruby-augeas-0.4.1-1.el5.src.rpm and tried to rebuild it on the SLED11SP1 machine. I had to make changes to the spec file to get rpm

Re: [Puppet Users] Re: augeas error: Could not evaluate: unknown error - Failed to initialize Augeas

2012-01-14 Thread Aaron Grewell
The rpm-based installs of the other components probably expect different paths than the gem is providing. IMHO you shouldn't mix rpm and gem-based installs. Weirdness is virtually guaranteed. Pick one style or the other and stick with it. On Jan 12, 2012 8:03 PM, "LawrieC" wrote: > Thanks for the

[Puppet Users] Re: augeas error: Could not evaluate: unknown error - Failed to initialize Augeas

2012-01-12 Thread LawrieC
Thanks for the reply. I have now installed the augeas ruby bindings on the client by getting wget http://augeas.net/download/ruby/ruby-augeas-0.4.1.gem and running gem install ruby-augeas-0.4.1 Building native extensions. This could take a while... Successfully installed ruby-augeas-0.4.1 1 g

Re: How to experiment with Augeas, because the docs suck (was Re: [Puppet Users] Re: augeas error)

2009-01-17 Thread Robin Lee Powell
On Fri, Jan 16, 2009 at 09:55:42AM +1100, James Turnbull wrote: > Robin Lee Powell wrote: > > On Thu, Jan 15, 2009 at 11:43:50PM +0100, Peter Meier wrote: > >>> Doing this in Puppet is left as an exercise for the reader. > >>> I'll go see about getting better docs in Augeas for this > >>> thing. >

Re: How to experiment with Augeas, because the docs suck (was Re: [Puppet Users] Re: augeas error)

2009-01-17 Thread Robin Lee Powell
On Thu, Jan 15, 2009 at 11:38:39PM +, David Lutterkort wrote: > > On Thu, 2009-01-15 at 14:21 -0800, Robin Lee Powell wrote: > > It took several tries to get this; it turns out the augeas lens for > > this file is a bit pickier than it should be: it won't accept: > > > > /pub

[Puppet Users] Re: augeas error

2009-01-15 Thread David Lutterkort
On Thu, 2009-01-15 at 14:43 -0800, windowsrefund wrote: > Now that I'm more comfortable working with the schemas of each > supported file, I'm seeing a potential issue when it comes to > appending. Is there a way to determine the length of each object so I > can avoid doing things like /files/etc/

Re: How to experiment with Augeas, because the docs suck (was Re: [Puppet Users] Re: augeas error)

2009-01-15 Thread David Lutterkort
On Thu, 2009-01-15 at 14:21 -0800, Robin Lee Powell wrote: > Yes, you have to actually set something that matches the structure > of the file in question, which varies by file. Most of the lenses > have shit for documentation, unfortunately, and this one is no > exception. I'd argue there's even

[Puppet Users] Re: augeas error

2009-01-15 Thread David Lutterkort
On Thu, 2009-01-15 at 14:10 -0800, windowsrefund wrote: > Bryan, > > Thanks so much for the pointer. I think I'm on the right track now but > could use a hand understanding why I'm getting this error when > attempting to write out to disk > > augtool> print /files/etc/exports/ > /files/etc/expor

Re: How to experiment with Augeas, because the docs suck (was Re: [Puppet Users] Re: augeas error)

2009-01-15 Thread James Turnbull
Robin Lee Powell wrote: > On Thu, Jan 15, 2009 at 11:43:50PM +0100, Peter Meier wrote: >>> Doing this in Puppet is left as an exercise for the reader. >>> I'll go see about getting better docs in Augeas for this thing. >> would be nice if somebody could document her/his experiences with >> puppet a

Re: How to experiment with Augeas, because the docs suck (was Re: [Puppet Users] Re: augeas error)

2009-01-15 Thread Robin Lee Powell
On Thu, Jan 15, 2009 at 11:43:50PM +0100, Peter Meier wrote: > > > Doing this in Puppet is left as an exercise for the reader. > > I'll go see about getting better docs in Augeas for this thing. > > would be nice if somebody could document her/his experiences with > puppet and augeas on the wiki

[Puppet Users] Re: augeas error

2009-01-15 Thread Robin Lee Powell
Not that I'm aware of. You can use last() instead of a number (and, in fact, you have to in this case; see my long mail), but for appending the current standard is to use a very large number (like 1). A bit weak, I know. Feel free to complain to the Augeas mailing list. -Robin On Thu, Jan

Re: How to experiment with Augeas, because the docs suck (was Re: [Puppet Users] Re: augeas error)

2009-01-15 Thread Peter Meier
Hi > Doing this in Puppet is left as an exercise for the reader. I'll > go see about getting better docs in Augeas for this thing. would be nice if somebody could document her/his experiences with puppet and augeas on the wiki. cheers pete --~--~-~--~~~---~--~

[Puppet Users] Re: augeas error

2009-01-15 Thread windowsrefund
Now that I'm more comfortable working with the schemas of each supported file, I'm seeing a potential issue when it comes to appending. Is there a way to determine the length of each object so I can avoid doing things like /files/etc/exports/dir[100] ? Best, Adam On Jan 15, 5:22 pm, Robin Lee P

[Puppet Users] Re: augeas error

2009-01-15 Thread windowsrefund
Thanks so much :) On Jan 15, 5:22 pm, Robin Lee Powell wrote: > On Thu, Jan 15, 2009 at 02:10:57PM -0800, windowsrefund wrote: > > > Bryan, > > > Thanks so much for the pointer. I think I'm on the right track now but > > could use a hand understanding why I'm getting this error when > > attempt

[Puppet Users] Re: augeas error

2009-01-15 Thread Robin Lee Powell
On Thu, Jan 15, 2009 at 02:10:57PM -0800, windowsrefund wrote: > > Bryan, > > Thanks so much for the pointer. I think I'm on the right track now but > could use a hand understanding why I'm getting this error when > attempting to write out to disk > > augtool> print /files/etc/exports/ > /files

How to experiment with Augeas, because the docs suck (was Re: [Puppet Users] Re: augeas error)

2009-01-15 Thread Robin Lee Powell
On Thu, Jan 15, 2009 at 04:27:20PM -0500, Bryan Kearney wrote: > > windowsrefund wrote: > > augeas { "$name": > > context => "/files", > > changes => "set /etc/exports/foo bar", > > require => File["/etc/exports"], > > } > > > > > > Augeas will

[Puppet Users] Re: augeas error

2009-01-15 Thread windowsrefund
Bryan, Thanks so much for the pointer. I think I'm on the right track now but could use a hand understanding why I'm getting this error when attempting to write out to disk augtool> print /files/etc/exports/ /files/etc/exports /files/etc/exports/dir = "/foo" /files/etc/exports/dir/client = "foo.

[Puppet Users] Re: augeas error

2009-01-15 Thread Bryan Kearney
windowsrefund wrote: > augeas { "$name": > context => "/files", > changes => "set /etc/exports/foo bar", > require => File["/etc/exports"], > } > > Augeas will validate the structure of what you are setting. Look in /usr/share/augeas/lenses/exp