Forum: CFEngine Help
Subject: Check if host is in the list
Author: rprots
Link to topic: https://cfengine.com/forum/read.php?3,25333,25333#msg-25333

I have the list of hosts as variable:

vars:
  "staging"
    slist => {
      "node-staging1",
      "node-staging2",
      "node-staging-test1",
      "node-staging-test2",
      "st1",
      "st3",
    },


I want to have class "staging_profile" registered if cf-agent is running on any 
host in the list.

Anything like this seems to not work:

classes:
  "staging_profile"
    expression => classify(@(hosts.staging)),


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

Reply via email to