Code Review
/
stor4nfv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
initial code repo
[stor4nfv.git]
/
src
/
ceph
/
qa
/
qa_scripts
/
openstack
/
ceph_install_w_ansible
/
multi_action.sh
1
#! /bin/bash
2
source copy_func.sh
3
allparms=$*
4
cmdv=$1
5
shift
6
sites=$*
7
for mac in $sites; do
8
echo $cmdv $mac
9
if [ -f ~/secrets ]; then
10
copy_file ~/secrets $mac . 0777 ubuntu:ubuntu
11
fi
12
copy_file execs/${cmdv} $mac . 0777 ubuntu:ubuntu
13
ssh $mac ./${cmdv} &
14
done
15
./staller.sh $allparms
16
for mac in $sites; do
17
ssh $mac sudo rm -rf secrets
18
done
19
echo "DONE"