https://github.com/deric/puppet-torque
Puppet module for managing Torque
https://github.com/deric/puppet-torque
Last synced: 6 months ago
JSON representation
Puppet module for managing Torque
- Host: GitHub
- URL: https://github.com/deric/puppet-torque
- Owner: deric
- Created: 2014-03-03T16:03:34.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-07-15T15:00:41.000Z (almost 11 years ago)
- Last Synced: 2024-10-30T01:46:09.706Z (over 1 year ago)
- Language: Ruby
- Homepage: https://forge.puppetlabs.com/deric/torque
- Size: 494 KB
- Stars: 1
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#puppet-torque
[](https://travis-ci.org/deric/puppet-torque)
This is a Puppet module for managing Torque resource manager and Maui scheduler.
## Usage
server:
```puppet
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.:
```puppet
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):
```puppet
class { 'torque::client': }
```
Default Torque home directory is `/var/spool/torque`, you can change it:
```puppet
class { 'torque':
torque_home => '/etc/torque'
}
```
### Queues
Queues can be configured via `qmgr_queues` hash which you pass to `torque::server`.
```yaml
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):
```yaml
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.
* [Debian/Ubuntu](https://github.com/deric/maui-deb-packaging)
## Hiera support
Hiera is supported out-of-the-box, you can set any class parameter from YAML config files.
```yaml
torque::server_name: '192.168.1.1'
```
## Dependencies
* `puppetlabs/stdlib >= 2.0.0`
* `puppetlabs/apt >= 1.0.0`
## License
Apache License 2.0