Forge Home

nodripa

Installs, configures, and manages the Node Reaper service.

3,422 downloads

2,107 latest version

3.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.2.0 (latest)
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0 (deleted)
released Jun 25th 2020
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x
  • Puppet >= 5.5.1 < 7.0.0
  • , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'coreymbe-nodripa', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add coreymbe-nodripa
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install coreymbe-nodripa --version 0.2.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

coreymbe/nodripa — version 0.2.0 Jun 25th 2020

Node Reaper

Module description

Node Reaper is a Puppet module for auto purging an agent node on scale-in. While this module is intended to be utilized with an autoscaling service, the minimum requirement is to have autosigning configured in your Puppet installation.

Setup

This module will configure and manage the nodripa systemd service, which upon stopping will:

  • Deactivate the node in PuppetDB
  • Delete the Puppet master’s information cache for the node
  • Free up the license that the node was using
  • Allow you to re-use the hostname for a new node

Installation

Install this module with the following command:

puppet module install coreymbe-nodripa

To activate this module with the ssh transport option, classify your agent node with the nodripa class using your preferred classification method. Below is an example using site.pp.

node 'agent.example.com' {
  class { 'nodripa':
    private_key => <SSH-Private-Key>
}

Configuration

Parameters

access_token

String:

  • Requirements: RBAC user will need the following permissions.
    • Job orchestrator -> Start, stop and view jobs
    • Tasks -> Run Tasks -> Task::bolt_shim::command -> Permitted on PE Master

bolt_path

String: /path/to/bolt

  • Default: bolt

bolt_transport

String: pcp

  • Default: ssh

bolt_user

String: User to execute puppet node purge command.

  • Default: root

master_url

String: https://MOM-FQDN:8143

private_key

String: Private ssh-key

ssh_key

String: /path/to/privatekey.pem

  • Default: /root/.ssh/nodripa_rsa

Limitations

  • For bolt to execute the puppet node purge command an ssh-key will need to be configured with the ssh transport option set.
  • For bolt to execute the puppet node purge command an access token will need to be configured with the pcp trasnport option set.