Skip to content

Commit 62d74f9

Browse files
committed
Add nginx template for RabbitMQ
1 parent 4813ace commit 62d74f9

4 files changed

Lines changed: 20 additions & 9 deletions

File tree

ansible/group_vars/galaxyservers.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ galaxy_job_config:
4141
drmaa_library_path: /usr/lib/slurm-drmaa/lib/libdrmaa.so.1
4242
pulsar_runner:
4343
load: galaxy.jobs.runners.pulsar:PulsarMQJobRunner
44-
amqp_url: "pyamqp://pulsar_au:{{ RABBITMQ_PASSWORD_VHOST }}@localhost:5671/{{ rabbitmq_vhosts[0] }}?ssl=1"
44+
amqp_url: "pyamqp://pulsar_ca:{{ RABBITMQ_PASSWORD_VHOST }}@{{ groups['rabbitmqservers'][0] }}:5671/{{ rabbitmq_vhosts[0] }}?ssl=1"
4545
amqp_acknowledge: true
4646
amqp_ack_republish_time: 1200
4747
amqp_consumer_timeout: 2
@@ -349,16 +349,16 @@ rabbitmq_config:
349349
consumer_timeout: 21600000 # 6 hours in milliseconds
350350

351351
rabbitmq_vhosts:
352-
- /pulsar/pulsar_au
352+
- /pulsar/pulsar_ca
353353

354354
rabbitmq_users:
355355
- user: "{{ RABBITMQ_ADMIN_USERNAME }}"
356356
password: "{{ RABBITMQ_ADMIN_PASSWORD }}"
357357
tags: administrator
358358
vhost: /
359-
- user: pulsar_au
359+
- user: pulsar_ca
360360
password: "{{ RABBITMQ_PASSWORD_VHOST }}"
361-
vhost: /pulsar/pulsar_au
361+
vhost: /pulsar/pulsar_ca
362362

363363
# TUS
364364
tusd_version: v1.13.0

ansible/group_vars/pulsarservers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
galaxy_server_hostname: "{{ usegalaxy_domain }}" # Important!!!
1+
galaxy_server_hostname: "mq.{{ usegalaxy_domain }}" # Important!!!
22
# Put your Galaxy server's fully qualified domain name (FQDN) (or the FQDN of the RabbitMQ server) above.
33

44
pulsar_root: /mnt/pulsar
@@ -29,7 +29,7 @@ pulsar_yaml_config:
2929
persistence_directory: "{{ pulsar_persistence_dir }}"
3030
tool_dependency_dir: "{{ pulsar_dependencies_dir }}"
3131
# The following are the settings for the pulsar server to contact the message queue with related timeouts etc.
32-
message_queue_url: "pyamqp://pulsar_au:{{ RABBITMQ_PASSWORD_VHOST }}@{{ galaxy_server_hostname }}:5671//pulsar/pulsar_au?ssl=1"
32+
message_queue_url: "pyamqp://pulsar_ca:{{ RABBITMQ_PASSWORD_VHOST }}@{{ galaxy_server_hostname }}:5671//pulsar/pulsar_ca?ssl=1"
3333
min_polling_interval: 0.5
3434
amqp_publish_retry: True
3535
amqp_publish_retry_max_retries: 5

ansible/rabbitmq.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
certbot_post_renewal: |
1111
docker restart rabbit_hole || true
1212
certbot_domains:
13-
- "rabbitmq.{{ usegalaxy_domain }}"
14-
nginx_ssl_servers:
13+
- "mq.{{ usegalaxy_domain }}"
14+
nginx_servers:
1515
- rabbitmq
16+
nginx_ssl_servers: []
1617
roles:
17-
- galaxyproject.nginx
18+
- usegalaxy_eu.certbot
1819
- geerlingguy.docker
1920
- usegalaxy_eu.rabbitmqserver
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
server {
2+
listen 80 default_server;
3+
listen [::]:80 default_server;
4+
5+
server_name "{{ inventory_hostname }}";
6+
7+
location /.well-known/ {
8+
root {{ certbot_well_known_root }};
9+
}
10+
}

0 commit comments

Comments
 (0)