The only way is for Augeas to understand the full file. One simple way would be for the Simplelines lens to support [] in keys. If that doesn't break the current lens, then that's a possibility.
On Tue, Nov 4, 2014 at 11:28 AM, Royee Tager <[email protected]> wrote: > Hi Raphael, > > I understand. Is there any way I can use Augeas (which I use as a Puppet > resource type) to replace only that specific line in the iscsid.conf? > The QA team in the company which I work for doesn't want to replace the > entire file (file resource type in Puppet) > > > On Tue, Nov 4, 2014 at 11:57 AM, Raphaël Pinson < > [email protected]> wrote: > >> Hi Royee, >> >> The problem is not the line you need. Augeas needs to understand the full >> file, not just the line you want to add. If there is a statement in the >> file that Augeas cannot parse, it will not let you modify anything in this >> file. >> >> >> >> >> >> On Tue, Nov 4, 2014 at 10:48 AM, Royee Tager <[email protected]> wrote: >> >>> Simplevars didn't work. >>> Anyone? >>> >>> On Tue, Oct 28, 2014 at 10:28 PM, Royee Tager <[email protected]> >>> wrote: >>> >>>> Actually, I need the following line: >>>> node.session.timeo.replacement_timeout = 15 >>>> >>>> Can I use the Simplevars? What do I need to do? >>>> >>>> On Tue, Oct 28, 2014 at 3:51 PM, Raphaël Pinson < >>>> [email protected]> wrote: >>>> >>>>> From looking at >>>>> https://raw.githubusercontent.com/mikechristie/open-iscsi/master/etc/iscsid.conf, >>>>> the format seems rather simple, yet not standard at all. >>>>> >>>>> In particular, the funny bits are lines like: >>>>> >>>>> node.conn[0].timeo.login_timeout = 15 >>>>> >>>>> >>>>> If it weren't for these, it would fit in Simplevars.lns actually. >>>>> Maybe Simplevars.lns could be adapted to accept this format without >>>>> breaking the existing supported formats. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Tue, Oct 28, 2014 at 2:41 PM, Royee Tager <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi Raphael, >>>>>> >>>>>> Thanks for answering. >>>>>> I have copied it from the Internet. >>>>>> I don't know how to create a lense. >>>>>> I need to lense for iscsid.conf >>>>>> What can I do? >>>>>> >>>>>> On Mon, Oct 27, 2014 at 5:32 PM, Royee Tager <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Hi Raphael, >>>>>>> >>>>>>> Thanks for answering. >>>>>>> I have copied it from the Internet. >>>>>>> I don't know how to create a lense. >>>>>>> I need to lense for iscsid.conf >>>>>>> What can I do? >>>>>>> >>>>>>> On Mon, Oct 27, 2014 at 5:28 PM, Raphaël Pinson < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> Hello, >>>>>>>> >>>>>>>> >>>>>>>> This lens is definitely not finished. It's missing the `xfm` >>>>>>>> statement definition, and most likely an `lns` definition as well. >>>>>>>> >>>>>>>> >>>>>>>> Regards, >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Raphaël Pinson >>>>>>>> Infrastructure Developer & Training Leader >>>>>>>> +33 479 26 57 93 >>>>>>>> +33 781 90 00 79 >>>>>>>> >>>>>>>> Camptocamp France >>>>>>>> Savoie Technolac >>>>>>>> BP 352 >>>>>>>> 48, avenue du Lac du Bourget >>>>>>>> 73372 Le Bourget du Lac, Cedex >>>>>>>> www.camptocamp.com >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Raphaël Pinson >>>>> Infrastructure Developer & Training Leader >>>>> +33 479 26 57 93 >>>>> +33 781 90 00 79 >>>>> >>>>> Camptocamp France >>>>> Savoie Technolac >>>>> BP 352 >>>>> 48, avenue du Lac du Bourget >>>>> 73372 Le Bourget du Lac, Cedex >>>>> www.camptocamp.com >>>>> >>>> >>>> >>> >> >> >> -- >> Raphaël Pinson >> Infrastructure Developer & Training Leader >> +33 479 26 57 93 >> +33 781 90 00 79 >> >> Camptocamp France >> Savoie Technolac >> BP 352 >> 48, avenue du Lac du Bourget >> 73372 Le Bourget du Lac, Cedex >> www.camptocamp.com >> > > -- Raphaël Pinson Infrastructure Developer & Training Leader +33 479 26 57 93 +33 781 90 00 79 Camptocamp France Savoie Technolac BP 352 48, avenue du Lac du Bourget 73372 Le Bourget du Lac, Cedex www.camptocamp.com
_______________________________________________ augeas-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/augeas-devel
