Version information
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x
- Puppet >= 6.0.0 < 8.0.0
- , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'treydock-pdsh', '1.1.0'
Learn more about managing modules with a PuppetfileDocumentation
puppet-module-pdsh
####Table of Contents
- Description
- Setup - The basics of getting started with pdsh
- Usage - Configuration options and additional functionality
- Reference - Module reference
Setup
What pdsh affects
The pdsh module will install and configure pdsh and optionally add groups.
Setup Requirements
If genders support is enabled there is a soft dependency on treydock/genders
Usage
Install and configure pdsh
include pdsh
Note Groups are only supported on Red Hat based systems.
Define some groups with members an aliases using class (or Hiera)
class { '::pdsh':
groups => {
'compute' => {
'members' => 'o0[001-824]',
'aliases' => ['all'],
}
}
}
Groups can be defined through pdsh::group
defined type
pdsh::group { 'compute':
members => 'o0[001-824]',
aliases => ['all'],
}
Reference
Reference
Table of Contents
Classes
Public Classes
pdsh
: Manage pdsh
Private Classes
pdsh::config
: Manage pdsh configpdsh::install
: Install pdsh
Defined types
pdsh::group
: Define pdsh groups
Classes
pdsh
Manage pdsh
Examples
include ::pdsh
Parameters
The following parameters are available in the pdsh
class:
with_rsh
with_ssh
with_genders
with_slurm
support_dsh
manage_epel
manage_genders
package_ensure
package_name
rsh_package_name
ssh_package_name
dshgroup_package_name
genders_package_name
slurm_package_name
extra_packages
dsh_config_dir
dsh_group_dir
dsh_group_dir_purge
groups
use_setuid
rcmd_type
ssh_args_append
with_rsh
Data type: Boolean
Install rsh support
Default value: false
with_ssh
Data type: Boolean
Install ssh support
Default value: true
with_genders
Data type: Boolean
Install genders support
Default value: false
with_slurm
Data type: Boolean
Install SLURM support
Default value: false
support_dsh
Data type: Boolean
Boolean to set if dsh support is available
Default value: true
manage_epel
Data type: Boolean
Boolean that determines if EPEL repo should be managed
Default value: true
manage_genders
Data type: Boolean
Boolean that determines if genders class should be managed
Default value: true
package_ensure
Data type: String
Packages ensure property
Default value: 'present'
package_name
Data type: String
Main pdsh package name
Default value: 'pdsh'
rsh_package_name
Data type: Optional[String]
rsh support package name
Default value: undef
ssh_package_name
Data type: Optional[String]
ssh support package name
Default value: undef
dshgroup_package_name
Data type: Optional[String]
dshgroup support package name
Default value: undef
genders_package_name
Data type: Optional[String]
Genders support package name
Default value: undef
slurm_package_name
Data type: Optional[String]
SLURM support package name
Default value: undef
extra_packages
Data type: Array
Additional pdsh packages to install
Default value: []
dsh_config_dir
Data type: Stdlib::Absolutepath
Path to dsh config directory
Default value: '/etc/dsh'
dsh_group_dir
Data type: Stdlib::Absolutepath
Path to dsh group directory
Default value: '/etc/dsh/group'
dsh_group_dir_purge
Data type: Boolean
Sets if dsh group directory should be purged
Default value: true
groups
Data type: Variant[Array, Hash]
Groups that should be defined using pdsh::group
Default value: {}
use_setuid
Data type: Boolean
Should pdsh binaries have setuid
Default value: false
rcmd_type
Data type: Optional[String]
Sets default remote command via PDSH_RCMD_TYPE
environment variable
Default value: undef
ssh_args_append
Data type: Optional[String]
Additional SSH arguments set via PDSH_SSH_ARGS_APPEND
environment variable
Default value: undef
Defined types
pdsh::group
Define pdsh groups
Examples
pdsh::group { 'nodes':
members => 'c[01-04]',
aliases => 'compute',
}
Parameters
The following parameters are available in the pdsh::group
defined type:
aliases
Data type: Variant[Array, String]
Group aliases
Default value: []
members
Data type: Variant[Array, String]
Group members
Default value: []
Change log
All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
v1.1.0 (2022-04-13)
Added
v1.0.0 (2021-06-22)
Changed
v0.2.0 (2019-08-20)
Added
v0.1.2 (2019-08-20)
Fixed
v0.1.1 (2019-08-15)
Fixed
v0.1.0 (2019-08-15)
Changed
Added
- Support String or Array for group members and aliases #5 (treydock)
- Initial support for Debian and Ubuntu #4 (treydock)
- Use module Hiera data #3 (treydock)
- Convert module to PDK #1 (treydock)
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 4.13.1 <9.0.0)
- puppetlabs/concat (>= 4.0.0 <8.0.0)
- puppet/epel (>= 3.0.0 <5.0.0)
Copyright (C) 2016 <FULL NAME> <EMAIL> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.