Forge Home

puppetstats

Enables anonymous statistics for puppet modules. A service provided by puppetstats.com.

8,347 downloads

2,403 latest version

3.8 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.5.0 (latest)
  • 0.4.0
  • 0.3.0
  • 0.2.0
  • 0.1.0
released Mar 19th 2018
This version is compatible with:
  • Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 3.8.0 < 5.0.0

Start using this module

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

Add this module to your Puppetfile:

mod 'kschu91-puppetstats', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add kschu91-puppetstats
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install kschu91-puppetstats --version 0.1.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

kschu91/puppetstats — version 0.1.0 Mar 19th 2018

puppetstats

Build Status Puppet Forge Puppet Forge - downloads Puppet Forge - scores

Table of Contents

  1. Description
  2. Setup - The basics of getting started with puppetstats
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module

Description

Have you every ask yourself how many people are using your module in a specific puppet version or on a specific distribution? This is exactly what puppetstats.com and this module is build for.

This module enables the free service from puppetstats.com. puppetstats.com allows to analyse anonymous usage statistics of puppet modules which can help you to optimize your module based on the usage. The puppetstats module is required to gather statistics about you module.

Setup

What puppetstats affects

When included, puppetstats module will send anonymous usage statistics to puppetstats.com. You can sign up for free at puppetstats.com to see and analyse the statistics of your modules.

Beginning with puppetstats

To get started just call the puppetstats module together with the full qualified module name of your puppet module. Eg. puppetlabs-apache.

puppetstats { 'puppetlabs-apache': }

Usage

This is the common way of including puppetstats in your puppet module.

class yourfancymodule (
  Boolean $enable_puppetstats = true,
) {
  
  ...
  
  puppetstats { 'puppetlabs-apache': enabled => $enable_puppetstats }
  
  ...
  
}

Reference

enabled

puppetstats { 'puppetlabs-apache': enabled => false}

Which allows you to disable the tracking of statistics. This parameter is useful if you want to give the users of your module the ability to disable puppetstats statistics. For example:

class yourfancymodule (
  Boolean $enable_puppetstats = true,
) {
  
  ...
  
  puppetstats { 'puppetlabs-apache': enabled => $enable_puppetstats }
  
  ...
  
}

full_qualified_module_name

The full_qualified_module_name is filled with $title by default, which means when you use it like this:

puppetstats { 'puppetlabs-apache': }

... you do not need to specify full_qualified_module_name explicitly.

However, if you want to use puppetstats like this:

class { '::puppetstats':
    full_qualified_module_name => 'company',
    enabled => true
}

... you need to specify full_qualified_module_name.

Limitations

The puppetstats module should work on each OS and distribution where puppet is running. It has minimum dependencies and is mostly written in native ruby.

Development

If you find any defects or want to raise a feature request, create an issue on Github and let me know.