Storing hostname + profile in a database
I currently have a customer with non-puppet configuration management system that applies a configuration based on values in a database. One of them directly aligns with a puppet "role" so I'm thinking of using it directly with the new puppet config system.
To utilize this database, would my best bet be to just use an ENC that just queries the database (either directly or via web service) and spits out:
classes: - role::$role
Where $role is the queried value?