foreman_extras

Sets up Foreman Extras, aka, report processor for PuppetServer and Fact collection via cron.

Matt Nicholson

sjoeboo

13,983 downloads

12,848 latest version

3.8 quality score

Version information

  • 0.1.1 (latest)
  • 0.1.0
released Mar 11th 2016

Start using this module

Documentation

sjoeboo/foreman_extras — version 0.1.1 Mar 11th 2016

foreman_extras

Table of Contents

  1. Description
  2. Setup - The basics of getting started with foreman_extras
  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

This module sets up some etra foreman bits I've found lacking, esspecailly when using foreman for reports/inventory, btu not for building/controlling puppet(master|servers).

Its setup for PuppetServer 2.x, but should work with 1.0 and the older PuppetMaster.

Setup

Beginning with foreman_extras

include foreman_extras

Usage

This section is where you describe how to customize, configure, and do the fancy stuff with your module here. It's especially helpful if you include usage examples and code samples for doing things with your module.

Reference

Parameters

As found in params.pp:

foreman_url

The url (http or https) where foreman can be reached. Type: String Default: https://foreman

config_path Path you'd like the config file for these scripts place. Directory must exist. Type: String Default: /etc/puppetlabs/puppet/foreman.yaml

reports Boolean, disable,enable the report processor (Note, this does NOT add the processor to the 'report' setting in puppet.conf. That is out of the scope of this module) Type: String Default: true

report_processor_dest_path Path to install the report processor into. Varies with Puppetmaser/Puppetserver 1.0/Puppetserver 2.0 Type: String Default: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/reports/foreman.rb

ssl_ca Path to CA used to verify foreman https IF using https Type: String Default: /etc/puppetlabs/puppet/ssl/certs/ca.pem

ssl_cert Path to cert used to verify foreman https IF using https Type: String Default: /etc/puppetlabs/puppet/ssl/certs/${::fqdn}.pem

ssl_key Path to key used to verify foreman https IF using https Type: String Default: /etc/puppetlabs/puppet/ssl/private_keys/${::fqdn}.pem

puppetdir Path to puppet data for the fact uploader to read. Type: String Default: /opt/puppetlabs/server/data/puppetserver/

puppetuser Local Puppet used Type: String Default: puppet

fact_uploader Enable/Disable fact uploader Type: String Default: true

fact_uploader_dest_path Path to install fact uplaoding script to Type: String Default: /usr/local/bin/foreman_node_info.rb

fact_uploader_facts Turns on fact uploads in the config file Type: String Default: true

fact_uploader_timeout Time out for attempting to upload facts, in seconds Type: String Default: 10

fact_uploader_threads Now many threads to run when uploading facts. Type: String Default: 2

fact_uploader_cron_job Boolean, toggles installation/removal of cronjob to upload facts Type: String Default: true

fact_uploader_cron_min How frequently, in minutes, to run the cron job ('5' = */5, etc) Type: String Default: '5'

fact_uploader_cron_user User to install the cron job into Type: String Default: 'root'

Limitations

Assuming *nix OS