blob: c36357fd7b9d487ea4af38463e7fba7cf2e54307 [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
Mohammed Naserb7b97d62022-03-12 16:30:00 -050015- name: Deploy Helm chart
guilhermesteinmullerbc82a042023-01-24 18:20:05 +000016 run_once: true
17 kubernetes.core.helm:
Mohammed Naser2145fc32023-01-29 23:23:03 +000018 name: "{{ glance_helm_release_name }}"
19 chart_ref: "{{ glance_helm_chart_ref }}"
20 release_namespace: "{{ glance_helm_release_namespace }}"
guilhermesteinmullerbc82a042023-01-24 18:20:05 +000021 create_namespace: true
Austin Talbot78a774a2024-09-25 10:15:36 -060022 kubeconfig: "{{ glance_helm_kubeconfig }}"
Mohammed Naser2145fc32023-01-29 23:23:03 +000023 values: "{{ _glance_helm_values | combine(glance_helm_values, recursive=True) }}"
Mohammed Naserb7b97d62022-03-12 16:30:00 -050024
25- name: Create Ingress
26 ansible.builtin.include_role:
27 name: openstack_helm_ingress
28 vars:
29 openstack_helm_ingress_endpoint: image
30 openstack_helm_ingress_service_name: glance-api
31 openstack_helm_ingress_service_port: 9292
Mohammed Naser2145fc32023-01-29 23:23:03 +000032 openstack_helm_ingress_annotations: "{{ _glance_ingress_annotations | combine(glance_ingress_annotations) }}"
Mohammed Naserc139abc2025-02-05 14:03:20 -050033 openstack_helm_ingress_class_name: "{{ glance_ingress_class_name }}"
okozachenkoa6c49ce2022-04-15 01:20:31 +100034
35- name: Create images
Mohammed Naser4b630042023-02-07 20:47:45 +000036 ansible.builtin.include_role:
37 name: glance_image
38 loop: "{{ glance_images }}"
39 vars:
40 glance_image_name: "{{ item.name }}"
41 glance_image_url: "{{ item.url }}"
42 glance_image_min_disk: "{{ item.min_disk | default(omit) }}"
43 glance_image_min_ram: "{{ item.min_ram | default(omit) }}"
44 glance_image_container_format: "{{ item.container_format | default(omit) }}"
45 glance_image_disk_format: "{{ item.disk_format | default(omit) }}"
46 glance_image_properties: "{{ item.properties | default(omit) }}"
47 glance_image_kernel: "{{ item.kernel | default(omit) }}"
48 glance_image_ramdisk: "{{ item.ramdisk | default(omit) }}"
49 glance_image_is_public: "{{ item.is_public | default(omit) }}"