Forum: CFEngine Help
Subject: Fatal cfengine error: Validation: Error reading assumed integer value
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22951,22951#msg-22951

Odd error.  Any idea? (Latest nova).

# cf-promises -f ./promises.cf
Fatal cfengine error: Validation: Error reading assumed integer value "$(rec)" 
=> "non-value" (found remainder "")

bundle agent main {

   vars:

      "tw_rec" int => "99",
         handle => "main_vars_tw_rec",
         comment => "recurse depth for tripwire";

      "tw_dir" slist => { "/bin" },
         handle => "main_vars_tw_dir",
         comment => "target dirs for tripwire";

   methods:

      "any" usebundle => tripwire($(tw_rec), $(tw_dir)),
         handle => "main_methods_tripwire",
         comment => "call tripwire bundle";
}

bundle agent tripwire(rec, dir) {

   files:

     "$(dir)"
          changes      => detect_all_change,
          depth_search => recurse("$(rec)"),
          action       => bg("1","10");

   reports
      redhat::
            "Dir = $(dir)";
            "Recurse = $(rec)";
}


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

Reply via email to