aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/stor4nfv/roles/os-stor4nfv/files/os_configure_vars.sh
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-08-23 07:00:31 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-08-23 07:00:31 +0000
commit6d6562461a5faae955dedb1c365cb4b21a60d516 (patch)
tree244a531cbe47589088d97f3df789483201277077 /plugins/stor4nfv/roles/os-stor4nfv/files/os_configure_vars.sh
parent77cee7bf8e6c5e3780dc049e4d57d06036c9ddb5 (diff)
parentdd141c87e0c5ca38b727760d70fa2956d83d03b2 (diff)
Merge "[stor4nfv] Add os-stor4nfv role for OpenStack deploy"
Diffstat (limited to 'plugins/stor4nfv/roles/os-stor4nfv/files/os_configure_vars.sh')
-rw-r--r--plugins/stor4nfv/roles/os-stor4nfv/files/os_configure_vars.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/stor4nfv/roles/os-stor4nfv/files/os_configure_vars.sh b/plugins/stor4nfv/roles/os-stor4nfv/files/os_configure_vars.sh
new file mode 100644
index 00000000..7d497598
--- /dev/null
+++ b/plugins/stor4nfv/roles/os-stor4nfv/files/os_configure_vars.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+# #############################################################################
+# Copyright (c) 2018 Intel Corp.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+# #############################################################################
+
+cd $HOME/gopath/src/github.com/os-stor4nfv/stor4nfv/ci/ansible
+
+sed -i '/- osdsdock/s/^/#/g' site.yml
+
+sed -i '/- dashboard-installer/s/^/#/g' site.yml
+
+sed -i '/- nbp-installer/s/^/#/g' site.yml
+
+sed -i '/check_ansible_version/a \ ignore_errors: yes\' roles/common/tasks/main.yml
+
+# auth
+sed -i 's/^opensds_auth_strategy.*/opensds_auth_strategy: noauth/g' group_vars/auth.yml
+
+# opensds_endpoint
+sed -i 's/^opensds_endpoint.*/opensds_endpoint: http:\/\/'"$1"':50040/g' group_vars/common.yml