Cfengine configuration directory

Multiple domains

Relevant classes: any

How do I have multiple domains covered by one cfagent.conf file?

The domain variable is a default domain, used mainly in resolv.conf and for file-copying where only an unqualified name is specified. It is true that a host can only have one default domain at a time, but you can specificy several different domains in the same policy by setting the domain differently for different hosts, e.g. different IP series:

classes:

 dom1 = ( IPRange(192.0.2.1/24) )
 dom2 = ( IPRange(192.0.2.2/0-15))

control:

 dom1::

   domain = ( bla )

 dom2::

   domain = ( blu )

Back to documentation