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

As we start to use cfengine more and more, our bundlesequence is going to grow 
longer and longer. Right now it is taking up 2 lines in our promises.cf file, 
and we're just starting to roll it out. As we do more, it will only grow 
larger. I'd like to do something like this:

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

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

When I try this, it hangs indefinitely when running

/opt/cfengine/sbin/cf-agent -v -n
...snip...
cf3 ***********************************************************
cf3  Loaded persistent memory
cf3 ***********************************************************
cf3  > Verifying the syntax of the inputs...

I've got to be doing something simple wrong. Any thoughts?
Scott

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

Reply via email to