* Our bash scripts use some bash sepcific syntax, so
them can not be started by other shell like zsh.
Add shebang for them, so zsh can simplely execute
'./deploy.sh'
Change-Id: Ic6e6afaa83c6de131e6ac4eda1601d11c5b22656
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
12 files changed:
+#!/bin/bash
#set -x
COMPASS_DIR=`cd ${BASH_SOURCE[0]%/*}/;pwd`
export COMPASS_DIR
+#!/bin/bash
compass_vm_dir=$WORK_DIR/vm/compass
rsa_file=$compass_vm_dir/boot.rsa
ssh_args="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $rsa_file"
+#!/bin/bash
function deploy_host(){
ssh $ssh_args root@${MGMT_IP} mkdir -p /opt/compass/bin/ansible_callbacks
+#!/bin/bash
set -x
function get_option_name_list()
{
+#!/bin/bash
function reboot_hosts() {
if [ -z $POWER_MANAGE ]; then
return
+#!/bin/bash
host_vm_dir=$WORK_DIR/vm
function tear_down_machines() {
old_ifs=$IFS
+#!/bin/bash
#set -x
WORK_DIR=$COMPASS_DIR/work/deploy
-
+#!/bin/bash
function clear_forward_rejct_rules()
{
while sudo iptables -nL FORWARD --line-number|grep -E 'REJECT +all +-- +0.0.0.0/0 +0.0.0.0/0 +reject-with icmp-port-unreachable'|head -1|awk '{print $1}'|xargs sudo iptables -D FORWARD; do :; done
-
+#!/bin/bash
function print_logo()
{
if ! apt --installed list 2>/dev/null | grep "figlet"
+#!/bin/bash
export DEPLOY_COMPASS=${DEPLOY_COMPASS-"true"}
./deploy.sh $*
+#!/bin/bash
export DEPLOY_HOST=${DEPLOY_HOST-"true"}
./deploy.sh $*
+#!/bin/bash
export REDEPLOY_HOST=${REDEPLOY_HOST-"true"}
./deploy.sh $*