Talk:Tips, Tricks and Notes

From Cfwiki

Jump to: navigation, search

Someone who is a bit more comfortable, if they could put up some discussion of multiple policyhosts, I'd appreciate it. The way I do it (which is probably suboptimal) is:

control:
  alternatepolicyhost::
    policyhost = backupserver.example.org
  !alternatepolicyhost::
    policyhost = primaryserver.example.org

The end result is I can invoke cfengine on any system as normal to get the normal policyhost, but if the primary node is down and I still need to do updates, I can do so via

cfagent -Dalternatepolicyhost

--Alcourt 13:29, 18 Oct 2004 (EDT)

Personal tools