Skip to content

Instantly share code, notes, and snippets.

@chhibber
Created January 14, 2014 06:55
Show Gist options
  • Save chhibber/8414234 to your computer and use it in GitHub Desktop.
Save chhibber/8414234 to your computer and use it in GitHub Desktop.
Salt: top.sls example
base:
"*":
- baseRequirements
- baseRequirements.vim
- baseRequirements.limits
- baseRequirements.rpmrepo-treasuredata.sls
- fluentd
- sysctl
- system.set_hostname
- FOOBARApp.tag
- rsyslog
- ssh
- sudo
- users
- aws.set_aws_info
'roles:www':
- match: grain
- baseRequirements.www
- newrelic
- newrelic.newrelic_plugin_agent
- FOOBARApp
- FOOBARApp.logrotate
- FOOBARApp.FOOBAR-app-config-files
- FOOBARApp.FOOBAR-app-gitconfig
- nginx
- rbenv
- unicorn
'roles:worker':
- match: grain
- baseRequirements.www
- newrelic
- newrelic.newrelic_plugin_agent
- FOOBARApp
- FOOBARApp.logrotate
- FOOBARApp.FOOBAR-app-config-files
- FOOBARApp.FOOBAR-app-gitconfig
- rbenv
'roles:salt':
- match: grain
- baseRequirements.www
- baseRequirements.saltmaster
- newrelic
- FOOBARDeploy.cron
- FOOBARApp.cron-app_S3_archive
- FOOBARApp.FOOBAR-app-gitconfig
- FOOBARApp.set_deploy_bash_profile
- rbenv
- redis
- saltMaintenance.cron
- ssh.keys.deploy_key
- sysctl.saltmaster
'roles:redismaster':
- match: grain
- newrelic
- newrelic.newrelic_plugin_agent
- redis
'roles:cache':
- match: grain
- memcached
- redis
- newrelic
- newrelic.newrelic_plugin_agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment