Forum: Cfengine Help
Subject: long string format
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,22500,22500#msg-22500
Can someone explain the multi-line string format used, for example, in the
solution guide? I'm not following why there's a single-element list, a
semicolon, and then a really long string afterwards. Here's one example:
"atftpd_conf" string => { "5.2" };
"
###########################################
### This file is protected by CFEngine. ###
### Whatever you do, it will be changed ###
### back to a promising state. ###
###########################################
ATFTPD_OPTIONS=\"--daemon \"
ATFTPD_USE_INETD=\"no\"
ATFTPD_DIRECTORY=\"/tftpboot\"
ATFTPD_BIND_ADDRESSES=\"\"
";
I'd be inclned to just do something like this, I'd think:
"atftpd_conf" string => "
###########################################
...
";
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine