This module can convert standard puppet module file in form of tarball to valid RPM or DEB package with all dependencies as references to other system packages. The dependencies can be packaged inside the final system package or just referenced as dependencies.
Install it yourself, globally as:
$ sudo gem install revamp
On Debian/Ubuntu systems to convert to RPM you will need also:
$ sudo apt-get install -y rpm
On RHEL systems you will need also:
$ sudo yum install -y rpm-build
For convenience thare is a Docker image with system tools and revamp preinstalled: coigovpl/revamp
. The usage is simply:
$ docker run --rm coigovpl/revamp revamp --help
The basic usage is really simple:
$ revamp -f coi-jboss-1.0.0.tar.gz
INFO: Converting to RPM package puppetmodule_coi-jboss-1.0.0-0.noarch.rpm...
INFO: Files successfully converted: 1.
Or with extra options:
$ revamp --release 42 --outdir /tmp -f coi-jboss-1.0.0.tar.gz
INFO: Converting to RPM package /tmp/puppetmodule_coi-jboss-1.0.0-42.noarch.rpm...
INFO: Files successfully converted: 1.
More on available options in help:
$ revamp --help
- Fork it ( https://github.com/coi-gov-pl/gem-revamp/fork )
- Create your feature branch (
git checkout -b feature/my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin feature/my-new-feature
) - Create a new Pull Request