From 7da45d65be36d36b880cc55c5036e96c24b53f00 Mon Sep 17 00:00:00 2001 From: Qiaowei Ren Date: Thu, 1 Mar 2018 14:38:11 +0800 Subject: remove ceph code This patch removes initial ceph code, due to license issue. Change-Id: I092d44f601cdf34aed92300fe13214925563081c Signed-off-by: Qiaowei Ren --- src/ceph/qa/qa_scripts/openstack/fix_conf_file.sh | 29 ----------------------- 1 file changed, 29 deletions(-) delete mode 100755 src/ceph/qa/qa_scripts/openstack/fix_conf_file.sh (limited to 'src/ceph/qa/qa_scripts/openstack/fix_conf_file.sh') diff --git a/src/ceph/qa/qa_scripts/openstack/fix_conf_file.sh b/src/ceph/qa/qa_scripts/openstack/fix_conf_file.sh deleted file mode 100755 index bff2ef3..0000000 --- a/src/ceph/qa/qa_scripts/openstack/fix_conf_file.sh +++ /dev/null @@ -1,29 +0,0 @@ -#/bin/bash -fv -source ./copy_func.sh -# -# Take a templated file, modify a local copy, and write it to the -# remote site. -# -# Usage: fix_conf_file [] -# -- site where we want this modified file stored. -# -- name of the remote file. -# -- directory where the file will be stored -# -- (optional) rbd_secret used by libvirt -# -function fix_conf_file() { - if [[ $# < 3 ]]; then - echo 'fix_conf_file: Too few parameters' - exit 1 - fi - openstack_node_local=${1} - cp files/${2}.template.conf ${2}.conf - hostname=`ssh $openstack_node_local hostname` - inet4addr=`ssh $openstack_node_local hostname -i` - sed -i s/VARHOSTNAME/$hostname/g ${2}.conf - sed -i s/VARINET4ADDR/$inet4addr/g ${2}.conf - if [[ $# == 4 ]]; then - sed -i s/RBDSECRET/${4}/g ${2}.conf - fi - copy_file ${2}.conf $openstack_node_local ${3} 0644 "root:root" - rm ${2}.conf -} -- cgit 1.2.3-korg