Skip to content

camptocamp/puppetfile-updater

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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