Version information
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
Add this module to your Puppetfile:
mod 'rfranzen-puppet_agent', '0.1.0'
Learn more about managing modules with a PuppetfileDocumentation
rfranzen/puppet_agent — version 0.1.0 May 21st 2019
puppet_agent
Table of Contents
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)
Dependencies
- puppetlabs-apt (>=6.0.0 < 7.0.0)
- puppetlabs-augeas_core (>=1.0.0 < 2.0.0)