to be able to create different flavours of vservers (exp. f8 on f12 nodes)
Barış Metin [Tue, 20 Apr 2010 15:02:29 +0000 (15:02 +0000)]
cp vrefs to all supported deployments in install-rpms
next step is to add packages to yumgroups.xml

plc.d/packages

index e932eb0..06083fd 100755 (executable)
@@ -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=