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-genders', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
puppet-module-genders
Table of Contents
- Description
- Setup - The basics of getting started with genders
- Usage - Configuration options and additional functionality
- Reference - Module reference
Description
This module will manage genders
Setup
What genders affects
This module will install the genders packages and manage the genders config.
Setup Requirements
For systems with yum
package manager using Puppet >= 6.0 there is a dependency on puppetlabs/yumrepo_core.
Usage
Install genders:
include ::genders
Define nodes either via genders
class parameter or via defined type:
class { '::genders':
nodes => {
'compute01' => { 'attrs' => ['compute','rack01'] },
},
}
::genders::node { 'compute02':
attrs => ['compute','rack01'],
}
A node's attributes can be defined as a Hash
::genders::node { 'compute02':
attrs => {'role' => 'compute','rack' => 'rack01'},
}
A node can be defined as an Array
::genders::node { 'compute':
node => ['compute01','compute02']
attrs => ['compute','rack01'],
}
Reference
Reference
Table of Contents
Classes
genders
: Manage genders
Defined types
genders::node
: Manage genders node
Classes
genders
Manage genders
Examples
include genders
Parameters
The following parameters are available in the genders
class:
manage_repo
Data type: Boolean
Boolean that sets of repo for genders should be managed Currently only impacts Red Hat based systems
Default value: true
package_name
Data type: String
Genders package name
Default value: 'genders'
package_ensure
Data type: String
Genders package ensure property
Default value: 'installed'
config_path
Data type: Stdlib::Absolutepath
Path to genders file
Default value: '/etc/genders'
nodes
Data type: Hash
Hash used to define genders::node resources.
Default value: {}
Defined types
genders::node
Manage genders node
Examples
Define nodes
genders::node { 'compute01':
attrs => ['compute','rack01'],
}
Define node with Hash attrs
genders::node { 'compute01':
attrs => { 'class' => 'compute', 'rack' => 'rack01' },
}
Parameters
The following parameters are available in the genders::node
defined type:
node
Data type: Variant[Array[String], String]
The node or nodes to define in genders file
Default value: $name
attrs
Data type: Variant[Array[String],Hash[String,String]]
Array or Hash of attributes to define for a node
Default value: []
content
Data type: Optional[String]
Optional content to override module template
Default value: undef
source
Data type: Optional[String]
Optional Source to override module template
Default value: undef
order
Data type: String
Order in genders file for this node
Default value: '50'
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.0.0 (2021-05-20)
Changed
v0.1.0 (2019-08-20)
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 4.25.0 <8.0.0)
- puppetlabs/concat (>= 4.0.0 <8.0.0)
- puppet/epel (>= 3.0.0 <4.0.0)