Forum: Cfengine Help Subject: Re: I'm exploiting usemodule. There has got to be a better way to define global classes? Author: msvob...@linkedin.com Link to topic: https://cfengine.com/forum/read.php?3,18623,18635#msg-18635
I'm trying to limit execution of policies without having to modify the policies themselves. Here's the idea... bundlesequence first executes policy_controller.cf In this policy, i read a file policy1:file1 policy2:file1 policy3:file1 policy4:weapons_free File1: hostA hostB hostC hostD So when I want to execute policy4, if it notices that "weapons free" isn't there, it will execute the policy as defined. If it notices file1, it will only apply the policy on the machines listed in File1. This means we can make modifications to File1 and change which hosts are testing that policy first, instead of modifying classes in the policy itself.... If there's a better way of doing this, let me know. But if I notice policy1:file1 in policy_controller.cf, I need to define global classes so the "other policies in bundlesequence" can pick up if they are restricted or not. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine