Make RabbitMQ integration optional in Chill configuration
Introduced a new `rabbitmq_install` variable to conditionally enable RabbitMQ components in `compose.yaml`, `messenger.yaml`, and `env_file.env`. Updated related Ansible tasks to respect this variable.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
framework:
|
||||
messenger:
|
||||
transports:
|
||||
{% if chill.rabbitmq_install +%}
|
||||
async:
|
||||
dsn: '%env(RABBITMQ_URL)%/async'
|
||||
options:
|
||||
@@ -12,5 +13,9 @@ framework:
|
||||
async: ~
|
||||
auto_setup: true
|
||||
priority: '%env(RABBITMQ_URL)%/priority'
|
||||
{% else +%}
|
||||
async: 'doctrine://default'
|
||||
priority: 'doctrine://default'
|
||||
{% endif +%}
|
||||
failed: 'doctrine://default?queue_name=failed'
|
||||
sync: 'sync://'
|
||||
Reference in New Issue
Block a user