| # Copyright (c) 2022 VEXXHOST, Inc. |
| # |
| # 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: Remove OpenStack endpoints |
| openstack.cloud.endpoint: |
| cloud: atmosphere |
| service: senlin |
| endpoint_interface: "{{ item }}" |
| url: endpoint |
| region: "{{ openstack_helm_endpoints_region_name }}" |
| state: absent |
| loop: |
| - public |
| - admin |
| - internal |
| |
| - name: Remove OpenStack service |
| openstack.cloud.catalog_service: |
| cloud: atmosphere |
| name: senlin |
| service_type: clustering |
| state: absent |
| |
| - name: Remove Ingress |
| kubernetes.core.k8s: |
| state: absent |
| definition: |
| apiVersion: networking.k8s.io/v1 |
| kind: Ingress |
| metadata: |
| name: clustering |
| namespace: "{{ senlin_helm_release_namespace }}" |
| |
| - name: Remove Helm chart |
| run_once: true |
| kubernetes.core.helm: |
| name: "{{ senlin_helm_release_name }}" |
| release_namespace: "{{ senlin_helm_release_namespace }}" |
| kubeconfig: /etc/kubernetes/admin.conf |
| state: absent |
| |
| - name: Remove OpenStack user |
| openstack.cloud.identity_user: |
| cloud: atmosphere |
| name: "senlin-{{ openstack_helm_endpoints_region_name }}" |
| domain: service |