-
Notifications
You must be signed in to change notification settings - Fork 2
/
development.yml
43 lines (34 loc) · 1.17 KB
/
development.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
###
# development environment
#
# automates the provisioning of minimalistic production environment meant to
# run in a local or lab VM. The development environment is stripped of
# unecessary components such as banckups and awstats statistics.
#
# Assumes
# * the PCDROOT/inventory/development.hosts is used
# * a VM is running as "debian.dev" with a /shared directory pointing to your
# development folder.
#
# Visiting http://debian.dev/ will bring up a directory listing of the /shared folder
# + NOTE apache's autoindex module is enabled (via development.yml in group_vars)
#
###
# provision development system(s)
- { include: pcd_system.yml }
# configure development system(s) as a webserver
- name: "webserver configuration"
hosts: webservers
remote_user: root
roles:
- {role: pcd-common, tags: ['prepare','configure']}
- pcd-services/mysql
- pcd-services/apache
# deploy development website
- name: "deploy development site"
hosts: webservers
remote_user: root
roles:
- {role: pcd-common, tags: ['prepare','configure','deploy']}
- {role: pcd-sites/apache_site, site_name: "debian.dev", site_org: "development" }