From 2cbcccc6d06324f3c91306ed73f262b631457a23 Mon Sep 17 00:00:00 2001 From: Todd Malsbary Date: Fri, 7 Aug 2020 10:20:12 -0700 Subject: Add playbooks for v2 emco chart. Rename v2/onap4k8s to v2/emco, and rename sanity-check-for-v2.sh to emco.sh. This allows --plugins emco to be passed to installer.sh in place of --plugins onap4k8s. Issue-ID: MULTICLOUD-1181 Signed-off-by: Todd Change-Id: Idb427a8aa4c8aaff181965a540078c8cf6dd88aa --- kud/deployment_infra/playbooks/configure-emco.yml | 55 +++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 kud/deployment_infra/playbooks/configure-emco.yml (limited to 'kud/deployment_infra/playbooks/configure-emco.yml') diff --git a/kud/deployment_infra/playbooks/configure-emco.yml b/kud/deployment_infra/playbooks/configure-emco.yml new file mode 100644 index 00000000..255ce6a4 --- /dev/null +++ b/kud/deployment_infra/playbooks/configure-emco.yml @@ -0,0 +1,55 @@ +--- +# 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 emco code in /opt folder + git: + repo: 'https://github.com/onap/multicloud-k8s.git' + dest: /opt/multicloud + + - name: install make package for ubuntu systems + apt: name=make state=present update_cache=yes + when: ansible_distribution == "Ubuntu" + + - name: install make package for centos systems + yum: name=make state=present update_cache=yes + when: ansible_distribution == "CentOS" + + - name: Change the emco directory and run the command make repo + command: /usr/bin/make repo + register: make_repo + args: + chdir: /opt/multicloud/deployments/helm/v2/emco + + - debug: + var: make_repo.stdout_lines + + - name: Change the emco directory and run the command make all + command: /usr/bin/make all + register: make_all + args: + chdir: /opt/multicloud/deployments/helm/v2/emco + + - debug: + var: make_all.stdout_lines + + - name: Change the emco directory and run the command helm install + command: /usr/local/bin/helm install dist/packages/emco-0.1.0.tgz --name emco --namespace emco + register: helm_install + args: + chdir: /opt/multicloud/deployments/helm/v2/emco + + - debug: + var: helm_install.stdout_lines -- cgit 1.2.3-korg