# body common control { inputs => {}; bundlesequence => {"b1"}; } body file control { inputs => { "$(sys.libdir)/stdlib.cf" }; } bundle common env { vars: "referential_root_dir" string => "/tmp/ref"; } body copy_from ref_for_level(level, path) { source => "$(env.referential_root_dir)/$(level)/$(path)"; servers => { "localhost" }; compare => "digest"; } body copy_from ref_common(path) { inherit_from => ref_for_level("common", "$(path)"); } bundle agent b1 { vars: "service_ref_subdir" string => "service_x"; files: #for test purpose "$(env.referential_root_dir)/common/$(service_ref_subdir)/tmp/fic1" create => "true"; "/tmp/fic1" copy_from => ref_common("$(service_ref_subdir)/tmp/fic1"), perms => mog("644", "user", "user"); reports: "$(this.namespace).$(this.bundle) in file $(this.promise_filename) at line $(this.promise_linenumber) DONE"; }