summaryrefslogtreecommitdiffstats
path: root/deploy/host_baremetal.sh
blob: 9e25c98d5880ea320374c30403ce601dbd92bad9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function reboot_hosts() {
    if [ -z $POWER_MANAGE ]; then
        return
    fi
    $POWER_MANAGE
}

function get_host_macs() {
    local config_file=$WORK_DIR/installer/compass-install/install/group_vars/all
    echo "test: true" >> $config_file
    machine=`echo $HOST_MACS | sed -e 's/,/'\',\''/g' -e 's/^/'\''/g' -e 's/$/'\''/g'`
    echo "pxe_boot_macs: [$machine]" >> $config_file

    echo $machine
}