[augeas-devel] iscsid - lense

Raphaël Pinson raphael.pinson at camptocamp.com
Tue Nov 4 10:34:14 UTC 2014


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 <royeectu at gmail.com> 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 <
> raphael.pinson at camptocamp.com> 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 <royeectu at gmail.com> wrote:
>>
>>> Simplevars didn't work.
>>> Anyone?
>>>
>>> On Tue, Oct 28, 2014 at 10:28 PM, Royee Tager <royeectu at gmail.com>
>>> 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 <
>>>> raphael.pinson at camptocamp.com> 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 <royeectu at gmail.com>
>>>>> 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 <royeectu at gmail.com>
>>>>>> 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 <
>>>>>>> raphael.pinson at camptocamp.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20141104/bd8cb7e0/attachment.htm>


More information about the augeas-devel mailing list