-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-site.yml
56 lines (49 loc) · 1.1 KB
/
build-site.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
44
45
46
47
48
49
50
51
52
53
54
55
56
# This play will build the entire site, OpsCenter, Agents and 2 Clusters
- hosts: all
remote_user: "{{creds.remote_user}}"
become: true
roles:
- os-settings
- standard-packages
# Stage binaries on the OpsCenter host
# - hosts: opscenter
# remote_user: "{{creds.remote_user}}"
# become: true
# roles:
# - stage-binaries
# Configure DSE for configure clusters
- hosts: store
remote_user: "{{creds.remote_user}}"
become: true
roles:
- store-prep
- store-configure
- hosts: DC1,DC2
remote_user: "{{creds.remote_user}}"
become: true
roles:
- db-prep
- db-configure
# Download and configure OpsCenter
- hosts: opscenter
remote_user: "{{creds.remote_user}}"
become: true
roles:
- opscenter-prep
- opscenter-configure
# Finally Perform a rolling restart, seed nodes first
# and start the agents
- hosts: storeseeds,clusterseeds
remote_user: "{{creds.remote_user}}"
become: true
serial: 1
roles:
- rolling-restart
- agent-configure
- hosts: store,DC1,DC2
remote_user: "{{creds.remote_user}}"
become: true
serial: 1
roles:
- rolling-restart
- agent-configure