Skip to content

Commit

Permalink
Merge pull request #1361 from mira-miracoli/separate-subdomain
Browse files Browse the repository at this point in the history
Add a separate playbook for subdomains, reduce deployment time
  • Loading branch information
mira-miracoli authored Nov 26, 2024
2 parents 738e18d + c23debe commit 25fbabb
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sn06.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
galaxy_manage_static_setup: true
galaxy_manage_mutable_setup: true
galaxy_manage_database: true
galaxy_manage_subdomain_static: true
galaxy_manage_subdomain_static: false
galaxy_manage_host_filters: false # test when themes work
galaxy_manage_systemd: false # switch to gravity(?)
galaxy_manage_gravity: false
Expand Down
49 changes: 49 additions & 0 deletions subdomains.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
- name: UseGalaxy.eu
hosts: sn06
become: true
become_user: root
vars:
hostname: sn06.galaxyproject.eu

vars_files:
# Just keep the same as sn06, so nothing gets messed up ;)
- group_vars/sn06/sn06.yml
- group_vars/sn06/themes_conf.yml
- group_vars/sn06/subdomains.yml
- group_vars/tiaas.yml # All of the training infrastructure
- group_vars/gxconfig.yml # The base galaxy configuration
- group_vars/toolbox.yml # User controlled toolbox
- secret_group_vars/sentry.yml # Sentry SDK init url
- secret_group_vars/aws.yml # AWS creds
- secret_group_vars/pulsar.yml # Pulsar + MQ Connections
- secret_group_vars/oidc.yml # OIDC credentials (ELIXIR, keycloak)
- secret_group_vars/object_store.yml # Object Store credentils (S3 etc ...)
- secret_group_vars/db-main.yml # DB URL + some postgres stuff
- secret_group_vars/file_sources.yml # file_sources_conf.yml creds
- secret_group_vars/all.yml # All of the other assorted secrets...
- secret_group_vars/keys.yml # SSH keys
- templates/galaxy/config/job_conf.yml
- mounts/dest/all.yml
- mounts/mountpoints.yml
handlers:
- name: Restart Galaxy
shell: |
cd /opt/galaxy/ && source /opt/galaxy/.bashrc && /usr/bin/gxadmin gunicorn handler-restart && sudo -u galaxy /usr/bin/galaxy-sync-to-nfs
roles:
- role: galaxyproject.galaxy
vars:
galaxy_create_user: false
galaxy_manage_clone: false
galaxy_manage_cleanup: false # we should use this
galaxy_manage_download: false
galaxy_manage_existing: false
galaxy_manage_paths: false
galaxy_manage_static_setup: false
galaxy_manage_mutable_setup: false
galaxy_manage_database: false
galaxy_manage_subdomain_static: true
galaxy_fetch_dependencies: false
galaxy_build_client: false
galaxy_manage_systemd: false # switch to gravity(?)
galaxy_manage_gravity: false

0 comments on commit 25fbabb

Please sign in to comment.