Also, you may want to use empty_file => "true" in the files: promise instead of 
the delete_lines promises. Probably the same effect but more elegant. 

--Diego


On Sep 21, 2011, at 3:15 PM, Seva Gluschenko <seva.glusche...@gmail.com> wrote:

> seems like location => start overrides preserve_block somehow. Of
> course, it shouldn't. I guess, it's right time to file a bug repport
> about that.
> 
> 2011/9/21  <jbla...@kickflop.net>:
>> With 3.2.0, the following:
>> 
>> =====================================================================
>>    delete_lines:
>>        ".*";
>> 
>>    insert_lines:
>>        "#############################################################
>> ### This file is configured by CFEngine.
>> ### Manually editing the file might lead CFEngine
>> ### to change back its content
>> #############################################################
>> server  127.127.1.0
>> fudge   127.127.1.0 stratum 10"
>>        insert_type => "preserve_block",
>>        location => start; # from cfengine_stdlib
>> =====================================================================
>> 
>> results in:
>> 
>> ======================================================================
>> fudge   127.127.1.0 stratum 10
>> server  127.127.1.0
>> #############################################################
>> ### to change back its content
>> ### Manually editing the file might lead CFEngine
>> ### This file is configured by CFEngine.
>> #############################################################
>> =====================================================================
>> 
>> Why?
>> 
>> 
>> _______________________________________________
>> Help-cfengine mailing list
>> Help-cfengine@cfengine.org
>> https://cfengine.org/mailman/listinfo/help-cfengine
>> 
> 
> 
> 
> -- 
> SY, Seva Gluschenko.
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to