diff options
author | Ritu Sood <Ritu.Sood@intel.com> | 2019-10-24 22:22:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-10-24 22:22:57 +0000 |
commit | 09aa5765d5667dbe46947dd9d4f41c9063b44646 (patch) | |
tree | f9490feb458a64dd4b90628f4ec239fb16d65d2a /kud/deployment_infra/playbooks/configure-onap4k8s.yml | |
parent | eb414b9d43a9b094ce9445b35933f00343d40b8f (diff) | |
parent | 47224ff96fea8e5a4cda20e5211f66adceb87d10 (diff) |
Merge "Adding onap4ks installation script in kud containerized installer"
Diffstat (limited to 'kud/deployment_infra/playbooks/configure-onap4k8s.yml')
-rw-r--r-- | kud/deployment_infra/playbooks/configure-onap4k8s.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/kud/deployment_infra/playbooks/configure-onap4k8s.yml b/kud/deployment_infra/playbooks/configure-onap4k8s.yml new file mode 100644 index 00000000..cacb41c9 --- /dev/null +++ b/kud/deployment_infra/playbooks/configure-onap4k8s.yml @@ -0,0 +1,47 @@ +--- +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2018 +# 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 +############################################################################## + +- hosts: kube-master + tasks: + - name: Load kud variables + include_vars: + file: kud-vars.yml + + - name: Getting onap4k8s code in /opt folder + git: + repo: 'https://github.com/onap/multicloud-k8s.git' + dest: /opt/multicloud + + - name: Change the onap4k8s directory and run the command make repo + command: /usr/bin/make repo + register: make_repo + args: + chdir: /opt/multicloud/deployments/helm/onap4k8s + + - debug: + var: make_repo.stdout_lines + + - name: Change the onap4k8s directory and run the command make all + command: /usr/bin/make all + register: make_all + args: + chdir: /opt/multicloud/deployments/helm/onap4k8s + + - debug: + var: make_all.stdout_lines + + - name: Change the onap4k8s directory and run the command helm install + command: /usr/local/bin/helm install dist/packages/multicloud-k8s-5.0.0.tgz --name multicloud-onap8ks --namespace onap4k8s-ns --set service.type=NodePort + register: helm_install + args: + chdir: /opt/multicloud/deployments/helm/onap4k8s + + - debug: + var: helm_install.stdout_lines |