aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/host_baremetal.sh
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2015-08-13 08:26:05 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-08-13 08:26:05 +0000
commitade17ce57eb08dbf262cb9b6f1893367e2832dc1 (patch)
tree3f6c489086ca0f002f15114e71f4d64d1564f2b8 /deploy/host_baremetal.sh
parent7951b094df92c40417ec66c4be58871911bbed07 (diff)
parent10e776642a16b2584be88e5be8740f05535d7d06 (diff)
Merge "Add deploy scripts for compass"
Diffstat (limited to 'deploy/host_baremetal.sh')
-rw-r--r--deploy/host_baremetal.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/deploy/host_baremetal.sh b/deploy/host_baremetal.sh
new file mode 100644
index 00000000..a543528f
--- /dev/null
+++ b/deploy/host_baremetal.sh
@@ -0,0 +1,14 @@
+function reboot_hosts() {
+ cmd='for i in {14..18}; do /dev/shm/smm/usr/bin/smmset -l blade$i -d bootoption -v 1 0; echo Y | /dev/shm/smm/usr/bin/smmset -l blade$i -d frucontrol -v 0; done'
+ /usr/bin/expect ${COMPASS_DIR}/deploy/remote_excute.exp ${SWITCH_IPS} 'root' 'Admin@7*24' "$cmd"
+}
+
+function get_host_macs() {
+ local config_file=$WORK_DIR/installer/compass-install/install/group_vars/all
+ local machines=`echo $HOST_MACS|sed 's/ /,/g'`
+
+ echo "test: true" >> $config_file
+ echo "pxe_boot_macs: [${machines}]" >> $config_file
+
+ echo $machines
+}