43 lines
1.9 KiB
YAML
43 lines
1.9 KiB
YAML
---
|
|
- import_playbook: finallycoffee.databases.postgresql_client
|
|
vars:
|
|
postgresql_hosts: "{{ pretix_hosts | default('pretix') }}"
|
|
postgresql_become: >-2
|
|
{{ pretix_postgresql_client_become | default(pretix_become | default(true)) }}
|
|
postgresql_client_database: "{{ pretix_postgresql_database | default('pretix') }}"
|
|
postgresql_client_username: "{{ pretix_postgresql_user | default('pretix') }}"
|
|
postgresql_client_password: >-2
|
|
{{ pretix_postgresql_password | mandatory(msg='pretix postgresql password is required') }}
|
|
|
|
- import_playbook: finallycoffee.databases.valkey
|
|
vars:
|
|
valkey_hosts: "{{ pretix_hosts | default('pretix') }}"
|
|
valkey_instance: "pretix"
|
|
valkey_secret: "{{ pretix_redis_secret | mandatory(msg='pretix valkey secret is required') }}"
|
|
valkey_config_user:
|
|
- "default on +@all -DEBUG ~* >{{ pretix_redis_secret }}"
|
|
valkey_container_ports:
|
|
- "{{ pretix_redis_bind_addr | default('127.0.10.1:6739') }}:{{ valkey_config_port }}"
|
|
valkey_config_bind:
|
|
- "0.0.0.0"
|
|
- "-::"
|
|
|
|
- name: Install and configure pretix
|
|
hosts: "{{ pretix_hosts | default('pretix') }}"
|
|
become: "{{ pretix_become | default(true) }}"
|
|
gather_facts: "{{ pretix_gather_facts | default(false) }}"
|
|
roles:
|
|
- role: finallycoffee.services.pretix
|
|
vars:
|
|
pretix_config_database_name: "{{ pretix_postgresql_database | default('pretix') }}"
|
|
pretix_config_database_user: "{{ pretix_postgresql_user | default('pretix') }}"
|
|
pretix_config_database_password: "{{ pretix_postgresql_password }}"
|
|
pretix_config_redis_location: >-2
|
|
redis://:{{ pretix_redis_secret }}@{{ pretix_redis_bind_addr }}/0
|
|
pretix_config_celery_backend: >-2
|
|
redis://:{{ pretix_redis_secret }}@{{ pretix_redis_bind_addr }}/1
|
|
pretix_config_celery_broker: >-2
|
|
redis://:{{ pretix_redis_secret }}@{{ pretix_redis_bind_addr }}/2
|
|
vars:
|
|
pretix_redis_bind_addr: "127.0.10.1:6739"
|