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]
Systems Administrator
P&G High Performance Computing
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine