Best practice for distributing a bundle of related facts
I'm using Puppet 3.2.2 with Hiera as a lightweight ENC.
I have a bunch of related parameters, let's suppose they are DB settings: host, user, password, and name.
And I have a bunch of services, which may be on different nodes, and all these services need to know the DB settings.
So, after much reading, I've come up with 4 potential ways to distribute this info within the way things are set up:
- Parameterize all the service-specific classes with 4 separate parameters, and use Puppet / Hiera autoconfiguration to fill in the values.