Mohammed Naser | b7b97d6 | 2022-03-12 16:30:00 -0500 | [diff] [blame] | 1 | # 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 | |
okozachenko1203 | 04f9c42 | 2023-09-01 23:35:23 +1000 | [diff] [blame] | 15 | - name: Create CA certificates |
| 16 | kubernetes.core.k8s: |
| 17 | state: present |
| 18 | definition: |
| 19 | - apiVersion: cert-manager.io/v1 |
| 20 | kind: Certificate |
| 21 | metadata: |
| 22 | name: "{{ item }}-ca" |
| 23 | namespace: openstack |
| 24 | spec: |
| 25 | commonName: libvirt |
| 26 | duration: 87600h0m0s |
| 27 | isCA: true |
| 28 | issuerRef: |
| 29 | group: cert-manager.io |
| 30 | kind: ClusterIssuer |
| 31 | name: self-signed |
| 32 | privateKey: |
| 33 | algorithm: ECDSA |
| 34 | size: 256 |
| 35 | renewBefore: 720h0m0s |
| 36 | secretName: "{{ item }}-ca" |
| 37 | loop: |
| 38 | - libvirt-vnc |
| 39 | - libvirt-api |
| 40 | |
okozachenko1203 | d2cd687 | 2023-08-31 19:53:51 +1000 | [diff] [blame] | 41 | - name: Create Issuers |
| 42 | kubernetes.core.k8s: |
| 43 | state: present |
| 44 | definition: |
| 45 | - apiVersion: cert-manager.io/v1 |
| 46 | kind: Issuer |
| 47 | metadata: |
| 48 | name: "{{ item }}" |
| 49 | namespace: openstack |
| 50 | spec: |
| 51 | ca: |
| 52 | secretName: "{{ item }}-ca" |
| 53 | loop: |
| 54 | - libvirt-vnc |
| 55 | - libvirt-api |
| 56 | |
Mohammed Naser | b7b97d6 | 2022-03-12 16:30:00 -0500 | [diff] [blame] | 57 | - name: Deploy Helm chart |
guilhermesteinmuller | 6cfbdff | 2023-01-24 19:52:34 +0000 | [diff] [blame] | 58 | run_once: true |
| 59 | kubernetes.core.helm: |
Mohammed Naser | 2145fc3 | 2023-01-29 23:23:03 +0000 | [diff] [blame] | 60 | name: "{{ libvirt_helm_release_name }}" |
| 61 | chart_ref: "{{ libvirt_helm_chart_ref }}" |
| 62 | release_namespace: "{{ libvirt_helm_release_namespace }}" |
guilhermesteinmuller | 6cfbdff | 2023-01-24 19:52:34 +0000 | [diff] [blame] | 63 | create_namespace: true |
vexxhost-bot | 3001891 | 2024-09-27 11:09:29 -0400 | [diff] [blame] | 64 | kubeconfig: "{{ libvirt_helm_kubeconfig }}" |
Mohammed Naser | 2145fc3 | 2023-01-29 23:23:03 +0000 | [diff] [blame] | 65 | values: "{{ _libvirt_helm_values | combine(libvirt_helm_values, recursive=True) }}" |