Forge Home

puppet_agent

pdk
Puppet module to manage puppet-agent

3,503 downloads

3,503 latest version

5.0 quality score

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
  • Debian
    ,
    Ubuntu

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)