It's a bug. The policy does not pass cf-promises syntax check:
Fatal cfengine error: Validation: rhs is a list, but lhs (string)
is not a list type
You can file a bug report on bug.cfengine.com.
Best,
-at
On Fri, Jun 17, 2011 at 10:13 AM, <[email protected]> wrote:
> 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
>
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine