Forum: CFEngine Help
Subject: Re: CFEngine Help: Thoughts about some cfengine design decisions?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,24294,24343#msg-24343

One other point comes to mind if you'll indulge me again.  I think this was
mentioned before.  Passing parameters to bundles.  I'd like to see this done
better.  The current positional approach is very limited.  It might be helpful
to show the parameters in left and right pairs.  E.g.

"any" usebundle => ssh_pub_key(
        user => "bob",
        keys => "$(main.bobskeys)";
        );

It may also be handy to have a mechanism to set a default value to the called
bundle if a variable is not passed, similar to var="value" unless (var);.

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

Reply via email to