Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 

Puppetfile-updater

Build Status Gem Version Gem Downloads Gemnasium

Puppetfile is a cool format, used by librarian-puppet and r10k to install and maintain collection of Puppet modules.

However, keeping it up-to-date with newer versions of said modules can be a difficult task.

This gem provides rake tasks to ease this job, by connecting to the Puppet Forge and GitHub and fetching the new versions or references for you.

Simple usage

In your Rakefile:

require 'puppetfile-updater/task'

# Update all modules, avoid major version updates
PuppetfileUpdater::RakeTask.new :sync_refs do |config|
  # This is required to avoid hitting the GitHub connection rate
  config.gh_login    = 'github_robot'
  config.gh_password = 'github_password'
end

# Only update Camptocamp modules, including major version updates
PuppetfileUpdater::RakeTask.new :sync_c2c_refs do |config|
  config.user        = 'camptocamp'
  config.gh_login    = 'github_robot'
  config.gh_password = 'github_password'
  config.major       = true
  config.debug       = true
end

About

Keep your Puppetfile up-to-date

Resources

Packages

No packages published