Skip to content

Instantly share code, notes, and snippets.

/top.sls Secret

Created April 11, 2017 23:08
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/1b5f22d6fd394987ab9316bf3af93a29 to your computer and use it in GitHub Desktop.
Save anonymous/1b5f22d6fd394987ab9316bf3af93a29 to your computer and use it in GitHub Desktop.
Pillar top.sls using includes?
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
#
### Location ###
'as*':
- site.austin
'hq*':
- site.hq
'se* or sev*':
- match: compound
- site.seattle
'* and not ( as* or hq* or se* or sev* )':
- match: compound
- site.unknown
'*':
- envinclude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment