Hi CFEngine Gurus. I need some help with yet another issue...this time it's a domain name issue on CF2 (not 3). The cfengine master (policyhost) is called "ops1-dc6" My client is called: "outlvl1-dc6" The domain on the client - outlvl1-dc6 is p8t.us So if you run the hostname -f command it shows up as root@outlvl1-dc6:/# *hostname -f* outlvl1-dc6.p8t.us I have 2 domains in the network ipv4_8_28_0, one is p8t.us and vo.packet8.net (as you will see below in my cfagent.conf file). But this client's domain is p8t.us How come the domain is not showing up as "p8t.us" but cfengine is looking as the domain as "vo.packet8.net"? Where is cfengine getting the domain information from? In my logs (in the /var/cfengine/output directory) the fqdn of this client is set as vo_packet8_net like so: cf_outlvl1_dc6_*vo_packet8_net*_2011-03-01--17-30-01_1299000601
This is an existing infrastructure and I am just appending a new network to the current cf2 files. This is CF2 and I have configured the domain in the cfagent.conf file as shown: classes: class_dc6_p8 = ( ipv4_8_28_0 ) class_dc6_vo = ( ipv4_8_28_0 ) control: class_dc6_p8:: domain = ( "p8t.us" ) policyhost = ( ops1-dc6 ) class_dc6_vo:: domain = ( "vo.packet8.net" ) policyhost = ( ops1-dc6 ) class_dc6_p8:: domain_ext = ( "p8t.us" ) class_dc6_vo:: domain_ext = ( "vo.packet8.net" ) I have imported the cf.sysconf file where the resolv.conf file is set in the same cfagent.conf file: import: class_sysconfig.servers_all:: cf.sysconf In the cf.sysconf file the resolv.conf file is set as follows: control: class_dc6_p8:: var_search = ( "dc6.packet8.internal packet8.internal packet8.net p8t.us" ) var_ns1 = ( "nameserver 8.28.0.59" ) var_ns2 = ( "nameserver 8.28.0.60" ) class_dc6_vo:: var_search = ( "vo.packet8.net" ) var_ns1 = ( "nameserver 8.28.0.59" ) var_ns2 = ( "nameserver 8.28.0.60" ) class_8x8.!class_kickstart||class_dc.!servers_senez.!class_kickstart:: var_search2 = ( "" ) class_dc.servers_senez.!class_kickstart:: var_search2 = ( " p8t.us" ) editfiles: class_8x8||class_dc6||class_dc.!servers_rh_dns:: { /etc/resolv.conf Backup "single" EmptyEntireFilePlease InsertLine "### CONTROLLED BY CFENGINE -- DO NOT EDIT ###" InsertLine "# /etc/resolv.conf" InsertLine "domain $(domain_ext)" InsertLine "search $(var_search)$(var_search2)" BeginGroupIfDefined "class_kickstart" InsertLine "nameserver 10.0.0.11" EndGroup InsertLine "$(var_ns1)" InsertLine "$(var_ns2)" BeginGroupIfDefined "class_resolvopt" InsertLine "options rotate timeout:2 attempts:1" EndGroup InsertLine "### CONTROLLED BY CFENGINE -- DO NOT EDIT ###" } My /etc/resolv.conf file is being set as follows: ### CONTROLLED BY CFENGINE -- DO NOT EDIT ### # /etc/resolv.conf *domain vo.packet8.net* *search vo.packet8.net$(var_search2)* nameserver 8.28.0.59 nameserver 8.28.0.60 options rotate timeout:2 attempts:1 ### CONTROLLED BY CFENGINE -- DO NOT EDIT ### I want it to be set like this: domain p8t.us search dc6.packet8.internal packet8.internal packet8.net p8t.us Help is appreciated. Thanks # mukarram
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine