aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/stor4nfv/roles/os-stor4nfv/files/os_configure_vars.sh
blob: a081c0bd1f729050dac1c183deceff17924f0e93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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

# etcd_host
sed -i 's/^etcd_host.*/etcd_host: '"$2"'/g' group_vars/osdsdb.yml