blob: c36357fd7b9d487ea4af38463e7fba7cf2e54307 [file] [log] [blame]
# 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: Deploy Helm chart
run_once: true
kubernetes.core.helm:
name: "{{ glance_helm_release_name }}"
chart_ref: "{{ glance_helm_chart_ref }}"
release_namespace: "{{ glance_helm_release_namespace }}"
create_namespace: true
kubeconfig: "{{ glance_helm_kubeconfig }}"
values: "{{ _glance_helm_values | combine(glance_helm_values, recursive=True) }}"
- name: Create Ingress
ansible.builtin.include_role:
name: openstack_helm_ingress
vars:
openstack_helm_ingress_endpoint: image
openstack_helm_ingress_service_name: glance-api
openstack_helm_ingress_service_port: 9292
openstack_helm_ingress_annotations: "{{ _glance_ingress_annotations | combine(glance_ingress_annotations) }}"
openstack_helm_ingress_class_name: "{{ glance_ingress_class_name }}"
- name: Create images
ansible.builtin.include_role:
name: glance_image
loop: "{{ glance_images }}"
vars:
glance_image_name: "{{ item.name }}"
glance_image_url: "{{ item.url }}"
glance_image_min_disk: "{{ item.min_disk | default(omit) }}"
glance_image_min_ram: "{{ item.min_ram | default(omit) }}"
glance_image_container_format: "{{ item.container_format | default(omit) }}"
glance_image_disk_format: "{{ item.disk_format | default(omit) }}"
glance_image_properties: "{{ item.properties | default(omit) }}"
glance_image_kernel: "{{ item.kernel | default(omit) }}"
glance_image_ramdisk: "{{ item.ramdisk | default(omit) }}"
glance_image_is_public: "{{ item.is_public | default(omit) }}"