Skip to content

Instantly share code, notes, and snippets.

Created April 24, 2017 18:15
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/74393539ba59ae59d68aa7deb9a91212 to your computer and use it in GitHub Desktop.
Save anonymous/74393539ba59ae59d68aa7deb9a91212 to your computer and use it in GitHub Desktop.
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
'sea* or serv* or srv*':
- match: compound
- site.seattle
'* and not ( as* or hq* or sea* or serv* or srv* )':
- match: compound
- site.unknown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment