| # 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: Generate OpenStack-Helm endpoints |
| ansible.builtin.include_role: |
| name: openstack_helm_endpoints |
| vars: |
| openstack_helm_endpoints_repo_name: openstack-helm |
| openstack_helm_endpoints_chart: barbican |
| |
| - name: Deploy Helm chart |
| kubernetes.core.k8s: |
| state: present |
| definition: |
| - apiVersion: v1 |
| kind: Secret |
| metadata: |
| name: atmosphere-barbican |
| namespace: openstack |
| stringData: |
| values.yaml: "{{ _openstack_helm_barbican_values | combine(openstack_helm_barbican_values, recursive=True) | to_nice_yaml }}" |
| |
| - apiVersion: helm.toolkit.fluxcd.io/v2beta1 |
| kind: HelmRelease |
| metadata: |
| name: barbican |
| namespace: openstack |
| spec: |
| interval: 60s |
| chart: |
| spec: |
| chart: barbican |
| version: 0.2.12 |
| sourceRef: |
| kind: HelmRepository |
| name: openstack-helm |
| install: |
| disableWait: true |
| upgrade: |
| disableWait: true |
| valuesFrom: |
| - kind: Secret |
| name: atmosphere-barbican |
| - kind: Secret |
| name: percona-xtradb |
| valuesKey: root |
| targetPath: endpoints.oslo_db.auth.admin.password |
| - kind: Secret |
| name: rabbitmq-barbican-default-user |
| valuesKey: username |
| targetPath: endpoints.oslo_messaging.auth.admin.username |
| - kind: Secret |
| name: rabbitmq-barbican-default-user |
| valuesKey: password |
| targetPath: endpoints.oslo_messaging.auth.admin.password |
| |
| - name: Create Ingress |
| ansible.builtin.include_role: |
| name: openstack_helm_ingress |
| vars: |
| openstack_helm_ingress_endpoint: key_manager |
| openstack_helm_ingress_service_name: barbican-api |
| openstack_helm_ingress_service_port: 9311 |
| openstack_helm_ingress_annotations: "{{ openstack_helm_barbican_ingress_annotations }}" |