Forum: CFEngine Help Subject: Re: Defining a default action_policy (warn vs fix) for all promise types? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,27127,27128#msg-27128
Passive type policie are hard to do. CF's general design favours action rather than warnings. In your case I would not touch the bodies. Rather, make the changes in the promises. At worst have separate promises for each class, action_hosts:: or warn_hosts::. At best I think that you can do action => ${warn_or_fix} and have the variable defined earlier base on class. Further reading: https://cfengine.com/forum/read.php?3,23315,23315#msg-23315 _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine