Hi Guys,
I'm trying to figure out the best way to manage json configuration files on all of my nodes. The json files consist of from 1 to n sub-site configurations stored in a json array. If each site only had 1 site configuration, it would be a simple matter of using a template. The only option I can think of right now is to maintain a separate json file for each node on the Puppet Master. Of course, that would make implementing across-the-board changes cumbersome.
What are my options?
Each node's json file would look something like this and could have any number of sites:
{
"Sites": [
{
"ID": "0000",
"IS_LIVE": "False",
"MYSQL_USER": "mgmt",
"MYSQL_PASS": "letmein",
"BACKUP_LIVE": "True"
}
{
"ID": "0001",
"IS_LIVE": "False",
"MYSQL_USER": "mgmt",
"MYSQL_PASS": "letmein",
"BACKUP_LIVE": "True"
{
"ID": "0002",
"IS_LIVE": "False",
"MYSQL_USER": "mgmt",
"MYSQL_PASS": "letmein",
"BACKUP_LIVE": "True"
Thanks for any suggestions on the best way to manage these files.