diff options
author | Pawel Wieczorek <p.wieczorek2@samsung.com> | 2020-06-08 16:02:50 +0200 |
---|---|---|
committer | Pawel Wieczorek <p.wieczorek2@samsung.com> | 2020-06-12 07:24:29 +0200 |
commit | 0836dee2a4b9c9bccb636bb0dce7901d6c4b462f (patch) | |
tree | a6a0bf277b0c5c2782368e5b49ad53444118b430 /bootstrap | |
parent | 8785563ad5de756ecf92331095767929c7c14985 (diff) |
Set masterPassword on Vagrant-based minimal ONAP deployment
Variable "global.masterPassword" is used instead of hardcoded passwords.
Sample value provided in Vagrantfile should be used for evaluation
purposes only!
Issue-ID: ONAPARC-551
Change-Id: I72c565ec27dfb33d55810383c632adb9d886e689
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/vagrant-minimal-onap/Vagrantfile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstrap/vagrant-minimal-onap/Vagrantfile b/bootstrap/vagrant-minimal-onap/Vagrantfile index 4661cb68c..ceaf1d4ca 100644 --- a/bootstrap/vagrant-minimal-onap/Vagrantfile +++ b/bootstrap/vagrant-minimal-onap/Vagrantfile @@ -14,6 +14,7 @@ cluster_yml = "cluster.yml" apt_prefs_dir = "/etc/apt/apt.conf.d" apt_prefs = "95silent-approval" helm_timeout = "900" +helm_master_password = "vagrant" vm_memory = 1 * 1024 vm_memory_os = 4 * 1024 @@ -185,6 +186,7 @@ $deploy_onap = <<-SCRIPT export $(cat "$ENV" | xargs) TIMEOUT="${3:-#{helm_timeout}}" + MASTER_PASSWORD="${4:-#{helm_master_password}}" encrypt () { KEY="${HOME}/oom/kubernetes/so/resources/config/mso/encryption.key" @@ -197,7 +199,9 @@ $deploy_onap = <<-SCRIPT export KUBECONFIG="${HOME}/.kube/config.onap" - helm deploy core local/onap --namespace onap -f "$OVERRIDE" --verbose --timeout "$TIMEOUT" + helm deploy core local/onap --verbose \ + --set global.masterPassword="$MASTER_PASSWORD" \ + --namespace onap --timeout "$TIMEOUT" -f "$OVERRIDE" SCRIPT Vagrant.configure('2') do |config| |