I’ve been using Foreman for a little while now and applying host configuration with puppet. While puppet can be powerful, I found that maintaining a collection of modules to manage otherwise simple configurations was a pain. I wrote a single module that allows configuration of many puppet types using hiera. Once you start with this you’ll quickly rid yourself of single-purpose modules and start defining systems entirely in hiera.
First, get the module: https://forge.puppet.com/southalc/basic
Next, configure hiera on the foreman by modifying ‘/etc/puppetlabs/puppet/hiera.conf’. Here’s an example I’m using:
- name: “Order: nodes, platform, OS version, OS family”
Last, define resources in hiera. The module merges values by default, making it easy to layer resource definitions and target resources by various facts. I’ve found this much easier to work with than traditional puppet modules.