wiki: Only try and make the rabbitmq user on wiki01/wiki01.stg, not both.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-12-15 21:03:57 +00:00 committed by Pierre-Yves Chibon
parent 09cc40e670
commit 9025fecdf7

View file

@ -29,7 +29,7 @@
- { role: fedmsg/base,
when: deployment_type == "prod" }
# Set up for fedora-messaging
- { role: rabbit/user, username: "wiki{{ env_suffix }}"}
- { role: rabbit/user, username: "wiki{{ env_suffix }}", when: inventory_hostname.startswith('wiki01') }
- { role: rabbit/queue, username: "wiki{{ env_suffix }}", queue_name: "wiki{{ env_suffix }}"}
- { role: nfs/client, when: env == "staging", mnt_dir: '/mnt/web/attachments', nfs_src_dir: 'fedora_app_staging/app/attachments' }
- { role: nfs/client, when: env != "staging", mnt_dir: '/mnt/web/attachments', nfs_src_dir: 'fedora_app/app/attachments' }