While we're discussing fundamentals... :) Some small ideas I think may
be useful to the cfengine users:
1) allow passing body parameters as JSON, not just positional
parameters. Take the standard file permissions promise:
"$(crond)/cfrun"
perms => mo("644","root");
it instead becomes:
"$(crond)/cfrun"
perms => "{ mode: 644, owners: ['root'] }";
One way to implement it is to preprocess (s/[^0-9a-zA-Z]/_/g) to
"$(crond)/cfrun"
perms => perms_dynamic_mode_644_owners_root;
and the cf-agent will have to include this body template:
body perms perms_dynamic_mode_644_owners_root
{
mode => 644;
owners => { "root" };
}
The exact implementation doesn't matter, as long as we can pass
parameters more easily and without having to remember the position.
2) cf-agent should have a direct API (shared memory, network interface,
etc.) to tell the user exactly what it's doing, right this millisecond.
Log files are not enough.
Ted
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine