Forge Home

puppetagent

A simple Puppet module for puppet agent

10,402 downloads

6,717 latest version

4.3 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

  • 1.4.0 (latest)
  • 1.3.0
  • 1.2.0
  • 1.1.0
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2 (deleted)
  • 1.0.1
  • 1.0.0 (deleted)
released May 28th 2017
This version is compatible with:
  • Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >=4.5.0 < 5.0.0
  • , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'gutocarvalho-puppetagent', '1.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add gutocarvalho-puppetagent
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install gutocarvalho-puppetagent --version 1.0.3

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

gutocarvalho/puppetagent — version 1.0.3 May 28th 2017

Build Status License GitHub version

Puppetagent Module

This module will install puppet-agent in your system.

This is a very simple module, for development and test purposes.

Requirements

This module was developed using

  • Puppet 4.10
  • Hiera 5
  • CentOS 7
  • Vagrant 1.9
    • box: gutocarvalho/centos7x64

Hiera 5

Upgrade your /etc/puppetlabs/puppet/hiera.yaml to Hiera v5, see the example bellow:

version: 5
defaults:
  datadir: data
  data_hash: yaml_data
hierarchy:
  - name: "Per-node data (yaml version)"
    path: "nodes/%{trusted.certname}.yaml" # Add file extension.
    # Omitting datadir and data_hash to use defaults.

  - name: "Other YAML hierarchy levels"
    paths: # Can specify an array of paths instead of one.
      - "location/%{facts.whereami}/%{facts.group}.yaml"
      - "groups/%{facts.group}.yaml"
      - "os/%{facts.os.family}.yaml"
      - "common.yaml"

After that, you can use this module without problems.

How to use it

Installation

via git

cd /etc/puppetlabs/code/environment/production/modules
git clone https://github.com/gutocarvalho/puppet-puppetagent.git puppetagent

via puppet

puppet module install gutocarvalho/puppetagent

How to use (the fast way)

puppet apply -e "include puppetagent"

How to use with parameters

class { 'puppetagent':
  agent_certname    => $trusted[certname],
  agent_version     => '1.10.1-1.el7',
  agent_server      => 'pupperserver.hacklab',
  agent_environment => 'production',
  agent_runinterval => '3600'
}

Classes

puppetagent
puppetagent::install (private)
puppetagent::config (private)
puppetagent::service (private)

Hiera Keys (Sample)

puppetagent::agent_certname: "%{trusted.certname}"
puppetagent::agent_version: '1.10.1-1.el7'
puppetagent::agent_server: 'puppetserver.hacklab'
puppetagent::agent_environment: 'production'
puppetagent::agent_runinterval: '3600'