ZeroPointEnergy / ra10ke

Rake tasks related to R10K and Puppetfile

Home Page:https://rubygems.org/gems/ra10ke

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ra10ke

Gem Version

Rake tasks related to R10K and Puppetfile.

Usage

Add the following line to your Gemfile:

gem 'ra10ke'

Add the following line in your Rakefile:

require 'ra10ke'

Rake tasks

r10k:syntax

Syntax check for the Puppetfile. Similar to the r10k puppetfile check command.

r10k:dependencies

This rake task goes through the modules that are declared in the Puppetfile, and prints outdated modules.

Supports:

  • Puppet Forge
  • Git (SHA-ref and Tagging)

Ignoring specific modules:

Under specific conditions you may not wish to report on specific modules being out of date, to ignore a module create .r10kignore file in the same directory as your Puppetfile.

r10k:solve_dependencies

Reads the Puppetfile in the current directory and uses the ruby 'solve' library to find missing and outdated dependencies based on their metadata.

The solver does not allow major version bumps according to SemVer by default. To allow major upgrades, call the rake task with any parameter.

The rake task will download git modules into the modules/ directory to access their metadata.json. It will also cache forge metadata in ̃$XDG_CACHE_DIR/ra10ke.metadata_cache in order to make subsequent runs faster.

r10k:install[path]

Reads the Puppetfile in the current directory and installs them under the path provided as an argument.

Limitations

  • It works only with modules from the Forge, and Git. SVN modules will be ignored.
  • Git support is explicitly SHA Ref and Tag supported. If tag is used it must follow v0.0.0 convention, other wise it will be ignored.
  • The version has to be specified explicitly. If it is omitted, or it is :latest, the module will be ignored.

About

Rake tasks related to R10K and Puppetfile

https://rubygems.org/gems/ra10ke

License:MIT License


Languages

Language:Ruby 100.0%