puppet-module-genders
Table of Contents
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'],
}