[augeas-devel] Augeas/ruby/puppet issue

David Lutterkort lutter at redhat.com
Thu Jan 12 22:21:39 UTC 2012


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





More information about the augeas-devel mailing list