puppetrepo

Setup Puppet package repository and agent version locking

Lightoze

lightoze

6,708 downloads

6,708 latest version

4.5 quality score

Version information

  • 0.1.0 (latest)
released Apr 30th 2016
This version is compatible with:
  • RedHat
    ,
    CentOS
    ,
    Ubuntu
    ,
    Debian

Start using this module

Documentation

lightoze/puppetrepo — version 0.1.0 Apr 30th 2016

puppetrepo

Overview

This module manages Puppet package repository and agent version locking. It works on Debian and RedHat $osfamily.

What puppetrepo affects

  • On systems using Yum, it will install yum-plugin-versionlock and add allowed agent package version to /etc/yum/pluginconf.d/versionlock.list file.
  • On systems using Apt, it will pin agent package version to specified pattern.

Usage

Just include puppetrepo class. It has a single parameter puppet_agent_version, which is a pattern for required puppet-agent package version (e.g. default 1.4.*).

Reference

There is an additional resource puppetrepo::install_script, which creates a Puppet installation bash script to bootstrap new nodes. You can create in on Puppet master and serve over HTTP, and then run it like curl https://puppet.internal/install.sh | sudo bash on fresh node installs.