This project uses librarian-puppet to download modules and dependencies and then publishes them to Nexus
- Clone this project to your local machine.
- Update Puppetfile with the modules you want to publish to Nexus.
- Update NEXUS_* variables in common.sh to match your Nexus install.
- Run retrieve_modules.sh - this uses librarian puppet to grab your modules and their dependencies.
- Run publish_modules.sh - this publishes all modules in the modules/ directory to Nexus.
Retrieving and publishing modules is done as two separate steps because, you may have to modify the module before publishing. Publishing a module to Nexus requires that it contain a metadata.json file, if the file is missing the publish will throw an error. You will need to add the metadata file and then re run the publish script.
Read more about how the Nexus Puppet plugin works