Is it possible to define the phost variable based on the clients network?
If the connecting client is originating from the lab network then set the
phost variable to the local policy server. All other clients should talk to
policy server X and Y as I tried to do below. Any tips on how to achieve
this?
Thank you,
failsafe.cf
########
bundle common g {
# Define Master Policy Servers
classes:
"lab_net" or => { ipv4_192_168_33 };
vars:
!lab_net::
"phost" slist => {"192.168.18.103","192.168.18.104"};
lab_net::
"phost" string => {"192.168.33.105"};
}
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine