Hi everyone,
I've been trying to do some concatenation of the "inputs" from several
slists. Depending on class restrictions I want some slists to be added
to the inputs. When this causes a certain slist to be empty a "cf_null"
ends up in the "inputs".
So far so good, and most everything works fine this way, but cf-serverd
(both 3.1.4 and 3.1.5) seems to try and load a file called cf_null which
is, of course, not there. This will generate this error:
cf3[10035]: !!! System error for stat: "No such file or directory"
cf3[10037]: Can't stat file "/var/cfengine/inputs/cf_null" for parsing
When I simply load all inputs from the common control bundle instead all
is well... As an aside, this works just fine for a similar case I'm
using to set up the bundle sequence.
Am I right in thinking I've stumbled onto a bug, or is this by design?
Here's an example of what I'm doing with the inputs:
----------------------------------
body common control {
inputs => {
"cfengine_stdlib.cf",
@(bs.inputs),
};
}
bundle common bs {
vars:
#departments can override these with their own
"inputs_company_wide"
comment => "company wide policies",
slist => {
"common/common.ntp.cf",
"common/common.sudo.cf",
};
dns_servers::
# policies maintained by departments
"inputs_dns"
comment => "policy files for dns servers",
slist => {
"dns/dns.ntp.cf",
};
# more departments here...
any::
# mandatory policies for all servers
"inputs"
policy => "ifdefined",
slist => {
"update.cf", # Provides: update
@(inputs_company_wide),
@(inputs_dns),
};
}
--
Sjoerd Oostdijck RIPE Network Coordination Centre
RIPE NCC, IT Department Singel 258, Amsterdam, NL
http://www.ripe.net +31 20 535 4444
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine