From 0b3908ea518f371237642dec2790be6b1c25db95 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 5 Mar 2017 14:43:06 +0000 Subject: Initial import --- promises.cf | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 promises.cf (limited to 'promises.cf') diff --git a/promises.cf b/promises.cf new file mode 100644 index 0000000..24a989c --- /dev/null +++ b/promises.cf @@ -0,0 +1,29 @@ +body common control +{ + any:: + bundlesequence => { + cfengine_controls, + classify, + hello, + }; + inputs => { + @(cfengine_controls.inputs), + "services/main.cf", + }; +} + +bundle common cfengine_controls +{ + vars: + any:: + "input[cf_agent]" string => "controls/cf_agent.cf"; + "input[cf_execd]" string => "controls/cf_execd.cf"; + "input[cf_monitord]" string => "controls/cf_monitord.cf"; + "input[cf_serverd]" string => "controls/cf_serverd.cf"; + "input[cf_runagent]" string => "controls/cf_runagent.cf"; + "inputs" slist => getvalues(input); + reports: + DEBUG|DEBUG_cfengine_controls:: + "DEBUG $(this.bundle)"; + "$(const.t)defining inputs='$(inputs)'"; +} -- cgit v1.2.3