diff options
author | Ritu Sood <ritu.sood@intel.com> | 2020-09-23 20:25:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-23 20:25:04 +0000 |
commit | f1a368f93708ee0a27f0740e353408ab0f19e147 (patch) | |
tree | 3d67d580ae051df709ea01144c01d2c4135e7ce5 /kud/deployment_infra/playbooks/configure-emco-reset.yml | |
parent | 0981003372989348a886262a5cce4a8334f91ccc (diff) | |
parent | 2cbcccc6d06324f3c91306ed73f262b631457a23 (diff) |
Merge "Add playbooks for v2 emco chart."
Diffstat (limited to 'kud/deployment_infra/playbooks/configure-emco-reset.yml')
-rw-r--r-- | kud/deployment_infra/playbooks/configure-emco-reset.yml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/kud/deployment_infra/playbooks/configure-emco-reset.yml b/kud/deployment_infra/playbooks/configure-emco-reset.yml new file mode 100644 index 00000000..a4560cc2 --- /dev/null +++ b/kud/deployment_infra/playbooks/configure-emco-reset.yml @@ -0,0 +1,56 @@ +--- +# 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: Change the emco directory and run helm delete + command: /usr/local/bin/helm delete --purge emco + register: helm_delete + args: + chdir: /opt/multicloud/deployments/helm/v2/emco + + - debug: + var: helm_delete.stdout_lines + + - name: Change the emco directory and delete the emco namespace + command: /usr/local/bin/kubectl delete ns emco + register: delete_emco_ns + args: + chdir: /opt/multicloud/deployments/helm/v2/emco + + - debug: + var: delete_emco_ns.stdout_lines + + - name: Change the emco directory and make clean + command: /usr/bin/make clean + register: make_clean + args: + chdir: /opt/multicloud/deployments/helm/v2/emco + + - debug: + var: make_clean.stdout_lines + + - name: Change the emco directory and make repo-stop + command: /usr/bin/make repo-stop + register: make_repo_stop + args: + chdir: /opt/multicloud/deployments/helm/v2/emco + + - debug: + var: make_repo_stop.stdout_lines + + - name: clean multicloud-k8s path + file: + state: absent + path: /opt/multicloud |