Fork of the the librarian-puppet-simple project. (https://github.com/bodepd/librarian-puppet-simple)
As I needed to pull some repos at build time, and already was using librarian-puppet, I needed different binary/xxxfile/container names. This project also supports zip archives.
Remove the directory where the repos will be installed. At the moment the supported options are:
--verbosedisplay progress messages--pathoverride the default./reposwhere repos will be installed
librarian-repo clean [--verbose] [--path]
Iterates through your Repofile and installs git sources. At the moment the supported options are:
--verbosedisplay progress messages--cleanremove the directory before installing repos--pathoverride the default./reposwhere repos will be installed--Repofileoverride the default./Repofileused to find the repos
librarian-repo install [--verbose] [--clean] [--path] [--Repofile]
Iterates through your Repofile and updates git sources. If a SHA-1 hash is specified in the :ref, the module will not be updated.
Supported options are:
librarian-repo update [--verbose] [--path] [--Repofile]
The processed Repofile may contain two different types of repos, git and archive. The git option accepts an optional ref parameter.
archive supoorts tar.gz and zip format.
The module names can be namespaced, but the created directory will only contain the last part of the name. For example, a module named puppetlabs/ntp will generate a directory ntp, and so will a module simply named ntp.
Here's an example of a valid Repofile showcasing all valid options:
mod "puppetlabs/ntp",
:git => "git://github.com/puppetlabs/puppetlabs-ntp.git",
:ref => "99bae40f225db0dd052efbf1d4078a21f0333331"
mod "apache",
:archive => "https://forge.puppetlabs.com/puppetlabs/apache/0.6.0.tar.gz"
Just clone the repo and run the following commands:
bundle exec install --path=vendor
bundle exec rspec
Beware that the functional tests will download files from GitHub and will break if either is unavailable.
See LICENSE
The main project came form https://github.com/bodepd/librarian-puppet-simple The untar and ungzip methods came from https://gist.github.com/sinisterchipmunk/1335041