{"id":14994527,"url":"https://github.com/ulhpc/puppet-slurm","last_synced_at":"2025-04-05T15:07:50.506Z","repository":{"id":25155136,"uuid":"100871849","full_name":"ULHPC/puppet-slurm","owner":"ULHPC","description":"A Puppet module designed to configure and manage SLURM(see https://slurm.schedmd.com/),  an open source, fault-tolerant, and highly scalable cluster management and job scheduling system for large and small Linux clusters","archived":false,"fork":false,"pushed_at":"2025-01-07T00:57:21.000Z","size":600,"stargazers_count":19,"open_issues_count":4,"forks_count":25,"subscribers_count":10,"default_branch":"devel","last_synced_at":"2025-04-05T15:07:45.727Z","etag":null,"topics":["job-scheduler","munge","puppet","slurm"],"latest_commit_sha":null,"homepage":"","language":"Puppet","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/ULHPC.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/contributing/index.md","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":"2017-08-20T15:49:26.000Z","updated_at":"2025-01-07T00:57:25.000Z","dependencies_parsed_at":"2024-01-09T15:42:37.176Z","dependency_job_id":"438859a2-a85f-4170-ad96-c4ce542c8d68","html_url":"https://github.com/ULHPC/puppet-slurm","commit_stats":{"total_commits":369,"total_committers":14,"mean_commits":"26.357142857142858","dds":"0.19241192411924124","last_synced_commit":"80993d66f3217c3a5d48a72d0b95cd367ba75326"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ULHPC%2Fpuppet-slurm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ULHPC%2Fpuppet-slurm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ULHPC%2Fpuppet-slurm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ULHPC%2Fpuppet-slurm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ULHPC","download_url":"https://codeload.github.com/ULHPC/puppet-slurm/tar.gz/refs/heads/devel","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353746,"owners_count":20925329,"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":["job-scheduler","munge","puppet","slurm"],"created_at":"2024-09-24T16:03:46.445Z","updated_at":"2025-04-05T15:07:50.488Z","avatar_url":"https://github.com/ULHPC.png","language":"Puppet","funding_links":[],"categories":[],"sub_categories":[],"readme":"-*- mode: markdown; mode: visual-line;  -*-\n\n# Slurm Puppet Module\n\n[![Puppet Forge](http://img.shields.io/puppetforge/v/ULHPC/slurm.svg)](https://forge.puppet.com/ULHPC/slurm) [![License](http://img.shields.io/:license-Apache2.0-blue.svg)](LICENSE) ![Supported Platforms](http://img.shields.io/badge/platform-centos-lightgrey.svg) [![Documentation Status](https://readthedocs.org/projects/ulhpc-puppet-slurm/badge/?version=latest)](http://ulhpc-puppet-slurm.readthedocs.io) [![Build Status](https://travis-ci.org/ULHPC/puppet-slurm.svg?branch=devel)](https://travis-ci.org/ULHPC/puppet-slurm)\n\nConfigure and manage [Slurm](https://slurm.schedmd.com/): A Highly Scalable Resource Manager\n\n      Copyright (c) 2017-2021 UL HPC Team \u003chpc-sysadmins@uni.lu\u003e\n      .             see also http://hpc.uni.lu\n\n## Overview\n\n[Slurm](https://slurm.schedmd.com/) (aka \"Simple Linux Utility for Resource Management\") is a free and open-source job scheduler for Linux and Unix-like kernels, used by many of the world's supercomputers and computer clusters (~60% of Top500 rely on it).\n\n\u003e Slurm is an open source, fault-tolerant, and highly scalable cluster management and job scheduling system for large and small Linux clusters\n\nIt provides three key functions.\n\n1. it allocates exclusive and/or non-exclusive access to resources (computer nodes) to users for some duration of time so they can perform work.\n2. it provides a framework for starting, executing, and monitoring work (typically a parallel job such as MPI) on a set of allocated nodes.\n3. Finally, it arbitrates contention for resources by managing a queue of pending jobs.\n\nThis [Puppet](https://puppet.com/) module is designed to configure and manage the\ndifferent daemons and components of a typical Slurm architecture, depicted below:\n\n![](https://slurm.schedmd.com/arch.gif)\n\nIn particular, this module implements the following elements:\n\n| Puppet Class       | Description                                                                                                          |\n|--------------------|----------------------------------------------------------------------------------------------------------------------|\n| `slurm`            | The main slurm class, piloting all aspects of the configuration                                                      |\n| `slurm::slurmdbd`  | Specialized class for [Slurmdbd](https://slurm.schedmd.com/slurmdbd.html), the Slurm Database Daemon.                |\n| `slurm::slurmctld` | Specialized class for [Slurmctld](https://slurm.schedmd.com/slurmctld.html), the central management daemon of Slurm. |\n| `slurm::slurmd`    | Specialized class for [Slurmd](https://slurm.schedmd.com/slurmd.html), the compute node daemon for Slurm.            |\n| `slurm::login`     | Specialized class to configure a Login node (i.e. without any of the slurm daemons)                                  |\n| `slurm::munge`     | Manages [MUNGE]( https://github.com/dun/munge), an authentication service for creating and validating credentials.   |\n| `slurm::pam`       | Handle PAM aspects  for SLURM (Memlock for MPI etc.)                                                                 |\n| `slurm::params`    | Defaults parameters for all the module classes/definition                                                            |\n| `slurm::plugins`   | Handles all default Slurm plugins -- NOT YET IMPLEMENTED                                                             |\n| `slurm::pmix`      | Handle PMIx aspects (download, build and installation) to make SLURM build compliant with PMIx, PMI1 and PMI2        |\n| `slurm::repo`      | Takes care of the control repository hosting the slurm configuration of the cluster                                  |\n\n| Puppet Defines                            | Description                                                                                                                     |\n|-------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|\n| `slurm::acct:mgr`                         | Generic wrapper for all sacctmgr commands                                                                                       |\n| `slurm::acct::{account,cluster,qos,user}` | adding (or removing) a {account,cluster,qos,user} to the slurm accounting database                                              |\n| `slurm::build`                            | building Slurm sources into packages (i.e. RPMs for the moment) for a given version  passed as resource name                    |\n| `slurm::download`                         | takes care of downloading the SLURM sources for a given version  passed as resource name                                        |\n| `slurm::firewall`                         | takes care of firewall aspects for SLURM                                                                                        |\n| `slurm::install::packages`                | installs the Slurm packages, typically built from `slurm::build`, for a given version passed as resource name.                  |\n| `slurm::pmix::{download,build,install}`   | download, build and install [PMIx](https://slurm.schedmd.com/mpi_guide.html#pmix)                                               |\n| `slurm::repo::syncto`                     | synchronizes the content of the slurm control repository (see `slurm::repo`) toward a directory (typically a shared mountpoint) |\n\nIn addition, this puppet module implements several **private** classes:\n\n* `slurm::accounting`: Setup the accounting structure\n* `slurm::common[::redhat]`: handles common tasks to all daemon\n* `slurm::config[::{cgroup,gres,topology}]`: handles the various aspects of the configuration of SLURM daemons -- see \u003chttps://slurm.schedmd.com/slurm.conf.html#lbAN\u003e, i.e.\n    - [`slurm.conf`](https://slurm.schedmd.com/slurm.conf.html)\n    - [`slurmdbd.conf`](https://slurm.schedmd.com/slurmdbd.conf.html)\n    - [`topology.conf`](https://slurm.schedmd.com/topology.conf.html)\n    - [`cgroup.conf`](https://slurm.schedmd.com/cgroup.conf.html)\n* `slurm::install`: wrapper to download, build and install the Slurm packages\n* `slurm::plugins::lua`: takes care of the Job Submit plugin 'lua' i.e. of the file [`job_submit.lua`](https://github.com/SchedMD/slurm/blob/master/contribs/lua/job_submit.lua).\n\nAlso, a couple of extra definition in used in our infrastructure:\n\n* `slurm::repo::syncto`: synchronize the control repository of the slurm configuration (which is cloned using the '`slurm::repo`' class) toward a directory (typically a shared GPFS/NFS mountpoint to make it available to all login and compute nodes)\n\nAll these components are configured through a set of variables you will find in [`manifests/params.pp`](https://github.com/ULHPC/puppet-slurm/blob/devel/manifests/params.pp).\n\n_Note_: the various operations that can be conducted from this repository are piloted from a [`Rakefile`](https://github.com/ruby/rake) and assumes you have a running [Ruby](https://www.ruby-lang.org/en/) installation.\nSee `docs/contributing.md` for more details on the steps you shall follow to have this `Rakefile` working properly.\n\n**IMPORTANT** Until the release of version 1.0 (denoting a usage in production on the [UL HPC Platform](http://hpc.uni.lu)), **this module is still to be considered in alpha state and a work in progress**. Use it at your own risks!\n\n### Setup Requirements\n\nThis module currently only works completely on Redhat / CentOS 7 over Puppet \u003e= 4.x.\nOver operating systems and support for Puppet 5.x and above seems to work but is not guaranteed.\nYet feel free to contribute to this module to help us extending the usage of this module.\n\nBy default, some key configuration decisions are configured, namely:\n\n* [MUNGE](https://github.com/dun/munge) is used for shared key authentication.\n     - the shared key is generated by default, but you probably want to provide it to puppet via a URI.\n* None of the daemons are configured by default.\n     - You have to set the boolean parameter(s) `with_{slurmdbd,slurmctld,slurmd}` to `true` and/or include explicitly the `slurm::{slurmdbd,slurmctld,slurmd}` classes\n* On a **production** system, you probably wants to follow the following tips:\n     - set globally `service_manage` to false - you probably want to control when the daemons are restarted (typically to ensure the slurm config is really in sync across the cluster)\n     - set global   `do_package_install` to false\n     - maintain a single source of authority for the shared slurm configuration as a Git repository (called here the \"_slurm control repository_\")\n         * your **slurm controller(s) servers** would then rely on the `slurm::repo*` classes/definitions to maintain the consistency between the local config (in `/etc/slurm`, as generated by this module upon puppet runs and its extensive hiera configuration capabilities) and this repository.\n         * your **login and compute nodes**\n     not correlate the local `/etc/slurm` directory with\n\n     - you are advised to set the `service_manage` to false\n\n## Forge Module Dependencies\n\nSee [`metadata.json`](https://github.com/ULHPC/puppet-slurm/blob/devel/metadata.json). In particular, this module depends on\n\n* [puppetlabs/stdlib](https://forge.puppetlabs.com/puppetlabs/stdlib)\n* [puppetlabs/mysql](https://forge.puppetlabs.com/puppetlabs/mysql)\n* [puppetlabs/inifile](https://forge.puppetlabs.com/puppetlabs/inifile)\n* [puppet/archive](https://forge.puppetlabs.com/puppet/archive)\n* [puppet/yum](https://forge.puppetlabs.com/puppet/yum)\n* [puppet/epel](https://forge.puppet.com/puppet/epel)\n* [bodgit/rngd](https://forge.puppetlabs.com/bodgit/rngd)\n* [ghoneycutt/pam](https://forge.puppetlabs.com/ghoneycutt/pam)\n\n## Overview and Usage\n\nThe best way to use this module in a flexible way is to rely on [Hiera](https://puppet.com/docs/puppet/5.4/hiera_intro.html) coupled with a [role and profile](https://puppet.com/docs/pe/2017.1/r_n_p_intro.html).\n\n* See the generic manifest [`default.pp`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/manifests/default.pp)\n* See the [`hiera.yaml`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/hiera.yaml) and the associated [`hieradata/`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/hieradata/), aimed at taking advantage of a custom `role` [facts](https://puppet.com/docs/facter/3.9/fact_overview.html)\n* sample/simple profiles for each type of deployment can be found in [site/profiles/manifests/](site/profiles/manifests/)\n    - [`profiles::slurm`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/site/profiles/manifests/slurm.pp): Profile (base) class used for slurm general settings\n    - [`profiles::slurm::slurmctld`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/site/profiles/manifests/slurm/slurmctld.pp): Profile class used for setting up a Slurm Head node (where the slurmctld daemon runs)\n    - [`profiles::slurm::slurmdbd`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/site/profiles/manifests/slurm/slurmdbd.pp): Profile class used for setting up a Slurm DBD (DataBase Daemon) node\n    - [`profiles::slurm::slurmd`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/site/profiles/manifests/slurm/slurmd.pp): Profile class used for setting up a Slurm Compute node\n    - [`profiles::slurm::login`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/site/profiles/manifests/slurm/login.pp): Profile class used for setting up a Login node (cluster frontend/access) i.e. without any daemon.\n\n\nThe main classes are now detailed.\n\n### Class `slurm`\n\nThis is the main class defined in this module.\nIt accepts so many parameters that they are not listed here -- see the [puppet strings `@param`] comments of [`manifests/init.pp`](https://github.com/ULHPC/puppet-slurm/blob/devel/manifests/init.pp)\nUse it as follows:\n\n```ruby\ninclude ::slurm\n```\n\nIn which case you can define the class parameters using [Hiera](https://puppet.com/docs/puppet/5.4/hiera_intro.html) -- see for instance the default hiera configuration (used effectively in the vagrant deployment) in [`hieradata/default.yaml`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/hieradata/defaults.yaml).\n\nYou can also prefer a profile-based approach -- see [`profiles::slurm`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/site/profiles/manifests/slurm.pp) as a sample profile (base) class used for slurm general settings.\n\nOther usage examples are proposed in [`tests/init.pp`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/init.pp), a more advanced usage (defining the network topology, the computing nodes and the SLURM partitions) in [`tests/advanced.pp`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/advanced.pp).\n\n\n### Class `slurm::slurmdbd`\n\nThis class is responsible for setting up a __[Slurm Database Daemon](https://slurm.schedmd.com/slurmdbd.html)__, which provides a secure enterprise-wide interface to a database for Slurm.\nIn particular, it can run relatively independently of the other slurm daemon instances and thus is proposed as a separate independent class.\n\nYou can simply configure it as follows:\n\n```ruby\ninclude ::slurm\ninclude ::slurm::slurmdbd\n```\n\nAlternatively, you can use the `with_slurdbd` parameter of the `::slurm` class:\n\n```ruby\nclass { '::slurm':\n    with_slurmdbd =\u003e true,\n}\n```\n\nSee also [`tests/slurmdbd.pp`](tests/slurmdbd.pp), the sample profile [`profiles::slurm::slurmdbd`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/site/profiles/manifests/slurm/slurmdbd.pp).\n\nThe `slurm::slurmdbd` accepts also so many parameters that they are not listed here -- see the [puppet strings `@param`] comments of [`manifests/slurmdbd.pp`](https://github.com/ULHPC/puppet-slurm/blob/devel/manifests/slurmdbd.pp) for more details.\n\nFor a sample [Hiera](https://puppet.com/docs/puppet/5.4/hiera_intro.html), see [`hieradata/default.yaml`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/hieradata/defaults.yaml#L19-L25) (effectively used in the vagrant-based deployment).\n\n\n### Class `slurm::slurmctld`\n\nThe main helper class specializing the main slurm class for setting up a __Slurm Head node__ (where the [slurmctld](https://slurm.schedmd.com/slurmctld.html) daemon runs).\n\n```ruby\ninclude ::slurm\ninclude ::slurm::slurmctld\n```\n\nAlternatively, you can use the `with_slurctld` parameter of the `::slurm` class:\n\n```ruby\nclass { '::slurm':\n    with_slurmctld =\u003e true,\n}\n```\n\nSee also [`tests/slurmctld.pp`](tests/slurmctld.pp), the sample profile [`profiles::slurm::slurmctld`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/site/profiles/manifests/slurm/slurmctld.pp).\n\n\n### Class `slurm::slurmd`\n\nThe main helper class specializing the main slurm class for setting up __ Slurm Compute node__ _i.e._ where the [`slurmd`](https://slurm.schedmd.com/slurmd.html) daemon runs.\n\n```ruby\ninclude ::slurm\ninclude ::slurm::slurmd\n```\n\nAlternatively, you can use the `with_slurmd` parameter of the `::slurm` class:\n\n```ruby\nclass { '::slurm':\n    with_slurmd =\u003e true,\n}\n```\n\n### Class `slurm::login`\n\nThe main helper class specializing the main slurm class for setting up __ Slurm Login node__ _i.e._ where none of the slurm daemon runs (yet the slurm CLI commands are installed via the `slurm` package).\n\n```ruby\ninclude ::slurm\ninclude ::slurm::login\n```\n\nSee also [`tests/login_node.pp`](tests/login_node.pp), the sample profile [`profiles::slurm::login`](https://github.com/ULHPC/puppet-slurm/blob/devel/tests/vagrant/puppet/site/profiles/manifests/slurm/login.pp).\n\n\n### Class `slurm::munge`\n\n[MUNGE](https://github.com/dun/munge) (MUNGE Uid 'N' Gid Emporium) is an authentication service for creating and validating credentials. It is designed to be highly scalable for use in an HPC cluster environment.\nIt allows a process to authenticate the UID and GID of another local or remote process within a group of hosts having common users and groups. These hosts form a security realm that is defined by a shared cryptographic key.\nClients within this security realm can create and validate credentials without the use of root privileges, reserved ports, or platform-specific methods.\n\nFor more information, see \u003chttps://github.com/dun/munge\u003e\n\nThe puppet class `slurm::munge` is thus responsible for setting up a working Munge environment to\nbe used by the SLURM daemons -- see also \u003chttps://slurm.schedmd.com/authplugins.html\u003e\nUse it as follows:\n\n```ruby\ninclude ::slurm::munge\n```\n\nOr, if you wish to provide the munge key using puppet URI:\n\n```ruby\nclass {'::slurm::munge':\n    ensure     =\u003e true,\n    key_source =\u003e \"puppet:///modules/${myprofile}/munge.key\"\n}\n```\n\nIf, as in the above example, the key is stored centrally in your control repository, you probably want to store it encrypted using [git-crypt](https://github.com/AGWA/git-crypt) for instance.\n\nThe `slurm::munge` class accepts the following parameters:\n\n* `ensure`  [String]  Default: 'present'\n   - Ensure the presence (or absence) of the Munge service\n* `create_key`   [Boolean] Default: true\n   - Whether or not to generate a new key if it does not exists\n* `daemon_args`  [Array] Default: []\n   - Set the content of the DAEMON_ARGS variable, which permits to set additional command-line options to the daemon. For example, this can be used to override the location of the secret key (`--key-file`) or  set the number of worker threads (`--num-threads`) See \u003chttps://github.com/dun/munge/wiki/Installation-Guide#starting-the-daemon\u003e.\n* `gid` [Integer] Default: 992\n   - GID of the munge group\n* `key_content`  [String] Default: undef\n   - The desired contents of a file, as a string. This attribute is mutually exclusive with source and target.\n* `key_filename` [String] Default: '/etc/munge/munge.key'\n   - The secret key filename\n* `key_source`   [String] Default: undef\n   - A source file, which will be copied into place on the local system. This attribute is mutually exclusive with content. The normal form of a puppet: URI is `puppet:///modules/\u003cMODULE NAME\u003e/\u003cFILE PATH\u003e`\n* `uid` [Integer] Default: 992\n   - UID of the munge user\n\nNote that the `slurm` class makes use of this class by default as the parameter `manage_munge` is set to true by default.\n\n### Definition `slurm::download`\n\nThis definition takes care of downloading the SLURM sources for a given version (passed as name to this resource) and placing them into `$target` directory. You can also invoke this definition with the full archive filename i.e. `slurm-\u003cversion\u003e.tar.bz2`.\n\n* `ensure` [String]  Default: `present`\n     - Ensure the presence (or absence) of building\n* `target` [String] Default: `/usr/local/src`\n     - Target directory for the downloaded sources\n* `checksum_type` [String] Default: `md5`\n     - archive file checksum type (none|md5|sha1|sha2|sh256|sha384| sha512).\n* `checksum_verify` [Boolean] Default: false\n     - whether checksum will be verified (true|false).\n* `checksum` [String] Default: ''\n     -  archive file checksum (match checksum_type)\n\n_Example_: Downloading version 19.05.3-2 (latest at the time of writing) of SLURM\n\n```ruby\n slurm::download { '19.05.3-2':\n    ensure        =\u003e 'present',\n    checksum      =\u003e '6fe2c6196f089f6210d5ba79e99b0656f5a527b4',\n    checksum_type =\u003e 'sha1',\n    target        =\u003e '/usr/local/src/',\n }\n```\n\n\n### Definition `slurm::build`\n\nThis definition takes care of building Slurm sources into RPMs using 'rpmbuild'.\nIt expect to get as resource name the SLURM version to build\nThis assumes the sources have been downloaded using slurm::download\n\n\n* `ensure`  [String]  Default: `present`\n     - Ensure the presence (or absence) of building\n* `srcdir`  [String] Default: `/usr/local/src`\n     - Where the [downloaded] Slurm sources are located\n* `dir`     [String] Default: `/root/rpmbuild` on redhat systems\n     - Top directory of the sources builds (i.e. RPMs, debs...). For instance, built RPMs will be placed under `${dir}/RPMS/${::architecture}`\n* `with`    [Array] Default: `[ 'lua', ... ]`\n     - List of --with build options to pass to rpmbuild -- see \u003chttps://github.com/SchedMD/slurm/blob/master/slurm.spec\u003e\n* `without` [Array] Default: `[]`\n     - List of --without build options to pass to rpmbuild -- see \u003chttps://github.com/SchedMD/slurm/blob/master/slurm.spec\u003e\n\n\n_Example_: Building version 17.11.12 (latest at the time of writing)  of SLURM\n\n```ruby\nslurm::build { '17.11.12':\n  ensure =\u003e 'present',\n  srcdir =\u003e '/usr/local/src',\n  dir    =\u003e '/root/rpmbuild',\n  with   =\u003e [ 'lua', 'mysql', 'openssl' ]\n}\n```\n\n### Definition `slurm::install::packages`\n\nThis definition takes care of installing the Slurm packages, typically built from `slurm::build`, for a given version passed as resource name.\n\n_Example_: installing slurmd packages in version 17.02.7:\n\n```ruby\nslurm::install::packages { '17.11.12':\n   ensure =\u003e 'present',\n   pkgdir =\u003e \"/root/rpmbuild/RPMs/${::architecture}\",\n   slurmd =\u003e true\n}\n```\n\n## Librarian-Puppet / R10K Setup\n\nYou can of course configure the slurm module in your `Puppetfile` to make it available with [Librarian puppet](http://librarian-puppet.com/) or [r10k](https://github.com/adrienthebo/r10k) by adding the following entry:\n\n     # Modules from the Puppet Forge\n     mod \"ULHPC/slurm\"\n\nor, if you prefer to work on the git version:\n\n     mod \"ULHPC/slurm\",\n         :git =\u003e 'https://github.com/ULHPC/puppet-slurm',\n         :ref =\u003e 'production'\n\n## Hiera\n\nYou can see example of hiera configurations for this module under [`tests/vagrant/puppet/hieradata`](https://github.com/ULHPC/puppet-slurm/tree/devel/tests/vagrant/puppet/hieradata).\n\n## Issues / Feature request\n\nYou can submit bug / issues / feature request using the [slurm Puppet Module Tracker](https://github.com/ULHPC/puppet-slurm/issues).\n\n## Developments / Contributing to the code\n\nIf you want to contribute to the code, you shall be aware of the way this module is organized.\nThese elements are detailed on [`docs/contributing.md`](contributing/index.md).\n\nYou are more than welcome to contribute to its development by [sending a pull request](https://help.github.com/articles/using-pull-requests).\n\n## Puppet modules tests within a Vagrant box\n\nThe best way to test this module in a non-intrusive way is to rely on [Vagrant](http://www.vagrantup.com/).\nThe `Vagrantfile` at the root of the repository pilot the provisioning of a virtual cluster configuring Slurm from the puppet provisionning capability of Vagrant over _this_ module.\n\n```\n$\u003e vagrant status\nCurrent machine states:\n\nslurm-master   not created (virtualbox)\naccess         not created (virtualbox)\nnode-1         not created (virtualbox)\nnode-2         not created (virtualbox)\n\nThis environment represents multiple VMs. The VMs are all listed\nabove with their current state. For more information about a specific\nVM, run `vagrant status NAME`.\n\n$\u003e vagrant up\n[...]\n+--------------|--------------------------|---------|----------|------------|-------------------------------|-------------+\n|                                    Puppet Testing infrastructure deployed on Vagrant                                    |\n+--------------|--------------------------|---------|----------|------------|-------------------------------|-------------+\n| Name         | Hostname                 | OS      | vCPU/RAM | Role       | Description                   | IP          |\n+--------------|--------------------------|---------|----------|------------|-------------------------------|-------------+\n| slurm-master | slurm-master.vagrant.dev | centos7 | 2/2048   | controller | Slurm Controller #1 (primary) | 10.10.1.11  |\n| access       | access.vagrant.dev       | centos7 | 1/1024   | login      | Cluster frontend              | 10.10.1.2   |\n| node-1       | node-1.vagrant.dev       | centos7 | 2/512    | node       | Computing Node #1             | 10.10.1.101 |\n| node-2       | node-2.vagrant.dev       | centos7 | 2/512    | node       | Computing Node #2             | 10.10.1.102 |\n+--------------|--------------------------|---------|----------|------------|-------------------------------|-------------+\n- Virtual Puppet Testing infrastructure deployed deployed!\n```\n\n_Note_: it takes roughly 38 minutes to deploy the full cluster from scratch. So be patient ;)\n\nYou can then test modifications of each configuration in the hiera file `tests/vagrant/puppet/custom.yaml` and\nsee the result by applying  for instance:\n\n```\n$\u003e vagrant provision --provision-with puppet slurm-master\n```\n\nSee [`docs/vagrant.md`](vagrant.md) for more details.\n\n## Online Documentation\n\n[Read the Docs](https://readthedocs.org/) aka RTFD hosts documentation for the open source community and the [slurm](https://github.com/ULHPC/puppet-slurm) puppet module has its documentation (see the `docs/` directly) hosted on [readthedocs](http://ulhpc-puppet-slurm.rtfd.org).\n\nSee [`docs/rtfd.md`](rtfd.md) for more details.\n\n## Licence\n\nThis project and the sources proposed within this repository are released under the terms of the [Apache-2.0](LICENCE) licence.\n\n\n[![Licence](https://www.apache.org/images/feather-small.gif)](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulhpc%2Fpuppet-slurm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulhpc%2Fpuppet-slurm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulhpc%2Fpuppet-slurm/lists"}