Forum: CFEngine Help Subject: hostinnetgroup() function inconsistent results (NIS/YP integration). Author: davinken Link to topic: https://cfengine.com/forum/read.php?3,25934,25934#msg-25934
I have two NIS/YP network groups in a CentOS 5.7/Fedora 16 network - CFE 3.3.1 Community. They work quite well under CF2, using the old syntax e.g. inboxes2 = ( +@boxes2 ) Now in my CF3 test environment (which is tied to the NIS/YP server) I have a test policy to check that the net groups are being effectively sorted out by the hostinnetgroup() function - which happens only in one out of 5 clients currently running as clients. bundle agent hostexample { classes: "inboxes4" expression => hostinnetgroup("boxes4"); "inboxes2" expression => hostinnetgroup("boxes2"); reports: inboxes2:: "This machine belongs to boxes2"; inboxes4:: "This machine belongs to boxes4"; Only one box out of five says "This machine belongs to boxes4" - the rest simply ignore the class assignment. Running cf-promises -v shows that only the machine that is recognized effectively reports something like: cf3> Matched myhost in netgroup boxes4 cf3> Initiate variable convergence... cf3> -> Inputs are valid No other machine reports this "Matched .... in netgroup ....". As said, this class selector is being used with CF2 (I would say it is critical there). What am I missing here ? Thanks _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine