Forum: Cfengine Help
Subject: How to modify a global list
Author: jonb1987
Link to topic: https://cfengine.com/forum/read.php?3,21589,21589#msg-21589

I'm new to cfengine3, and am struggling to know how to do the following:

Various different edits of control files will require a service reload or 
restart (e.g. cron).
I'd like to add to a string list the name of a service to be restarted/reload 
when promises are updated.
Then at the end, I'd just iterate over the list to run '/sbin/service 
$(service) reload' (or similar).
e.g. 

   commands:
     "/sbin/service $(services_to_reload) reload";


But I don't know how to modify a global list (i.e. append to it) from various 
different promises within various different bundles.
Can anyone offer me any advice?

Thanks!

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

Reply via email to