Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-84

CFEngine 3.3.5 says "No constraints for class promise webfarm" when the promise webfarm is constrained by the attribute ifvarclass.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9.0
    • Component/s: Evaluation
    • Labels:
      None

      Description

      CFEngine 3.3.5 says "No constraints for class promise webfarm" when the promise webfarm is constrained by the attribute ifvarclass.

      1. My hostname is "web01". I want to define the class "webfarm" if
      2. my hostname is listed in the slist "webservers".
      bundle common global_classes
      {
        classes:
          "webfarm"
            ifvarclass => canonify("$(global_vars.webservers)");
      }
      
      bundle common global_vars
      {
        vars:
          "webservers"
            slist => { "web01", "web02", "web03" };
      }
      
      bundle agent example
      {
        reports:
          webfarm::
            "I am a web server";
      }
      

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              atsaloli Aleksey Tsalolikhin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel