Forum: CFEngine Help Subject: Re: reasonable "list append" workaround? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23935,24009#msg-24009
How about this. No quite an append but the meaning is very clear. body common control { bundlesequence => { "main", }; } bundle agent main { vars: any:: "file" slist => { "default" }, policy => "free"; backup:: "file" slist => { "/tmp/test_backup" }, policy => "free"; dns:: "file" slist => { "/tmp/test_dns" }, policy => "free"; dns.blue:: "file" slist => { "/tmp/test_dns", "/tmp/blue" }, policy => "free"; dns.red:: "file" slist => { "/tmp/test_dns", "/tmp/red" }, policy => "free"; reports: cfengine_3:: "file: ${file}"; } # cf-agent -IKf ./test.cf R: file: default # cf-agent -IKf ./test.cf -D backup R: file: /tmp/test_backup # cf-agent -IKf ./test.cf -D dns R: file: /tmp/test_dns # cf-agent -IKf ./test.cf -D blue R: file: default # cf-agent -IKf ./test.cf -D blue,dns R: file: /tmp/test_dns R: file: /tmp/blue # cf-agent -IKf ./test.cf -D blue,red R: file: default # cf-agent -IKf ./test.cf -D red,dns R: file: /tmp/test_dns R: file: /tmp/red _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine