Forum: CFEngine Help Subject: Re: ifvarclass for files: Author: chadpatt Link to topic: https://cfengine.com/forum/read.php?3,22789,22792#msg-22792
I tried to make it more readable. Originally it looked like this. file content of cftest2.cftest.xxx.com.hostclasses.csv cftest2.cftest.xxx.com,cftest2,cftest2_xxx_com,cftest_xxx,foo,cftest,no_build,yes_patch,no_fortefi,no_ldap,no_qlogic,yes_tripwire,Day1.January.Year2010.Hr16.Min50_55, Min50_55 -------- original code snippet: -------- "dim_array" int => readstringarray("array_name","$(sys.workdir)/inputs/etc/hostclasses/$(sys.fqhost).hostclasses.csv","\s*#[^\n]*",",",1000,100000); classes: "$(array_name[$(sys.host)][11])" expression => "any"; "$(array_name[$(sys.host)][13])" expression => "any"; -------- Ok, with that out of the way, I am looking for class yes_tripwire and Min50_55 to only run once and hour. This might look really odd, but I drive about 400 csv files from a mysql database and each file only contains one row. The hosts each have their own csv and Boolean settings to turn on/off different stuff from a web page. The trip wire part works fine its the time piece (ifvarclass =>) at the end of the "file:" statement that doesn't work. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine