puppet-module-genders

Table of Contents

  1. Description

  2. Setup - The basics of getting started with genders

  3. Usage - Configuration options and additional functionality

  4. 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

treydock.github.io/puppet-module-genders/