blob: adfdfdcd839b5be04f9923bcdf5ffc2b4175f8d0 [file] [log] [blame]
Mohammed Naserb7b97d62022-03-12 16:30:00 -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
okozachenko120304f9c422023-09-01 23:35:23 +100015- 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
okozachenko1203d2cd6872023-08-31 19:53:51 +100041- 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 Naserb7b97d62022-03-12 16:30:00 -050057- name: Deploy Helm chart
guilhermesteinmuller6cfbdff2023-01-24 19:52:34 +000058 run_once: true
59 kubernetes.core.helm:
Mohammed Naser2145fc32023-01-29 23:23:03 +000060 name: "{{ libvirt_helm_release_name }}"
61 chart_ref: "{{ libvirt_helm_chart_ref }}"
62 release_namespace: "{{ libvirt_helm_release_namespace }}"
guilhermesteinmuller6cfbdff2023-01-24 19:52:34 +000063 create_namespace: true
Austin Talbot78a774a2024-09-25 10:15:36 -060064 kubeconfig: "{{ libvirt_helm_kubeconfig }}"
Mohammed Naser2145fc32023-01-29 23:23:03 +000065 values: "{{ _libvirt_helm_values | combine(libvirt_helm_values, recursive=True) }}"