cfagent -V
GNU cfengine 2.1.14


resolve action removes search string even if class is not defined for
the host.
It replaces it with domain string. It doesn't change nameservers
though.
underfined class "should_not_run" seems partially ignored.

xxx1.conf




resolve:
    should_not_run::
    "search adm.aamc.org aamc.org"
    143.220.4.39
    143.220.4.14
    143.220.1.1
    "; WARNING - the file is maintained by cfengine"






 cfagent -v -d2 -f `pwd`/xxx1.conf 

HandleClass(any)
ExpandVarstring(resolve)
Appending [resolve]
ExpandVarstring(shellcommands)
Appending [shellcommands]
ExpandVarstring(0)
HandleClass(should_not_run)
Found 0 variables in (143.220.4.39)
Found 0 variables in (143.220.4.14)
Found 0 variables in (143.220.1.1)
HandleClass(should_not_run)
Delete Parser Object::(END OF PARSING /root/xxx1.conf)
Finished with /root/xxx1.conf

[...]

ENVIRONMENT:
CFALLCLASSES=143_220_3:143_220_3_47:32_bit:Day9:February:Hr10:Hr10_Q3:Min30_35:Min34:Q3:SUNW_Ultra_250:Thursday:Yr2006:a
amc_org:any:cfengine_2:cfengine_2_1:cfengine_2_1_14:compiled_on_solaris2_8:entropy_cfengine_in_low:entropy_dns_in_low:entropy_dns_out
_low:entropy_ftp_in_low:entropy_ftp_out_low:entropy_icmp_in_low:entropy_icmp_out_low:entropy_irc_in_low:entropy_irc_out_low:entropy_m
isc_in_low:entropy_misc_out_low:entropy_netbiosdgm_in_low:entropy_netbiosdgm_out_low:entropy_netbiosns_in_low:entropy_netbiosns_out_l
ow:entropy_netbiosssn_in_low:entropy_netbiosssn_out_low:entropy_nfsd_in_low:entropy_smtp_in_low:entropy_smtp_out_low:entropy_ssh_out_
low:entropy_tcpack_in_low:entropy_tcpack_out_low:entropy_tcpfin_in_low:entropy_tcpfin_out_low:entropy_tcpsyn_in_low:entropy_tcpsyn_ou
t_low:entropy_udp_in_low:entropy_udp_out_low:entropy_www_in_low:entropy_www_out_low:entropy_wwws_in_low:entropy_wwws_out_low:inet647:
inet647_aamc_org:ipv4_143:ipv4_143_220:ipv4_143_220_3:ipv4_143_220_3_47:loghost:net_iface_hme1:net_iface_lo0:opt_debug:solaris:sparc:
sun4u:sunos_5_9:sunos_sun4u:sunos_sun4u_5_9:sunos_sun4u_5_9_Generic_117171_07:
---
Actionsequence item resolve
GetLock(resolve,,time=1139499274), ExpireAfter=120, IfElapsed=0
GetLastLock()
CheckOldLock(lock._root_xxx1_conf..resolve._3105)
Unable to find lock data lock._root_xxx1_conf..resolve._3105
SetLock(lock._root_xxx1_conf..resolve._3105)
PutLock(lock._root_xxx1_conf..resolve._3105)
Found no lock [lock._root_xxx1_conf..resolve._3105]: DB_NOTFOUND: No
matching key/data pair found
Checking config in /etc/resolv.conf
Appending [search aamc.org]
Appending [nameserver 143.220.4.39]
Appending [nameserver 143.220.1.4]
Appending [; WARNING - the file is maintained by cfengine]
Appending [search aamc.org]
Appending [nameserver 143.220.4.39]
Appending [nameserver 143.220.1.4]
Appending [; WARNING - the file is maintained by cfengine]
Deleted item search aamc.org
OptionIs(main,EmptyResolvConf,1)
GetMacroValue(main,EmptyResolvConf)
Prepending [domain aamc.org]
Prepending [/etc/resolv.conf.cfsaved]
ReleaseCurrentLock(lock._root_xxx1_conf..resolve._3105)
PutLock(last._root_xxx1_conf..resolve._3105)
LockLog(Lock removed normally )
Job start time set to Thu Feb  9 10:34:34 2006


--
Dmitry Sazonov
UNIX sysadmin, AAMC
Office: 202-862-6168



_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to