Skip to content

Instantly share code, notes, and snippets.

/envinclude.sls Secret

Created April 11, 2017 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6a41fc52d726e898b6c121c6ed3b3a4a to your computer and use it in GitHub Desktop.
Save anonymous/6a41fc52d726e898b6c121c6ed3b3a4a to your computer and use it in GitHub Desktop.
Pillar environment assignments
base:
# Apply convenience labels based purely on minion id. This is
# commonly (but not always) the FQDN of the system.
#
# WARNING: THESE LABELS ARE PROVIDED MERELY AS A CONVENIENCE FOR
# MINION TARGETTING PURPOSES ONLY. DO NOT RELY UPON THEM FOR
# DEPLOYMENT DECISIONS
#
# Trusting the minion id to be A) accurate B) formatted correctly
# C) not deliberately misnamed is inviting Very Bad Things
#
### Environment ###
'??aud*':
- env.audit
'??dev* or sev*dev':
- match: compound
- env.dev
'??inf*':
- env.inf
'??poc*':
- env.poc
'??prd* or ( sev* and not ( sev*dev* or sev*demo* ) )':
- match: compound
- env.prod
'??stg* or sev*demo*':
- match: compound
- env.stage
'??tst*':
- env.test
'* and not ( ??aud* or ??dev* or ??inf* or ??poc* or ??prd* or ??stg* or sev* or ??tst* )':
- match: compound
- env.unknown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment