Forum: Cfengine Help
Subject: Re: Cfengine Help: cfengine_stdlib.cf and hardclasses
Author: di3z
Link to topic: https://cfengine.com/forum/read.php?3,21982,22005#msg-22005

For example, i have following commands defined:

    commands:
        reload_firewall::
            "/sbin/iptables-restore /etc/iptables.rules"
            ifvarclass => "linux",
            contain => silent;

            "/sbin/pfctl -f /etc/pf.conf"
            ifvarclass => "freebsd",
            contain => silent;

And if cfengine_stdlib.cf is used, i get following error:

# cf-promises
Body type mismatch for body reference "freebsd" in promise at line XX of 
/var/lib/cfengine3/inputs/YY.cf

where line XX == 'ifvarclass => "freebsd",'

If i change cfengine_stdlib.cf and substitute body package_method freebsd with 
something else (e.g. body package_method fbsd) -- everything works as expected 
and no error reported

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

Reply via email to