blob: 569bb594512257e7b2c8a45bef9dd28f97df7494 [file] [log] [blame]
Mohammed Naserec814912022-03-13 01:53:37 -05001# Copyright (c) 2022 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
Mohammed Naser8248f742024-05-31 10:12:55 -040015- name: Remove OpenStack endpoints
16 openstack.cloud.endpoint:
17 cloud: atmosphere
18 service: senlin
19 endpoint_interface: "{{ item }}"
20 url: endpoint
21 region: "{{ openstack_helm_endpoints_region_name }}"
22 state: absent
23 loop:
24 - public
25 - admin
26 - internal
27
28- name: Remove OpenStack service
29 openstack.cloud.catalog_service:
30 cloud: atmosphere
31 name: senlin
32 service_type: clustering
33 state: absent
34
35- name: Remove Ingress
36 kubernetes.core.k8s:
37 state: absent
38 definition:
39 apiVersion: networking.k8s.io/v1
40 kind: Ingress
41 metadata:
42 name: clustering
43 namespace: "{{ senlin_helm_release_namespace }}"
44
45- name: Remove Helm chart
guilhermesteinmullerec819302023-01-23 10:08:47 -030046 run_once: true
47 kubernetes.core.helm:
Mohammed Naser2145fc32023-01-29 23:23:03 +000048 name: "{{ senlin_helm_release_name }}"
Mohammed Naser2145fc32023-01-29 23:23:03 +000049 release_namespace: "{{ senlin_helm_release_namespace }}"
guilhermesteinmullerec819302023-01-23 10:08:47 -030050 kubeconfig: /etc/kubernetes/admin.conf
Mohammed Naser8248f742024-05-31 10:12:55 -040051 state: absent
Mohammed Naserec814912022-03-13 01:53:37 -050052
Mohammed Naser8248f742024-05-31 10:12:55 -040053- name: Remove OpenStack user
54 openstack.cloud.identity_user:
55 cloud: atmosphere
56 name: "senlin-{{ openstack_helm_endpoints_region_name }}"
57 domain: service