Forum: Cfengine Help Subject: Re: So any syntax errors cause site wide cfengine 3 outages? Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,18038,18060#msg-18060
Well, there are two possible solutions: bundle common g { vars: HTTP_SERVER:: "stdin" slist => { "http.cf" }; FTP_SERVER:: "stdin" slist => { "ftp.cf" }; HTTP_SERVER.FTP_SERVER:: "addon" slist => { "sshd.cf" }; } body common control { inputs => { @(g.stdin), @(g.addon) }; } or body common control { FTP_SERVER.!HTTP_SERVER:: inputs => { "ftp.cf" }; HTTP_SERVER.!FTP_SERVER:: inputs => { "http.cf" }; FTP_SERVER.HTTP_SERVER:: inputs => { "http.cf", "ftp.cf" }; } For 30 classes it would be of course a lot more complicated, but if you spend some time first to identify your inputs more carefully, the solution may be not that hard. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine