Forum: Cfengine Help Subject: Re: Hard classes vs defined classes ? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,21345,21347#msg-21347
I could let the agent determine the class not a command line input. For example: bundle common global_classes { classes: web_servers or => { "blue", "red", "yellow" }; dns_servers or => { "sol", "vega", "polaris" }; } body common control { web_servers:: bundlesequence => { "update", "classes", "site", "web" }; inputs => { "update.cf", "classes.cf", "site.cf", "web.cf" }; dns_servers:: bundlesequence => { "update", "classes", "site", "dns" }; inputs => { "update.cf", "classes.cf", "site.cf", "dns.cf" }; } I seldom do this myself. I try to keep the same inputs and the same bundlesequence for all hosts. I then limit promises inside these bundles. For example: # dns.cf bundle agent dns { files: dns_servers:: "/etc/named.conf" copy_from => remote_cp("${g.phost}","${g.masterfiles/dns/named.conf"), perms => om("root","0","0600"); } _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine