diff options
author | Qiaowei Ren <qiaowei.ren@intel.com> | 2018-03-01 14:38:11 +0800 |
---|---|---|
committer | Qiaowei Ren <qiaowei.ren@intel.com> | 2018-03-01 14:38:11 +0800 |
commit | 7da45d65be36d36b880cc55c5036e96c24b53f00 (patch) | |
tree | d4f944eb4f8f8de50a9a7584ffa408dc3a3185b2 /src/ceph/qa/qa_scripts/openstack/ceph_install_w_ansible/talknice.sh | |
parent | 691462d09d0987b47e112d6ee8740375df3c51b2 (diff) |
remove ceph code
This patch removes initial ceph code, due to license issue.
Change-Id: I092d44f601cdf34aed92300fe13214925563081c
Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
Diffstat (limited to 'src/ceph/qa/qa_scripts/openstack/ceph_install_w_ansible/talknice.sh')
-rwxr-xr-x | src/ceph/qa/qa_scripts/openstack/ceph_install_w_ansible/talknice.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/ceph/qa/qa_scripts/openstack/ceph_install_w_ansible/talknice.sh b/src/ceph/qa/qa_scripts/openstack/ceph_install_w_ansible/talknice.sh deleted file mode 100755 index 6b538cd..0000000 --- a/src/ceph/qa/qa_scripts/openstack/ceph_install_w_ansible/talknice.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -declare -A rsapub -for fulln in $*; do - sname=`echo $fulln | sed 's/\..*//'` - nhead=`echo $sname | sed 's/[0-9]*//g'` - x=`ssh $fulln "ls .ssh/id_rsa"` - if [ -z $x ]; then - ssh $fulln "ssh-keygen -N '' -f .ssh/id_rsa"; - fi - xx=`ssh $fulln "ls .ssh/config"` - if [ -z $xx ]; then - scp config $fulln:/home/ubuntu/.ssh/config - fi - ssh $fulln "chown ubuntu:ubuntu .ssh/config" - ssh $fulln "chmod 0600 .ssh/config" - rsapub[$fulln]=`ssh $fulln "cat .ssh/id_rsa.pub"` -done -for ii in $*; do - ssh $ii sudo iptables -F - for jj in $*; do - pval=${rsapub[$jj]} - if [ "$ii" != "$jj" ]; then - xxxx=`ssh $ii "grep $jj .ssh/authorized_keys"` - if [ -z "$xxxx" ]; then - ssh $ii "echo '$pval' | sudo tee -a /home/ubuntu/.ssh/authorized_keys" - fi - fi - done; -done |