Forge Home

puppet_agent

Puppet module to manage puppet-agent

4,223 downloads

4,223 latest version

5.0 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.1.0 (latest)
released May 21st 2019
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, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 7.0.0
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'rfranzen-puppet_agent', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add rfranzen-puppet_agent
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install rfranzen-puppet_agent --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

rfranzen/puppet_agent — version 0.1.0 May 21st 2019

puppet_agent

Table of Contents

  1. Overview
  2. Supported Platforms
  3. Requirements
  4. Installation
  5. Reference
  6. Author / Contributors

Overview

This module will manage puppet-agent 5.x and 6.x in your system.

It's a simple module that manage puppet repository, package, service and configuration file.

Augeas resource type is used to manage parameters inside the puppet.conf.

This module was based on these two modules:

Platforms

This module was tested under these platforms:

  • Debian 8 and 9 (x86_64 arch)
  • Ubuntu 16.04 and 18.04 (x86_64 arch)

Requirements

Your agents must be running a minimum version of Puppet 5.

Installation

via git (inside the modules directory)

git clone https://gitlab.com/rfranzen/puppet-puppet_agent.git puppet_agent

via puppet

puppet module install rfranzen/puppet_agent

via puppetfile

mod 'rfranzen-puppet_agent'

Usage

class { '::puppet_agent':
  certname        => "%{trusted.certname}",
  environment     => 'production',
  runinterval     => 1800,
  server          => 'puppetserver.mydomain.com',
  collection      => 'puppet6',
  manage_repo     => true,
}

This will ensure latest version of puppet6 available in repository. Also will ensure the puppet.conf file have the correct parameters.

Reference

Classes

::puppet_agent
::puppet_agent::install #private
::puppet_agent::config #private
::puppet_agent::service #private

Hiera

puppet_agent::certname: "%{trusted.certname}"
puppet:agent::environment: 'production'
puppet:agent::server: 'puppetserver.mydomain.com'
puppet:agent::collection: 'puppet6'
puppet:agent::manage_repo: false

Contribute

Feel free to help and improve it.

Ricardo Franzen (rfranzen at gmail dot com)