Skip to content

Instantly share code, notes, and snippets.

@vtolstov
Created August 9, 2017 22:37
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 vtolstov/c426fc5e8f8688ac58334c7a4cc81c63 to your computer and use it in GitHub Desktop.
Save vtolstov/c426fc5e8f8688ac58334c7a4cc81c63 to your computer and use it in GitHub Desktop.
common/*.sls
system/{{ __grains__['os'].lower() }}-{{ __grains__['osrelease'].lower() }}-{{ __grains__['osarch'] }}.sls
{% set hostname, domainname = minion_id.split('.',1) %}
envs/{{ domainname | replace('.','_') }}/*.sls
roles/{{ hostname.rstrip('0123456789') }}.sls
nodes/{{ domainname | replace('.','_') }}/{{ hostname }}.sls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment