GithubHelp home page GithubHelp logo

isabella232 / pe_tech_check Goto Github PK

View Code? Open in Web Editor NEW

This project forked from puppetlabs/pe_tech_check

0.0 0.0 0.0 465 KB

A repo containing tasks and scripts for the PE Tech Check service

Ruby 57.97% Shell 42.03%

pe_tech_check's Introduction

pe_tech_check

Table of Contents

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

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

Using Bolt

Bolt is the preferred installation and execution method and can be used either on the master or another machine with connectivity to the master. Firstly, follow the instruction for installing Bolt. Users are strongly encouraged to follow the note about directly installing the package if installing on a PE node.

The following block of code will create a Boltdir under the logged in user's home directory and set up the module:

mkdir -p ~/Boltdir
cd ~/Boltdir

cat >>Puppetfile <<EOF
mod 'puppetlabs-stdlib'
mod 'puppetlabs-pe_tech_check'
mod 'tkishel-pe_tune',
  :git => 'https://github.com/tkishel/pe_tune.git',
  :branch => 'master'
EOF

bolt puppetfile install

Manually

To manually install the pe_tech_check module, execute the following command on the Primary Master.

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 Master 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 Master:

/opt/puppetlabs/puppet/modules/pe_tech_check/scripts/flush_environment_cache.sh

Usage

Run the pe_tech_check::configure task

Via Bolt

bolt task run pe_tech_check::configure --nodes <master_fqdn>

Via the Console

In the Console, run the pe_tech_check::configure task, targeting the Primary Master.

Via Puppet Task

From the command line of the Primary Master, run:

puppet task run pe_tech_check::configure --nodes $(puppet config print certname)

Task parameters

install_pe_metrics (Boolean, default: true)

Temporarily install and configure the puppet_metrics_collector module, if it is not already installed.

https://forge.puppet.com/puppetlabs/puppet_metrics_collector

install_pe_tune (Boolean, default: true)

Temporarily install the puppet pe tune subcommand via the pe_tune module. The pe_tune module is the upstream version of the puppet infrastructure tune subcommand.

https://github.com/tkishel/pe_tune

Note: Allow at least one day after executing the pe_tech_check::configure task for the puppet_metrics_collector module to collect metrics data before executing the pe_tech_check::collect task.

Run the pe_tech_check::collect task

Via Bolt

bolt task run pe_tech_check::collect --targets <master_fqdn>

Via the Console

In the Console, run the pe_tech_check::collect task, targeting the Primary Master.

Via Puppet Task

From the command line of the Primary Master, run:

puppet task run pe_tech_check::collect --targets $(puppet config print certname)

When finished, the pe_tech_check::collect task will output a list of files. Upload those files from the Primary Master to Puppet for analysis.

Development

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

pe_tech_check's People

Contributors

timidri avatar m0dular avatar gguillotte avatar spynappels avatar tkishel avatar sharpie avatar martyewings avatar kamiolszewski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.