Re-organized all files and added a Vagrantfile
This commit is contained in:
49
site.yml
49
site.yml
@@ -1,48 +1,7 @@
|
||||
--
|
||||
---
|
||||
# This playbook deploys the whole application stack for wrestlingdev
|
||||
#
|
||||
- name: apply common configuration to all nodes
|
||||
hosts: all
|
||||
remote_user: root
|
||||
|
||||
roles:
|
||||
- common
|
||||
|
||||
- name: configure and deploy the webservers and application code
|
||||
hosts: webservers
|
||||
remote_user: root
|
||||
|
||||
roles:
|
||||
- applicationvars
|
||||
- web
|
||||
|
||||
- name: configure and deploy the rails workers and application code
|
||||
hosts: workers
|
||||
remote_user: root
|
||||
|
||||
roles:
|
||||
- applicationvars
|
||||
- worker
|
||||
|
||||
- name: deploy master db
|
||||
hosts: masterdb
|
||||
remote_user: root
|
||||
|
||||
roles:
|
||||
- db
|
||||
- masterdb
|
||||
|
||||
- name: deploy mysql and configure database
|
||||
hosts: slavedbs
|
||||
remote_user: root
|
||||
|
||||
roles:
|
||||
- db
|
||||
- slavedb
|
||||
|
||||
- name: deploy haproxy
|
||||
hosts: proxy
|
||||
remote_user: root
|
||||
|
||||
roles:
|
||||
- proxy
|
||||
- include: playbooks/galeradb.yml
|
||||
- include: playbooks/proxy.yml
|
||||
- include: playbooks/rails.yml
|
||||
|
||||
Reference in New Issue
Block a user