Forum: CFEngine Help
Subject: Re: How to instert white line ?
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26615,26641#msg-26641
Dudes, I'm very sad : nothing is working like expected :-/
Here were I am :
vars:
"vim_configuration_default"
slist => {
#"$(const.n)",
"\" Change default colour set",
"colorscheme elflord"
};
"vim_configuration_default_s" string =>
join("$(const.n)", "vim_configuration_default");
(tried with default and default_s : no more success)
files:
"/etc/vimrc"
edit_line =>
append_if_no_lines_preserve("$(vim_configuration_default_s)"),
comment => "edit default configuration
of vim (colorscheme, ...)";
(tried with or without " " : no more succes)
bundle
#insert lines in a file without any changes (avoid removal of empty lines)
bundle edit_line append_if_no_lines_preserve(list) {
insert_lines:
"$(list)"
insert_type => "preserve_block",
comment => "Append lines to the file if they
don't already exist";
}
No change at all with "preserve_block" ...
Any other idea ????
Thanks for trying to help me ;-)
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine