blob: d3980d15a4afe2356a5f7c950ffe2a8fef27bf54 [file] [log] [blame]
disc5298382016-11-23 16:03:33 +02001# Install support services
2- description: Install keepalived on primary controller
3 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' state.sls
4 keepalived
5 node_name: cfg01.mk22-qa-lab01.local
6 retry: {count: 3, delay: 5}
7 skip_fail: true
8- description: Install keepalived on other controllers
9 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls
10 keepalived -b 1
11 node_name: cfg01.mk22-qa-lab01.local
12 retry: {count: 10, delay: 10}
13 skip_fail: true
14- description: Check the VIP
15 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run
16 'ip a | grep 172.16.10.254' | grep -B1 172.16.10.254
17 node_name: cfg01.mk22-qa-lab01.local
18 retry: {count: 3, delay: 5}
19 skip_fail: false
20
21- description: Install keepalived on primary database server
22 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'dbs01*' state.sls
23 keepalived
24 node_name: cfg01.mk22-qa-lab01.local
25 retry: {count: 3, delay: 5}
26 skip_fail: true
27- description: Install keepalived on other database servers
28 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'dbs*' state.sls
29 keepalived -b 1
30 node_name: cfg01.mk22-qa-lab01.local
31 retry: {count: 10, delay: 10}
32 skip_fail: true
33- description: Check the database VIP
34 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'dbs*' cmd.run
35 'ip a | grep 172.16.10.252' | grep -B1 172.16.10.252
36 node_name: cfg01.mk22-qa-lab01.local
37 retry: {count: 3, delay: 5}
38 skip_fail: false
39
40
41- description: Install glusterfs on all controllers
42 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls
43 glusterfs.server.service
44 node_name: cfg01.mk22-qa-lab01.local
45 retry: {count: 3, delay: 5}
46 skip_fail: false
47- description: Setup glusterfs on primary controller
48 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' state.sls
49 glusterfs.server.setup
50 node_name: cfg01.mk22-qa-lab01.local
51 retry: {count: 3, delay: 5}
52 skip_fail: false
53- description: Setup glusterfs on other controllers
54 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls
55 glusterfs.server.setup -b 1
56 node_name: cfg01.mk22-qa-lab01.local
57 retry: {count: 3, delay: 5}
58 skip_fail: false
59- description: Check the gluster status
60 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
61 'gluster peer status; gluster volume status'
62 node_name: cfg01.mk22-qa-lab01.local
63 retry: {count: 3, delay: 5}
64 skip_fail: false
65- description: Install RabbitMQ on all database servers
66 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'dbs*' state.sls
67 rabbitmq
68 node_name: cfg01.mk22-qa-lab01.local
69 retry: {count: 3, delay: 5}
70 skip_fail: false
71- description: Check the rabbitmq status
72 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'dbs*' cmd.run
73 'rabbitmqctl cluster_status'
74 node_name: cfg01.mk22-qa-lab01.local
75 retry: {count: 3, delay: 5}
76 skip_fail: false
77- description: '*Workaround* Update salt-formula-galera on config node to the latest
78 version'
79 cmd: apt-get -y --force-yes install salt-formula-galera
80 node_name: cfg01.mk22-qa-lab01.local
81 retry: {count: 3, delay: 5}
82 skip_fail: false
83- description: Install Galera on first dbs01 server
84 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'dbs01*' state.sls
85 galera
86 node_name: cfg01.mk22-qa-lab01.local
87 retry: {count: 3, delay: 5}
88 skip_fail: false
89- description: Install Galera on other dbs* servers
90 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'dbs*' state.sls
91 galera
92 node_name: cfg01.mk22-qa-lab01.local
93 retry: {count: 3, delay: 5}
94 skip_fail: false
95- description: Check mysql status
96 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' mysql.status | grep -A1 wsrep_incoming_addresses
97 node_name: cfg01.mk22-qa-lab01.local
98 retry: {count: 3, delay: 5}
99 skip_fail: true
100- description: Install haproxy on all controllers
101 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls
102 haproxy
103 node_name: cfg01.mk22-qa-lab01.local
104 retry: {count: 3, delay: 5}
105 skip_fail: false
106- description: Check haproxy status on controllers
107 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' service.status
108 haproxy
109 node_name: cfg01.mk22-qa-lab01.local
110 retry: {count: 3, delay: 5}
111 skip_fail: false
112- description: Install haproxy on all database servers
113 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'dbs*' state.sls
114 haproxy
115 node_name: cfg01.mk22-qa-lab01.local
116 retry: {count: 3, delay: 5}
117 skip_fail: false
118- description: Check haproxy status on database servers
119 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'dbs*' service.status
120 haproxy
121 node_name: cfg01.mk22-qa-lab01.local
122 retry: {count: 3, delay: 5}
123 skip_fail: false
124- description: Install memcached on all controllers
125 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls
126 memcached
127 node_name: cfg01.mk22-qa-lab01.local
128 retry: {count: 3, delay: 5}
129 skip_fail: false