Skip to content

Instantly share code, notes, and snippets.

Created May 27, 2015 16: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/8c23fcdec08b6e9918db to your computer and use it in GitHub Desktop.
Save anonymous/8c23fcdec08b6e9918db to your computer and use it in GitHub Desktop.
###IN MASTER CONF###
reactor:
- 'minion_start':
- /srv/salt/reactor/reacttop.sls
###/srv/salt/top.sls -- this works fine when executed directly via state.highstate###
base:
'os:Windows':
- match: grain
- windows.common
'os:CentOS':
- match: grain
- centos.common
'os:Ubuntu':
- match: grain
- ubuntu.common
'nginx_role:frontend':
- match: grain
- nginx.common
- nginx.frontend
'nginx_role:public':
- match: grain
- nginx.common
- nginx.public
'nginx_role:backend':
- match: grain
- nginx.common
- nginx.backend
'edg_serverRole:mongo':
- match: grain
- mongo.common
'*-udp-*':
- realms.udp
'*-wdp-*':
- realms.wdp
'*-rdp-*':
- realms.rdp
'*-poc-*':
- realms.poc
'*-wci-*':
- realms.wci
'*-red??':
- redis.common
'*poc-red??':
- redis.poc.common
###/srv/salt/reactor/reacttop.sls###
highstate_run:
local.state.highstate:
- tgt: {{ data['id'] }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment