Skip to content
Snippets Groups Projects

[LOS-436] ]add support to build RHEL hosts

Merged Ben Morrice requested to merge los436 into master
3 files
+ 201
45
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -7,7 +7,7 @@ usage: $0 -s [server]
This script is will initiate a rebuild of a given host via openstack/aims2
OPTIONS:
-s server : lxvmslc6t-amd64 lxvmslc6t-i386 lxvmslc6p-amd64 lxvmslc6p-i386 lxvmcc7t-amd64 lxvmcc7p-amd64 all
-s server : lxvmslc6t-amd64 lxvmslc6t-i386 lxvmslc6p-amd64 lxvmslc6p-i386 lxvmcc7t-amd64 lxvmcc7p-amd64 lxvmrh7t-amd64 lxvmrh8t-amd64 all
-p : disable polling of server rebuild process
-c : disable confirmations
-r : instruct VM to reboot (may be required if VM is 'stuck')
@@ -34,6 +34,12 @@ function pre_rebuild {
else
dist='SLC6X'
fi
if [[ $hostname == *"rh7"* ]]; then
dist='RHEL_7_8'
fi
if [[ $hostname == *"rh8"* ]]; then
dist='RHEL_8_2'
fi
target="${dist}_${arch}"
if [ ! -z $reboot ]; then
if [ -z $confirmations ]; then
Loading