sunbeam-charms/tests/misc/smoke.yaml.j2
Guillaume Boutry 943c9fd988
Migrate database interface
data_platform_libs.v0.database_requires was deprecated on January 4th,
2023 and has not received updates since then.
This change migrates to data_platform_libs.v0.data_interfaces which the
preferred way to interact with MySQL.

Most notable changes:
- User/password in a secret
- Keystone test 'test_on_peer_data_changed_with_fernet_keys_and_fernet_secret_different'
  is no longer mocking secrets to make sure it's using database secrets.

Change-Id: Ia1908c0828689458c6ff3fa8d9640c8debfc0a73
2024-01-27 14:29:40 +01:00

106 lines
2.6 KiB
Django/Jinja

bundle: kubernetes
applications:
traefik:
charm: ch:traefik-k8s
channel: 1.0/candidate
scale: 1
trust: true
options:
kubernetes-service-annotations: metallb.universe.tf/address-pool=public
mysql:
charm: ch:mysql-k8s
channel: 8.0/stable
scale: 1
trust: true
ldap-server:
charm: ch:ldap-test-fixture-k8s
channel: edge
scale: 1
rabbitmq:
charm: ch:rabbitmq-k8s
channel: 3.12/edge
scale: 1
trust: true
options:
minimum-replicas: 1
keystone:
{% if keystone_k8s is defined and keystone_k8s is sameas true -%}
charm: ../../../keystone-k8s.charm
{% else -%}
charm: ch:keystone-k8s
channel: 2023.2/edge
{% endif -%}
scale: 1
trust: true
options:
admin-role: admin
storage:
fernet-keys: 5M
credential-keys: 5M
resources:
keystone-image: ghcr.io/canonical/keystone:2023.2
designate-bind:
{% if designate_bind_k8s is defined and designate_bind_k8s is sameas true -%}
charm: ../../../designate-bind-k8s.charm
{% else -%}
charm: ch:designate-bind-k8s
channel: 9/edge
{% endif -%}
scale: 1
trust: false
resources:
designate-bind-image: ubuntu/bind9:9.18-22.04_beta
designate:
{% if designate_k8s is defined and designate_k8s is sameas true -%}
charm: ../../../designate-k8s.charm
{% else -%}
charm: ch:designate-k8s
channel: 2023.2/edge
{% endif -%}
scale: 1
trust: false
resources:
designate-image: ghcr.io/canonical/designate-consolidated:2023.2
keystone-ldap:
{% if keystone_ldap_k8s is defined and keystone_ldap_k8s is sameas true -%}
charm: ../../../keystone-ldap-k8s.charm
{% else -%}
charm: ch:keystone-ldap-k8s
channel: 2023.2/edge
{% endif -%}
scale: 1
openstack-exporter:
{% if openstack_exporter_k8s is defined and openstack_exporter_k8s is sameas true -%}
charm: ../../../openstack-exporter-k8s.charm
{% else -%}
charm: ch:openstack-exporter-k8s
channel: 2023.2/edge
{% endif -%}
scale: 1
resources:
openstack-exporter-image: ghcr.io/canonical/openstack-exporter:1.6.0-7533071
relations:
- - mysql:database
- keystone:database
- - traefik:ingress
- keystone:ingress-public
- - mysql:database
- designate:database
- - rabbitmq:amqp
- designate:amqp
- - keystone:identity-service
- designate:identity-service
- - traefik:ingress
- designate:ingress-public
- - designate-bind:dns-backend
- designate:dns-backend
- - keystone:domain-config
- keystone-ldap:domain-config
- - keystone:identity-ops
- openstack-exporter:identity-ops