I would guess that the lens is error out when it attempts to load the
file. Have you tried to use augtool manually to see if you can make
your changes?
One thing I notice is that if a lens cannot parse a file it will say
in the error section. Taking a guess something like this:
# augtool
augtool> ls /augeas/files/etc/default/fusioninventory-agent/error/
pos = 618
line = 19
char = 0
lens = /usr/share/augeas/lenses/dist/shellvars.aug:61.12-.77:
message = Iterated lens matched less than it should
Now my error was just an example from a file I pulled from the
internet. You should check it out in augtool for yourself. If augeas
parses your file correctly it will should show up in:
augtool> print /augeas/files/etc/default/fusioninventory-agent/
If it shows then you should be able to change your line as needed.
HTH
-Cory
On Fri, Oct 25, 2013 at 9:58 AM, puppetstan <stanislas.leveau@gmail.com>
wrote:> Hi
>
> I would lie replace a value in my config file
> /etc/default/fusioninventory-agent
>
> MODE = daemon
>
> and i would like replace cron by daemon
>
>
> My manifest is this but is not good, can you have an idea? I think it s
> Simplevers.lns is not good..
>
> augeas { ''fusioninventory mode'':
> lens => ''Simplevars.lns'',
> incl =>
''/etc/default/fusioninventory-agent'',
> changes => [ ''set MODE daemon'' ],
> }
>
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscribe@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.