Hi All,
I know a number of sites are using cfengine to manage nodes and since
I've had to develop a trick or two to install the right packages via
cfengine I thought I'd share.
1) The compat-gcc-34-g77.i386 package for atlas presents two problems,
first it's not in the standard SL5-x86_64 repos and two you cannot yum
install it because of a doc file clash. So instead of putting:
compat-gcc-34-g77.i386 action=install
in my packages section I've got:
compat-gcc-34-g77.i386 elsedefine=compat_gcc_34_g77_needed
Then latter in the shell commands:
compat_gcc_34_g77_needed::
'/usr/bin/wget -O /tmp/compat-gcc-34-g77-3.4.6-4.i386.rpm
http\://heplnx165.pp.rl.ac.uk/linux/scientific/52/i386/SL/compat-gcc-34-
g77-3.4.6-4.i386.rpm' umask=022
"/bin/rpm -i --excludedocs
/tmp/compat-gcc-34-g77-3.4.6-4.i386.rpm" umask=022
"/bin/rm -f /tmp/compat-gcc-34-g77-3.4.6-4.i386.rpm" umask=022
2) The second trick is basically the same but for the yum groupinstall
of glite-WN, the new part it to check the status of glite-WN-version in
packages to trigger the install
packages:
glite-WN-version elsedefine=glite_WN_needed
shellcommands:
glite_WN_needed::
"/usr/bin/yum -y -d 1 -e 1 groupinstall glite-WN" umask=022
"/bin/touch /var/cfengine/control/runyaim" umask=022
Hopefully this'll save someone a few minutes of head scratching at
least.
Yours,
Chris.
--
Scanned by iCritical.
|