{"id":18825345,"url":"https://github.com/grycap/ansible-role-slurm","last_synced_at":"2026-01-20T23:30:18.690Z","repository":{"id":12641018,"uuid":"72429376","full_name":"grycap/ansible-role-slurm","owner":"grycap","description":"Ansible Role to install a SLURM Cluster","archived":false,"fork":false,"pushed_at":"2024-12-09T09:19:06.000Z","size":190093,"stargazers_count":8,"open_issues_count":1,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-30T04:54:57.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grycap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-31T11:15:46.000Z","updated_at":"2024-12-09T09:19:11.000Z","dependencies_parsed_at":"2022-08-09T08:46:44.988Z","dependency_job_id":"ecdb921a-4f61-4724-9f83-648b6075f7b1","html_url":"https://github.com/grycap/ansible-role-slurm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grycap%2Fansible-role-slurm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grycap%2Fansible-role-slurm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grycap%2Fansible-role-slurm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grycap%2Fansible-role-slurm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grycap","download_url":"https://codeload.github.com/grycap/ansible-role-slurm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239763667,"owners_count":19692800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T00:59:09.864Z","updated_at":"2026-01-20T23:30:18.631Z","avatar_url":"https://github.com/grycap.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![CI](https://github.com/grycap/ansible-role-slurm/actions/workflows/main.yaml/badge.svg)](https://github.com/grycap/ansible-role-slurm/actions/workflows/main.yaml)\n\nSLURM cluster Role\n=======================\n\nInstall [SLURM cluster](http://slurm.schedmd.com/).\n\nRole Variables\n--------------\n\nThe variables that can be passed to this role and a brief description about them are as follows.\n\n\t# SLURM version to install (in case of RH systems)\n\tslurm_version: 20.02.7\n\t# List of servers to download the slurm code\n\tslurm_mirrors: [ \"http://ftpgrycap.i3m.upv.es/src/\", \"https://download.schedmd.com/slurm/\" ]\n\t# Type of node to install: front or wn\n\tslurm_type_of_node: front\n\t# Name of the SLURM server\n\tslurm_server_name: slurmserver\n\t# IP address of the SLURM server\n\tslurm_server_ip: 127.0.0.1\n\t# Prefix to set to the SLURM working nodes\n\tslurm_vnode_prefix: vnode-\n\t# List of the names of the WNs\n\tslurm_wn_nodenames: []\n\t# Number of CPUs of the WNs\n\tslurm_wn_cpus: 1\n\t# Amount of memory of the WNs (in MB, see RealMemory). If 0 it is not set\n\tslurm_wn_mem: 0\n\t# GRES specification for the WN\n\tslurm_wn_gres: \"\"\n\t# GRES types specification for the WN\n\tslurm_wn_gres_tpes: \"\"\n\t# GRES conf data file\n\tslurm_wn_gres_conf: \"AutoDetect=nvml\"\n\t# Default user for ssh and slurm management\n\t# Default ssh user\n\tuser: user1\n\t# Install DRMAA library\n\tdrmaa_lib_install: false\n\tdrmaa_lib_version: 1.0.7\n\t# SLURM default configuration options\n\tslurm_default_conf_options:\n\t\tAuthType: auth/munge\n\t\tCryptoType: crypto/munge\n\t\tFirstJobId: 1\n\t\tJobRequeue: 0\n\t\tJobSubmitPlugins: all_partitions\n\t\tProctrackType: proctrack/pgid\n\t\tReturnToService: 2\n\t\tSlurmctldPidFile: /var/run/slurmctld.pid\n\t\tSlurmctldPort: 6817\n\t\tSlurmdPidFile: /var/run/slurmctld.pid\n\t\tSlurmdPort: 6818\n\t\tSlurmdSpoolDir: /var/spool/slurm\n\t\tSlurmUser: slurm\n\t\tStateSaveLocation: /var/slurm/checkpoint\n\t\tSwitchType: switch/none\n\t\tTaskPlugin: task/none\n\t\tInactiveLimit: 0\n\t\tKillWait: 30\n\t\tMessageTimeout: 30\n\t\tMinJobAge: 300\n\t\tSlurmctldTimeout: 30\n\t\tSlurmdTimeout: 40\n\t\tWaittime: 0\n\t\tFastSchedule: 1\n\t\tSchedulerType: sched/backfill\n\t\tSelectType: select/linear\n\t\tAccountingStorageType: accounting_storage/none\n\t\tClusterName: cluster\n\t\tJobCompType: jobcomp/none\n\t\tJobAcctGatherFrequency: 30\n\t\tJobAcctGatherType: jobacct_gather/none\n\t\tSlurmctldDebug: debug5\n\t\tSlurmctldLogFile: /var/log/slurm/slurmctld.log\n\t\tSlurmdDebug: debug5\n\t\tSlurmdLogFile: /var/log/slurm/slurmd.log\n\t# SLURM user configuration options\n\tslurm_conf_options: {}\n\t# SLURM configuration options for cgroup\n\tslurm_cgroup_conf_options:\n\t\tCgroupPlugin: cgroup/v1\n\nExample Playbook\n----------------\n\nThis an example of how to install a SLURM cluster:\n```\n  - hosts: server\n  roles:\n  - { role: 'grycap.slurm', slurm_type_of_node: 'front', slurm_server_ip: '{{ansible_default_ipv4}}', slurm_wn_nodenames: \"{{ groups['wns']|map('extract', hostvars, 'ansible_hostname')|list }}\" }\n```\n```\n  - hosts: wns\n  roles:\n  - { role: 'grycap.slurm', slurm_type_of_node: 'wn', slurm_server_ip: \"{{hostvars['server']['ansible_default_ipv4']}}\" }\n```\nContributing to the role\n========================\nIn order to keep the code clean, pushing changes to the master branch has been disabled. If you want to contribute, you have to create a branch, upload your changes and then create a pull request.  \nThanks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrycap%2Fansible-role-slurm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrycap%2Fansible-role-slurm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrycap%2Fansible-role-slurm/lists"}