Forge Home

pe_nc_backup

Creates backups of Puppet Enterprise's Node Classifier as json in a local git repo.

9,015 downloads

2 latest version

5.0 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

  • 2.0.0 (latest)
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0.0
  • 0.2.2
  • 0.1.6
  • 0.1.4
  • 0.1.1
  • 0.1.0
released Jan 23rd 2025
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
  • Puppet >= 6.17.0 < 8.0.0
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'jesse-pe_nc_backup', '2.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jesse-pe_nc_backup
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jesse-pe_nc_backup --version 2.0.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

jesse/pe_nc_backup — version 2.0.0 Jan 23rd 2025

pe_nc_backup

build status

Table of Contents

  1. Description
  2. Setup
  3. Usage
  4. Reference
  5. Limitations
  6. Development

Description

This module installs the ncio ruby gem and a cron job to drive it in order to record changes to your Puppet Enterprise Node Classification over time. The data is retrieved as a single JSON file, prettified, and stored in git.

If an ssh private key is present that provides authentication to a remote Git repo this module can also take care of pushing updates from the local git repo to the remote.

Setup

Setup Requirements

  • git must be installed on the PE primary server running pe_nc_backup

Beginning with pe_nc_backup

include pe_nc_backup

Usage

class { 'pe_nc_backup':
  path => '/opt/pe_nc_backup',
}

Limitations

Currently tested on PE 2019.8.z, PE 2021.7.z, PE 2023.2

PE 2019.8.z (Puppet 6) is not compatible / fails catalog compilation with puppetlabs-vcsrepo 6.0.0 and later due to removal of Puppet 6 support.

Development

Contributions welcome!

  • Fork it
  • make a PR from a feature branch
  • include tests if you can

Executing the tests:

pdk validate
pdk test unit

Release

git commit
git tag x.y.z
git push --tags

Look for the status of the build of the tag, not of the main branch, on the travis build page

Look for the new version on the Forge page

Build and deploy takes a couple of minutes.