Version information
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.16.0 < 8.0.0
- , , , , ,
This module has been deprecated by its author since Oct 11th 2022.
The author has suggested puppetlabs-pe_status_check as its replacement.
Tasks:
- collect
- configure
Start using this module
Documentation
pe_tech_check
Table of Contents
- Description
- Setup - Installation and preparations
- Using pe_tech_check
- Development - Guide for contributing to the module
- Deprecations
Description
This module collects Puppet Enterprise data for analysis as part of the PE Tech Check service offering. The majority of the data is collected by the Puppet Enterprise Support Script.
https://puppet.com/docs/pe/latest/getting_support_for_pe.html#pe-support-script
Setup
Install the pe_tech_check
module
The preferred method of installation of pe_tech_check
is via Code manager however should this not be possible other options are available
Manually
To manually install the pe_tech_check
module, execute the following command on the Primary Server.
puppet module install puppetlabs-pe_tech_check --modulepath=/opt/puppetlabs/puppet/modules
Doing so will install this module into the base module path, making its tasks available without interfering with other modules.
If your Primary Server has environment caching enabled (which is true by default if Code Manager is being used), flush the environment cache to enable the tasks in this module by running the following command on the Primary Server:
/opt/puppetlabs/puppet/modules/pe_tech_check/scripts/flush_environment_cache.sh
Using Bolt
Bolt can be used either on the Primary Server or another machine with connectivity to the Primary Server. Firstly, follow the instruction for installing Bolt.
The following block of code will create a Bolt Project under the logged in user's home directory and set up the module:
mkdir -p ~/tech_check
cd ~/tech_check
cat >>Puppetfile <<EOF
mod 'puppetlabs-stdlib'
mod 'puppetlabs-pe_tech_check'
EOF
bolt project init
bolt module install --no-resolve
Usage
Pe_tech_check consumes Metric Provided by Puppet_Metrics_Collector Module, Puppet Enterprise >= 2019.8.8 and >= 2021.3 Come with Puppet Metrics Collector built in however for PE 2019.8.8 this feature must be enabled before proceeding.
To enable metrics collector in 2019.8.8 set the following parameters to true:
Hiera classification example
puppet_enterprise::enable_metrics_collection:: true
puppet_enterprise::enable_system_metrics_collection:: true
Alternativly these parameters can be set in the console, in a node group which covers your PE infrastructure nodes
If using a supported version of Puppet enterprise prior to 2019.8.8 or 2021.3 ensure you have Puppet Metrics Collector installed and enabled using the documentation from the Forge
Note: Allow at least one day after enabling
puppet_metrics_collector
to allow the module to collect metrics data before executing thepe_tech_check::collect
task.
Run the pe_tech_check::collect
task
Via Bolt
Note: if running Bolt from the Primary Server the --targets parameter will accept
localhost
as a destination which will not require authentication
bolt task run pe_tech_check::collect --targets <primary_fqdn>
Via the Console
In the Console, run the pe_tech_check::collect
task, targeting the Primary Server.
Via Puppet Task
From the command line of the Primary Server, run:
puppet task run pe_tech_check::collect --nodes $(puppet config print certname)
When finished, the pe_tech_check::collect
task will output a list of files.
Upload those files from the Primary Server to Puppet for analysis.
Development
This module is developed and maintained by the Puppet Enterprise Support and Technical Sales teams.
Deprecations
pe_tech_check::configure should be considered deprecated and should not be used in currently supported versions of Puppet Enterprise
Reference
Table of Contents
Tasks
collect
: Collect data for the PE Tech Check serviceconfigure
: Install and configure modules for the PE Tech Check service
Tasks
collect
Collect data for the PE Tech Check service
Supports noop? false
Parameters
ticket
Data type: Optional[String[1]]
Ticket number associated with a support case
configure
Install and configure modules for the PE Tech Check service
Supports noop? false
Parameters
install_pe_metrics
Data type: Optional[Variant[Enum['true','false']]]
Install the 'puppet_metrics_collector' module. Defaults to 'true'
install_pe_tune
Data type: Optional[Variant[Enum['true','false']]]
Install the 'puppet pe tune' module, if necessary. Defaults to 'true'
What are tasks?
Modules can contain tasks that take action outside of a desired state managed by Puppet. It’s perfect for troubleshooting or deploying one-off changes, distributing scripts to run across your infrastructure, or automating changes that need to happen in a particular order as part of an application deployment.
Tasks in this module release
Change log
All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
v2.0.0 (2021-11-12)
Changed
- (SUP-2753) Update Readme and Metadata for Release #42 (MartyEwings)
- (SUP-2753) Support for 2019.8 and 2021.3.0 #40 (MartyEwings)
Added
- Simplify module installation #37 (m0dular)
- Refactor to work with Bolt #31 (m0dular)
- flush_environment_cache.sh script added #3 (timidri)
- Removed pkg tarballs, added puppet version to datacapture #1 (timidri)
Fixed
- Use full path to the puppet infrastructure command #30 (tkishel)
- Correct task param in readme #27 (tkishel)
* This Changelog was automatically generated by github_changelog_generator