Can I install puppet modules through puppet manifest?

holms picture holms · May 27, 2013 · Viewed 8k times · Source

Primary goal is to add all puppet modules automatically, so that all dev-env's and prod-env could be started with one command. How can I install puppet modules through puppet manifest?

Answer

LiorH picture LiorH · May 30, 2013

We've been happily using librarian-puppet to sync all 3rd party modules, it supports setting the modules' locations and versions. So production and dev run the exact same code. The usage is one liner

librarian-puppet install

In other cases we have a shell script that runs puppet two times, one time a minimal module that is only responsible for fetching the required modules, and then the full blown puppet flow when all modules are available.