Forum: Cfengine Help (Mailing list)
Subject: Re: How to replace hosts that change in the /etc/hosts file
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,16236,16621#msg-16621

Hi Daniel,

Yes, sorry I failed to post it before. It's actually quite simple:

# Define a class no matter what the outcome of the promise is
body classes always(x)
{
  promise_repaired => { "$(x)" };
  promise_kept => { "$(x)" };
  repair_failed => { "$(x)" };
  repair_denied => { "$(x)" };
  repair_timeout => { "$(x)" };
}

--Diego

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

Reply via email to