From 10e776642a16b2584be88e5be8740f05535d7d06 Mon Sep 17 00:00:00 2001 From: "carey.xu" Date: Mon, 10 Aug 2015 23:02:31 -0400 Subject: Add deploy scripts for compass JIRA: COMPASS-11 Change-Id: Id588912c73b424228b6f01cd47fd282d040f7b8f Signed-off-by: carey.xu --- deploy/host_baremetal.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 deploy/host_baremetal.sh (limited to 'deploy/host_baremetal.sh') 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 +} -- cgit 1.2.3-korg