Forum: Cfengine Help Subject: use variable in compound classes Author: rpaulmier Link to topic: https://cfengine.com/forum/read.php?3,17599,17599#msg-17599
Hi, I'm trying to use variable in compound classes, like this: control: actionsequence = ( copy ) policyhost = ( myhost ) copy: !$(policyhost):: /etc/sudoers dest=/etc/sudoers server=$(policyhost) running cfagent -qv, it fails with message: "There seems to be an action or class syntax error" If I directly use myhost as the compound class, and not $(policyhost), it works perfectly. What am I doing wrong ? Thanks for your help. -- rémi _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine