I'm trying to determine how am_policy_hub is determined. Consider this sample:
body common control {
bundlesequence => { "g", };
}
bundle common g {
vars:
am_policy_hub::
"path" string => "/i/am/policy/hub";
!am_policy_hub::
"path" string => "/i/am/not/policy/hub";
}
body server control {
port => "5309";
}
bundle server rules{
access:
"$(g.path)"
admit => { "localhost" };
}
This host is a policy hub:
cat /var/cfengine/policy_server.dat
192.168.0.1
cf-server -vF <sample> shows the IP class to match policy_server.dat
cf3> -> Defined classes = { 10_0_0_1 10_5_5_19 192_168_0_1 ...
Yet, the am_policy_class is not set:
cf3> Path: /i/am/not/policy/hub (encrypt=0)
cf3> Admit: localhost root=
The above example was run on Core 3.3.1.
--
Neil Watson
Linux/UNIX Consultant
http://watson-wilson.ca
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine