hi Robert, this is probably due to some "corrections" that were made
to the HostRange function. Could you try the latest from svn? I think
that will fix things for you,
best wishes
Mark
white, robert wrote:
> Statement of problem:
>
> Softclass definitions that worked correctly with cfengine 2.1.22 are
> failing with cfengine 2.2.1
>
>
>
> dev_compute soft class works on nodes dev13 and dev14 with early version
> of cfengine, however it fails with cfengine 2.2.1
>
>
>
> Defined Edit /var/cfengine/inputs/motd-master / !dev_compute
>
>
>
> Defined Edit /var/cfengine/inputs/motd-master / dev_compute
>
>
>
> -----------------------------------
>
> cfagent.conf code
>
> -----------------------------------
>
> import:
>
>
>
> any::
>
> cfgroups.conf
>
> cfmain.conf
>
> cfmotd.conf
>
> cfclean.conf
>
> linux:: cflinux.conf
>
>
>
> ---------------------------------------
>
> cfgroups.conf code
>
> ---------------------------------------
>
> groups:
>
>
>
> nu_compute = ( HostRange(node,1-126) )
>
> calc_compute = ( HostRange(calc,1-107) )
>
> dev_compute = ( HostRange(dev,1-24) )
>
> phi_compute = ( HostRange(node00,1-9) HostRange(node0,10-64) )
>
> headnode = ( node0 nu calc phi dev0 bcmgmt1 )
>
> --------------------------------------------
>
> cfmotd.conf
>
> --------------------------------------------
>
> control:
>
>
>
> #
>
> # Message of the Day Master Files
>
> #
>
>
>
> masterfile = ( /var/cfengine/inputs/motd-master )
>
> addendum = ( /var/cfengine/inputs/motd-dev )
>
> actionsequence = ( editfiles files )
>
>
>
> editfiles:
>
>
>
> dev_compute::
>
> { /etc/motd
>
> BeginGroupIfFileIsNewer "$(masterfile)"
>
> EmptyEntireFilePlease
>
> InsertFile "$(masterfile)"
>
> InsertFile "$(addendum)"
>
> AppendIfNoSuchLine "This is $(host) running $(class) OS"
>
> EndGroup
>
> }
>
> !dev_compute::
>
> { /etc/motd
>
>
>
> BeginGroupIfFileIsNewer "$(masterfile)"
>
> EmptyEntireFilePlease
>
> InsertFile "$(masterfile)"
>
> AppendIfNoSuchLine "This is $(host) running $(class) OS"
>
> EndGroup
>
> }
>
> files:
>
>
>
> /etc/motd mode=644 o=root g=root action=fixplain
>
>
>
>
>
>
>
> Regards,
>
>
>
> Rob White
>
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
> Systems Administrator
>
> P&G High Performance Computing
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/bug-cfengine
--
Mark Burgess
Professor of Network and System Administration
Oslo University College
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: [EMAIL PROTECTED]
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine