On Fri, 16 Dec 2011 15:53:10 +0100 (CET) neilhwatson wrote: n> One other point comes to mind if you'll indulge me again. I think this was n> mentioned before. Passing parameters to bundles. I'd like to see this done n> better. The current positional approach is very limited. It might be helpful n> to show the parameters in left and right pairs. E.g.
n> "any" usebundle => ssh_pub_key( n> user => "bob", n> keys => "$(main.bobskeys)"; n> ); n> It may also be handy to have a mechanism to set a default value to the called n> bundle if a variable is not passed, similar to var="value" unless (var);. If there's one thing I'd like to see, this is it! My JSON proposal was 50% addressing the lack of named parameters and 50% about not defining so many body templates (the latter, I think, is what Mark discouraged). Perhaps named parameters could be implemented with an alternate promise parameter, e.g. "usebundle_positional" or something like that. That would preserve backwards compatibility. Ted _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine