Hi David I tried to work out something based on your advice, but it seems I can't make it work. My idea was:
- load a policy file called ntp.cf, always, and a location specific one, say ntp_x.cf for location x; - in ntp_x.cf, define an array which will hold values depending on the machine being a unicast client, or a server; e.g.: "ntpconf[serverlist]" slist => { "server1","server2","server3" } ; "ntpconf[keys]" ilist => { 1, 2, 3, 5, 8 } ; "ntpconf[peerlist]" slist => { "peer1","peer2","peer3" } ; - call a method "ntp", defined in ntp.cf, which should use the information in ntpconf to build ntp.conf Where I am stuck: - I checked the reference guide, tried a few different ways, but I don't seem to be able to pass the array to the method (tried different approaches, e.g.: "something" usebundle => ntp(ntpconf) ; or "something" usebundle => ntp(@(ntpconf)) ; for example, but that doesn't seem to work. Another problem is, I can't find a way to dereference a list from the array. E.g., I would like to dereference ntpconf[serverlist] into, say, testlist, but no success here either. Any hints? Ciao -- bronto _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine