Forum: Cfengine Help
Subject: Re: bundlesequence and inputs using readstringlist
Author: skibumatbu
Link to topic: https://cfengine.com/forum/read.php?3,19057,19166#msg-19166

Yup... Works flawlessly now! Thanks for the help, Seva.

Just to help people in the future, the below is what I am using:


body common control {
    bundlesequence => { @(sequenceinputs.bundles) };
    inputs         => { @(sequenceinputs.inputs) };
}

bundle common sequenceinputs {
   vars:
      "dir" string => "/opt/cfengine/var/inputs"; 
      "bundles" slist => { readstringlist( "$(dir)/bundles.lst", "#.*", "\s", 
                                          100, 1000000 ) };
      "inputs" slist => { readstringlist( "$(dir)/inputs.lst",   "#.*", "\s", 
                                          100, 1000000 ) };
}


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to