Additional Classification Needed for Nodes in Hiera
I've looked for a solution to this problem but it may be unique. Our Puppet 3.7 environment is about 800 RHEL nodes and our hostnames contain the following information.
datacenter OS environment project role of server (web, app, db...) server number
Our Hiera hierarchy currently looks like...
So as it turns out the server role, for example app, isn't descriptive enough to determine which application and which type of configuration to get. Furthermore, servers may have the same application but different role, such as master/standby. The solutions I've been able to come up with so far...
Custom Facts in Facter - As I understand it, this may end up being a pretty large sized bash script if in one fact, otherwise would be a fact or each possible application and role.
Custom File on Servers - Would be a text file with more descriptive info. This would probably have to be manually created and another file to maintain.
A TXT Record in DNS with additional info - Probably a bad idea
So I'd like to try to find some middle ground between our current environment where nodes are classified with the high-level information above and doing each node individually.
Thanks for any and all help!