Forge Home

healthcheck_lite

Provides Tasks to capture data for healthcheck lite

6,511 downloads

4,921 latest version

4.5 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.3.0 (latest)
  • 0.2.6
  • 0.2.5 (deleted)
  • 0.2.4 (deleted)
  • 0.2.3 (deleted)
  • 0.2.2 (deleted)
  • 0.2.1 (deleted)
  • 0.2.0 (deleted)
  • 0.1.4
  • 0.1.3 (deleted)
  • 0.1.2 (deleted)
  • 0.1.1 (deleted)
  • 0.1.0 (deleted)
released Nov 2nd 2018
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, 2017.3.x
  • Puppet >= 5.3.2 < 7.0.0
  • , , , , ,
This module has been deprecated by its author since Mar 20th 2019.

The reason given was: This module has now been deprecated in favor of the puppetlabs/healthcheck_lite

The author has suggested puppetlabs-healthcheck_lite as its replacement.

Tasks:
  • datacapture
  • hcl1
  • hcl2
  • packagedata
  • supportcapture

Start using this module

Documentation

spynappels/healthcheck_lite — version 0.3.0 Nov 2nd 2018

healthcheck_lite

Table of Contents

  1. Description
  2. Setup - Installation and preparations
  3. Using healthcheck_lite
  4. Development - Guide for contributing to the module

Description

This module gathers data from the PE Infrastructure nodes for analysis as part of the HealthCheck Lite Service offering. It primarily does this by gathering data in the form of the Support Script, as well as an additional data capture script. It will also gather up the metrics from the puppetlabs/puppet_metrics_collector module if installed and enabled.

Setup

Installing the healthcheck_lite module

To install the healthcheck_lite module execute this command on the Primary Master:

puppet module install puppetlabs-healthcheck_lite
 --modulepath=/opt/puppetlabs/puppet/modules

This will install the modules into the system module path, making the tasks and classes available without interfering with the normal code directory. Installing here is unlikely to survive a PE upgrade, but the same installation method can be used after an upgrade if required.

The healthcheck_lite module has a dependency for the puppetlabs/puppet_metrics_collector module. If the puppetlabs/puppet_metrics_collector module was already installed and classified in the standard code directory, it will be re-installed in this alternate location, but this will not cause any issues.

If code manager is being used, you need to deploy the production environment to make sure the newly installed modules are available to Puppet Enterprise.

puppet code deploy production --wait

Preparation before using healthcheck_lite

If puppet_metrics_collector is not already being used, enable the Puppet Metrics Collector by adding the class puppet_metrics_collector to the PE Infrastructure classification group. For more information on puppetlabs/puppet_metrics_collector please see the documentation for that module. https://forge.puppet.com/puppetlabs/puppet_metrics_collector/readme. Trigger a Puppet Run on the PE Infrastructure group or let the scheduled Puppet runs happen. Allow at least 24 hours of metrics collection to ensure as much pertinent information is captured as possible.

Usage

Run the healthcheck_lite::hcl1 task

This task takes 2 input parameters, which are the username and password for a user account which has RBAC permissions to run Tasks on the infrastructure nodes. These are used to create a short lived Authentication Token which will be used to run the healthcheck-related tasks. After creating the token and writing it to a file, healthcheck_lite::hcl1 task executes the PE Support Script (the healthcheck_lite::supportcapture task) on all infrastructure nodes (Primary Master/Compile Masters, PuppetDB and Console nodes if present).

Copy the Support Script output

Copy the resultant Support Script tarballs from all infrastructure nodes to the /var/tmp/hcl_data directory on the Primary Master. The location of the tarball can be found in the output of the healthcheck_lite::supportcapture task on each Infrastructure node.

Run the healthcheck_lite::hcl2 task

This task will capture some additional data on the Primary Master, and then package all this data, including the Support Script tarballs copied to the Primary Master, up for forwarding to Puppet. It takes a single parameter which is an identifier (allowed characters are all alphanumeric characters plus underscore) which is to be agreed with Puppet during the Healthcheck Lite intake conversation. This task also cleans up after itself by deleting the working directory and the temporary Authentication Token.

Development

This module is developed and maintained by the Puppet Support and Technical Sales teams.