These work out of the box. My guess is that you might have an old beta
version of cf-promises lying on the system that did not have this part
of the syntax implemented. Try to clean out everything and make sure
WORKDIR/bin/cf-promises is up to date
M
Juergen Prusseit wrote:
> I try to start with the (unmodified) samples from cfengine-3.0.0p1/inputs
> but getting errors.
> Is there a set of cf3 configs available which are valid for cf3 ?
>
> debian:~# cf-promises
> cf3:/var/cfengine/inputs/site.cf:181,34: (null) is not a valid type
> category for agent bundles, near token '}'
> cf3:/var/cfengine/inputs/site.cf:181,34: Possibly the bundle type (null)
> itself is undefined, near token '}'
> cf3:/var/cfengine/inputs/site.cf:181,34: Constraint lvalue showstate is not
> allowed in bundle category '(null)', near token '}'
> cf3:/var/cfengine/inputs/site.cf:188,37: (null) is not a valid type
> category for agent bundles, near token '}'
> cf3:/var/cfengine/inputs/site.cf:188,37: Possibly the bundle type (null)
> itself is undefined, near token '}'
> cf3:/var/cfengine/inputs/site.cf:188,37: Constraint lvalue showstate is not
> allowed in bundle category '(null)', near token '}'
> cf3:/var/cfengine/inputs/site.cf:195,36: (null) is not a valid type
> category for agent bundles, near token '}'
> cf3:/var/cfengine/inputs/site.cf:195,36: Possibly the bundle type (null)
> itself is undefined, near token '}'
> cf3:/var/cfengine/inputs/site.cf:195,36: Constraint lvalue showstate is not
> allowed in bundle category '(null)', near token '}'
> cf3:/var/cfengine/inputs/site.cf:202,39: (null) is not a valid type
> category for agent bundles, near token '}'
> cf3:/var/cfengine/inputs/site.cf:202,39: Possibly the bundle type (null)
> itself is undefined, near token '}'
> cf3::Too many errors
> debian:~#
>
> site.cf:
> ...
> 174 bundle agent anomalies
> 175 {
> 176 rootprocs_high_dev2::
> 177
> 178 "RootProc anomaly high 2 dev on $(sys.host) at $(sys.env_time)
> 179 measured value $(sys.value_rootprocs) av $(sys.average_rootprocs)
> pm $(sys.stddev_rootprocs)"
> 180
> 181 showstate => { "rootprocs" };
> 182
> 183 entropy_www_in_high&anomaly_hosts.www_in_high_anomaly::
> 184
> 185 "HIGH ENTROPY Incoming www anomaly high anomaly dev!! on $(sys.host)
> at $(sys.env_time)
> 186 - measured value $(sys.value_www_in) av $(sys.average_www_in) pm
> $(sys.stddev_www_in)"
> 187
> 188 showstate => { "incoming.www" };
> 189
> 190 entropy_www_in_low.anomaly_hosts.www_in_high_anomaly::
> ...
>
> Kind Regards
> Juergen Prusseit
>
> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/bug-cfengine
--
Mark Burgess
-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway
Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine