From: Gaurav Agrawal Date: Wed, 28 Oct 2020 12:50:35 +0000 (+0000) Subject: Merge "user-mgmt uninstall playbook added" X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=65f0fe5152b3126b45b0af09fca5aeb9f8aae22d;hp=3fa45722265828ae02b8c3110921d8dec94072c6;p=ealt-edge.git Merge "user-mgmt uninstall playbook added" --- diff --git a/ocd/infra/playbooks/roles/eg_user-mgmt/tasks/main.yml b/ocd/infra/playbooks/roles/eg_user-mgmt/tasks/main.yml index 25db2e9..6545b6a 100644 --- a/ocd/infra/playbooks/roles/eg_user-mgmt/tasks/main.yml +++ b/ocd/infra/playbooks/roles/eg_user-mgmt/tasks/main.yml @@ -15,7 +15,12 @@ # --- + # tasks file for eg_user-mgmt - include: "install.yml" static: false when: operation == 'install' + +- include: "uninstall.yml" + static: false + when: operation == 'uninstall' diff --git a/ocd/infra/playbooks/roles/eg_user-mgmt/tasks/uninstall.yml b/ocd/infra/playbooks/roles/eg_user-mgmt/tasks/uninstall.yml new file mode 100644 index 0000000..a234fb4 --- /dev/null +++ b/ocd/infra/playbooks/roles/eg_user-mgmt/tasks/uninstall.yml @@ -0,0 +1,23 @@ +# +# Copyright 2020 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +--- + +- name: Uninstall user management + command: helm uninstall user-mgmt-edgegallery + +- name: Uninstall user mngmt jwt + command: kubectl delete secret user-mgmt-jwt-secret