Skip to content

Instantly share code, notes, and snippets.

@zlanich
Created August 2, 2016 04:30
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 zlanich/1d759994751b0d73714caa7434ee6dcb to your computer and use it in GitHub Desktop.
Save zlanich/1d759994751b0d73714caa7434ee6dcb to your computer and use it in GitHub Desktop.
# prod-profiles.conf
base:
provider: do
image: ubuntu-16-04-x64
size: 512mb
location: nyc1
private_networking: True
ipv6: True
backups_enabled: False
##
# Other Possible directives
##
# ssh_username: root
# create_dns_record: True
# minion:
# master: your_server_ip
web-wp-prod:
extends: base
minion:
grains:
role: webserver
env: production
cms: wordpress
web-wp-staging:
extends: base
minion:
grains:
role: webserver
env: staging
cms: wordpress
# environemnts.map
web-wp-prod:
- saltsinglesite.wecreate.com
web-wp-staging:
- staging
# top.sls (states)
base:
'*web*':
- common
- apache
- mysql
- php
- wordpress
# top.sls (pillars)
base:
'*web*':
- default
'saltsinglesite.wecreate.com':
- saltsinglesite_wecreate_com
# saltsinglesite.wecreate.com
sites:
- saltsinglesite.wecreate.com:
multisite: False
backups: True
- saltmultisite.wecreate.com:
multisite: True
backups: True
domains:
- sub.saltmultsite.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment