Skip to content
Setup Puppet package repository and version restrictions
Puppet Ruby Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
manifests
spec
templates
tests
.gitignore
README.md
Rakefile
metadata.json

README.md

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.

You can’t perform that action at this time.