Forum: CFEngine Help
Subject: Re: How to instert white line ?
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,26615,26625#msg-26625

I think the variable has to be scalar. I like to define lists for readability 
and then join them to strings:

                        
"vim_configuration_default"
                                slist => {
                                        "\" Change default colour set",
                                        "colorscheme elflord"
                                };

"vim_configuration_default_s"  string => 
join(("$(const.n)","vim_configuration_default");


                        "/etc/vimrc"
                                edit_line       => 
append_if_no_lines($(vim_configuration_default_s)),
                                comment         => "edit default configuration 
of vim (colorscheme, ...)";


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to