From: Barış Metin Date: Tue, 20 Apr 2010 15:02:29 +0000 (+0000) Subject: to be able to create different flavours of vservers (exp. f8 on f12 nodes) X-Git-Tag: BootstrapFS-2.0-5~7 X-Git-Url: http://git.onelab.eu/?p=nodeimage.git;a=commitdiff_plain;h=eabbe843db7baeb79b5050fa62520dd3176ea22a to be able to create different flavours of vservers (exp. f8 on f12 nodes) cp vrefs to all supported deployments in install-rpms next step is to add packages to yumgroups.xml --- diff --git a/plc.d/packages b/plc.d/packages index e932eb0..06083fd 100755 --- a/plc.d/packages +++ b/plc.d/packages @@ -43,6 +43,21 @@ case "$1" in # new one type -p createrepo > /dev/null && have_createrepo="true" + + ### copy vserver-PLDISTRO* and vserver-systemslices-PLDISTRO* + ### pacakges to each repository to be able to create different + ### flavours of vservers on nodes + for repository1 in $repositories; do + for repository2 in $repositories; do + if [[ $(basename $repository1) == ${PLC_FLAVOUR_NODE_PLDISTRO}* ]] \ + && [[ $(basename $repository2) == ${PLC_FLAVOUR_NODE_PLDISTRO}* ]] \ + && [[ $repository1 != $repository2 ]] ; then + cp -a $repository1/vserver{,-systemslices}-${PLC_FLAVOUR_NODE_PLDISTRO}* $repository2 + fi + done + done + + for repository in $repositories ; do # the rpms that need signing new_rpms=