[augeas-devel] Augeas/ruby/puppet issue

Erinn Looney-Triggs erinn.looneytriggs at gmail.com
Thu Jan 12 22:31:28 UTC 2012


On 01/12/2012 01:21 PM, David Lutterkort wrote:
> On Tue, 2012-01-10 at 17:03 -0900, Erinn Looney-Triggs wrote:
>> Who knows but somewhere in there something is going wrong, it probably
>> isn't augeas itself as via augtool I can set and it will work. Maybe the
>> ruby bindings, maybe puppet, anyway here is what I have:
>>
>> class sysconfig_network {
>>
>>         #We disable zeroconf and set nisdomainname for sudo
>>         augeas { "/etc/sysconfig/network":
>>                 context => "/files/etc/sysconfig/network",
>>                 changes => [ "set NOZEROCONF yes",
>>                              "set NISDOMAINNAME example.com" ],
>>                 incl    => "/etc/sysconfig/init",
>>                 lens    => "Shellvars.lns",
>>         }
> 
> Wouldn't you want /etc/sysconfig/network for incl (or a context that
> matches incl)
> 
> Which makes me think that if 'incl' is set "/files/$incl" would make a
> dandy default for context (though I think Dominic had a clever way to
> make incl/lens unnecessary)
> 
> David
> 
> 

Oy, thanks for the sharp eyes. No bloody idea why that worked for months
before now, but it did and stopped (which in retrospect it should have).
Very interesting, but thanks again for spotting that.

I will look around for said clever way to make incl and lens unnecessary,

-Erinn


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20120112/aff3d4ce/attachment.sig>


More information about the augeas-devel mailing list