Forum: Cfengine Help Subject: Re: changing workdir Author: hharun Link to topic: https://cfengine.com/forum/read.php?3,20557,20685#msg-20685
Hi, Need more help on workdir. openSuSE 11.3, workdir is /var/lib/cfengine. All my files are in /var/lib/cfengine/inputs. When I execute /usr/sbin/cf-agent -v -f /var/lib/cfengine/inputs/promises.cf (It cannot find all my files (promise body) in /var/lib/cfengine/inputs) I have to execute with all the files /usr/sbin/cf-agent -v -f /var/lib/cfengine/inputs/promises.cf /var/lib/cfengine/inputs/update1.cf /var/lib/cfengine/inputs/cfengine_stdlib.cf This is my promises.cf body common control { bundlesequence => { "update","g"}; inputs => {"cfengine_stdlib.cf","update1.cf"}; } bundle common g { classes: "ugradhosts" expression => hostinnetgroup("ugradhosts"); } To check the syntax, I run /usr/sbin/cf-promises -v -f /var/lib/cfengine/inputs/promises.cf (Tells me that all the files are at the right place and ok) cf3 Cfengine - autonomous configuration engine - commence self-diagnostic prelude cf3 ------------------------------------------------------------------------ cf3 Work directory is /var/lib/cfengine cf3 Making sure that locks are private... : : cf3 *********************************************************** cf3 Loaded persistent memory cf3 *********************************************************** cf3 > Parsing file /var/lib/cfengine/inputs/promises.cf cf3 Initiate variable convergence... cf3 -> Checking common class promises... cf3 > Parsing file /var/lib/cfengine/inputs/cfengine_stdlib.cf cf3 > Parsing file /var/lib/cfengine/inputs/update1.cf When I try to execute /usr/sbin/cf-agent -v -f /var/lib/cfengine/inputs/promises.cf cf3 Cfengine - autonomous configuration engine - commence self-diagnostic prelude cf3 ------------------------------------------------------------------------ cf3 Work directory is /var/lib/cfengine cf3 Making sure that locks are private... cf3 Checking integrity of the state database : : cf3 *********************************************************** cf3 Loaded persistent memory cf3 *********************************************************** Undeclared promise body "uncomment()" was referenced in a promise cf3 cf-agent was not able to get confirmation of promises from cf-promises, so going to failsafe cf3 > Parsing file /var/lib/cfengine/inputs/failsafe.cf cf3 Initiate variable convergence... cf3 > Parsing file /var/lib/cfengine/inputs/update1.cf cf3 Initiate variable convergence... cf3 # Knowledge map reporting feature is only available in version Nova and above cf3 -> Defined hard classes = { any verbose_mode Tuesday Hr12 Afternoon Min45 Min45_50 Q4 Hr12_Q4 Day15 February Yr2011 Lcycle_1 GMT_Hr20 linux sapporo_cs_ubc_ca cs_ubc_ca ubc_ca ca sapporo 64_bit linux_2_6_34_7_0_7_desktop x86_64 linux_x86_64 linux_x86_64_2_6_34_7_0_7_desktop linux_x86_64_2_6_34_7_0_7_desktop__1_SMP_PREEMPT_2010_12_13_11_13_53__0100 compiled_on_linux_gnu net_iface_lo net_iface_eth0 142_103_5_56 ipv4_142_103_5_56 ipv4_142_103_5 ipv4_142_103 ipv4_142 fe80__219_d1ff_fe07_34ba cfengine_3_0_2 cfengine_3_0 cfengine_3 SuSE lsb_compliant suse suse_n/a suse_11_3 suse_11 agent } cf3 -> Negated Classes = { } cf3 Undeclared promise body "name_age()" was referenced in a promise cf3 Undeclared promise body "tidy()" was referenced in a promise cf3 Undeclared promise body "mybackup()" was referenced in a promise If workdir is /var/lib/cfengine, why is it not reading files from /var/lib/cfengine/inputs ? ...Hazita _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine