aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/stor4nfv/roles
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/stor4nfv/roles')
-rw-r--r--plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml b/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml
index d14c0c68..4c4370fd 100644
--- a/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml
+++ b/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml
@@ -37,9 +37,10 @@
shell:
_raw_params: |
function _modify_osdsdock_endpoint {
- local ip_addr=(lxc-info -n $(lxc-ls --line | grep ceph-mon) -iH)|grep "10.1"
+ local ip_addr=$((lxc-info -n $(lxc-ls --line | grep ceph-mon) -iH)|grep "10.1")
if [ ! -z "${ip_addr}" ]; then
- sed -i 's/^50050.*/api_endpoint = $ip_addr:50050/g' /etc/opensds/opensds.conf
+ sed -i 's/api_endpoint = localhost:50050/api_endpoint = '"$ip_addr"':50050/g' \
+ /etc/opensds/opensds.conf
fi
}
_modify_osdsdock_endpoint