Data Across Multiple Environments¶
Let's say you have an app that you wish to deploy in two environments: staging and production, with the dev VM as the default. A good layout for this would be:
deploy.pyinventories/production.py- production inventoryinventories/staging.py- staging inventorygroup_data/all.py- shared datagroup_data/production.py- production datagroup_data/staging.py- staging data
The "all" group data contains any shared info and defaults:
And the production/staging data describe the differences:
For more information on inventory files, see :doc:inventory-data.