tl;dr: How do I manage modules for a Puppet Master, like I do using requirements.txt for Python or using Bower for JavaScript?

Here's an example.

Say I want to install the puppetlabs/firewall module, but I don't want to commit its source to source control.

https://forge.puppet.com/puppetlabs/firewall advises the following:

puppet module install puppetlabs-firewall --version 1.8.1

However, this seems... off to me, somehow. I'm not saying code-smell, but maybe my code-nose twitched a little, you know what I'm saying?

Especially since I was really hoping to use the puppetmaster module to get rid of our ticky-tacky little fabric+jenkins+bash+cron mess that currently manages our Puppet Masters.

I'd hoped to find something like a puppetmodule provider for package resources that would allow me to automate Puppet Module installation on our Puppet Master.

Is it as simple as adding all the modules I need as dependencies in the puppetmaster module's modulefile? https://github.com/fsalum/puppet-puppetmaster/blob/master/Modulefile

That feels hacky.

Anyway, I'm used to stuff like requirements.txt in Python and Bower in JavaScript.

BTW, I tried searching the forums for this, but I ended up with answers like the following:

Best way to manage third-party / custom-built software with Puppet?

How to install packages from source code with Puppet?

What does Puppet Master have like requirements.txt or Bower that I can use for Puppet modules?

  • // , This is strictly a question about Puppet dependency management as applied to a Puppet Master using Puppet Open Source. – Nathan Basanese Nov 2 '16 at 17:34
  • // , Because I'm asking about dependency management, I think it might belong in StackOverflow in stead, but I've noticed higher quality Puppet answers on serverfault.com than elsewhere, even on the ask.puppet.com forum. – Nathan Basanese Nov 2 '16 at 17:36
  • 1
    Have a look at r10k. – gf_ Nov 2 '16 at 17:40
  • 1
    What is all the // , about? – Michael Hampton Nov 2 '16 at 17:56
  • // , Having a sense of humor, perhaps? – Nathan Basanese Nov 2 '16 at 18:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.