ministryofjustice / cotton

Project independent shared fabric extensions to bootstrap first VM and manage configuration within team
3 stars 2 forks source link

Made var 'env' available in template rendering and allow subdirectories #12

Closed paulrhodes closed 10 years ago

paulrhodes commented 10 years ago

To allow for more granular control of the pillar data a couple of changes have been made:

This allows for a top.sls file which looks something like this:

base:
  '*':
    - base.common
    - {{env.release_stage}}.common

This makes it easier to use standard hierarchical definitions of pillars and the deep merging functionality it provides to minimise changes at the leaves.