74 lines
3.2 KiB
YAML
Executable File
74 lines
3.2 KiB
YAML
Executable File
---
|
|
# One-time Bitnami -> Kubernetes migration using the official launcher-built image.
|
|
# The old release stays live while the replacement is restored and validated.
|
|
- name: Prepare eom.dev Discourse migration target in Kubernetes
|
|
hosts: localhost
|
|
connection: local
|
|
gather_facts: false
|
|
vars:
|
|
discourse_namespace: discourse-next
|
|
discourse_name: discourse
|
|
discourse_migration_mode: true
|
|
discourse_migration_source_namespace: discourse
|
|
# Override only after a database+uploads backup has been encrypted and
|
|
# successfully restored into an isolated test instance.
|
|
discourse_migration_backup_verified: false
|
|
|
|
discourse_hostname: discourse.eom.dev
|
|
discourse_developer_emails:
|
|
- discourse@eom.dev
|
|
discourse_application_version: "{{ vault_discourse_application_version }}"
|
|
discourse_build_version: "{{ vault_discourse_launcher_revision }}"
|
|
discourse_build_enabled: true
|
|
discourse_backup_confirmed: false
|
|
# Push destination for launcher-built local_discourse/app; Docker registry
|
|
# credentials must already be configured on the Linux Ansible controller.
|
|
discourse_image: "{{ vault_discourse_image }}"
|
|
discourse_image_pull_secrets: "{{ vault_discourse_image_pull_secrets | default([]) }}"
|
|
discourse_postgres_image: "{{ vault_discourse_postgres_image }}"
|
|
discourse_redis_image: "{{ vault_discourse_redis_image }}"
|
|
discourse_database_password: "{{ vault_discourse_database_password }}"
|
|
discourse_redis_password: "{{ vault_discourse_redis_password }}"
|
|
discourse_smtp_password: "{{ vault_discourse_smtp_password }}"
|
|
discourse_smtp_address: postfix.eom.dev
|
|
discourse_smtp_port: "587"
|
|
discourse_smtp_username: discourse
|
|
discourse_notification_email: discourse@eom.dev
|
|
|
|
discourse_storage_size: 2Ti
|
|
discourse_postgres_storage_size: 2Ti
|
|
discourse_redis_storage_size: 8Gi
|
|
discourse_resources:
|
|
requests:
|
|
cpu: "1"
|
|
memory: 4Gi
|
|
limits:
|
|
memory: 8Gi
|
|
|
|
# Keep ingress disabled while restoring and validating the backup.
|
|
# The existing Bitnami deployment continues serving production traffic.
|
|
discourse_ingress_enabled: false
|
|
discourse_onion_enabled: false
|
|
|
|
# Only non-bundled plugins are cloned. Set refs to tested commit/tag values
|
|
# in the encrypted vars file as plugin compatibility is confirmed.
|
|
discourse_plugins:
|
|
- name: docker_manager
|
|
repository: https://github.com/discourse/docker_manager.git
|
|
ref: "{{ vault_discourse_plugin_refs.docker_manager }}"
|
|
- name: discourse-activity-pub
|
|
repository: https://github.com/discourse/discourse-activity-pub.git
|
|
ref: "{{ vault_discourse_plugin_refs.activity_pub }}"
|
|
- name: discourse-ldap-auth
|
|
repository: https://github.com/jonmbake/discourse-ldap-auth.git
|
|
ref: "{{ vault_discourse_plugin_refs.ldap_auth }}"
|
|
- name: discourse-prometheus
|
|
repository: https://github.com/discourse/discourse-prometheus.git
|
|
ref: "{{ vault_discourse_plugin_refs.prometheus }}"
|
|
|
|
discourse_ingress_class: nginx
|
|
discourse_tls_secret_name: discourse
|
|
discourse_cluster_issuer: ca-issuer
|
|
roles:
|
|
- ansible-role-discourse
|