Forge Home

torque

Module for managing Torque

10,507 downloads

9,243 latest version

4.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.3.0 (latest)
  • 0.2.0
  • 0.1.0
released Apr 11th 2015

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'deric-torque', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add deric-torque
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install deric-torque --version 0.3.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

deric/torque — version 0.3.0 Apr 11th 2015

#puppet-torque Build Status

This is a Puppet module for managing Torque resource manager and Maui scheduler.

Usage

server:

class { 'torque::server': }

By default server_name is the $::hostname of the server node (we get it from Facter). You can choose to use other fact of some value, e.g.:

class { 'torque':
  server_name => $::fqdn
}
  • One can run both the server and client on the same box (Within server class is not included client)

client (a computing node):

class { 'torque::client': }

Default Torque home directory is /var/spool/torque, you can change it:

class { 'torque':
  torque_home => '/etc/torque'
}

Queues

Queues can be configured via qmgr_queues hash which you pass to torque::server.

torque::server::qmgr_queues:
  short:
    - 'enabled = True'
    - 'started = True'
    - 'queue_type = Execution'

Nodes

Nodes can be specified via Hiera config (also you can pass a config hash to torque::server class):

torque::server::nodes:
  myserver1:
    cpus: 10
  gpu.example.com:
    cpus: 5
    gpus: 10

Maui

In order to install Maui you have to have a binary package for your distribution.

Hiera support

Hiera is supported out-of-the-box, you can set any class parameter from YAML config files.

torque::server_name: '192.168.1.1'

Dependencies

  • puppetlabs/stdlib >= 2.0.0
  • puppetlabs/apt >= 1.0.0

License

Apache License 2.0