Skip to content

Commit

Permalink
Use default job file
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Nov 18, 2024
1 parent a1a48e8 commit 898a43c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The variables that can be passed to this role and a brief description about them
# ENV variables for the Docker Galaxy in case of using slurm
slurm_galaxy_docker_env_vars:
NONUSE: slurmctld,reports
GALAXY_CONFIG_JOB_CONFIG_FILE: "/export/slurm_job_conf.xml"
GALAXY_DESTINATIONS_DEFAULT: "slurm_cluster_docker"

galaxy_docker_volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
Expand Down
2 changes: 0 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ galaxy_docker_env_vars:
GALAXY_DEFAULT_ADMIN_KEY: "{{galaxy_admin_password}}"
GALAXY_CONFIG_ADMIN_USERS: "{{galaxy_admin}}"
GALAXY_CONFIG_MASTER_API_KEY: "{{galaxy_admin_api_key}}"
GALAXY_CONFIG_JOB_CONFIG_FILE: "/export/local_job_conf.xml"
GALAXY_DESTINATIONS_DEFAULT: "local_no_container"
GALAXY_RUNNERS_ENABLE_SLURM: "False"

# ENV variables for the Docker Galaxy in case of using slurm
slurm_galaxy_docker_env_vars:
NONUSE: "reports,slurmctld,slurmd,nodejs,condor"
GALAXY_CONFIG_JOB_CONFIG_FILE: "/export/slurm_job_conf.xml"
GALAXY_DESTINATIONS_DEFAULT: "slurm_cluster"

galaxy_docker_volumes:
Expand Down
5 changes: 0 additions & 5 deletions tasks/portal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
- include_tasks: slurm.yml
when: galaxy_lrms == "slurm"

- name: Copy local_job_conf.xml
copy:
src: local_job_conf.xml
dest: "{{galaxy_export_dir}}/local_job_conf.xml"

- name: Start galaxy container
docker_container:
name: galaxy
Expand Down
6 changes: 0 additions & 6 deletions tasks/slurm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
- name: Generate slurm.conf in the export dir
template: src=slurm.conf.j2 dest={{galaxy_export_dir}}/slurm.conf

# Configure job_conf.xml
- name: Configure job_conf.xml
copy:
src: slurm_job_conf.xml
dest: "{{galaxy_export_dir}}/slurm_job_conf.xml"

- name: Install dev libs in RHEL
yum: name=python3-devel,bzip2-devel,xz-devel
when: ansible_os_family == "RedHat"
Expand Down

0 comments on commit 898a43c

Please sign in to comment.