blob: 96d38d6d31f33b640e2621f0b49005457527fcff [file] [log] [blame]
disc5298382016-11-23 16:03:33 +02001# Install support services
disf0924fb2016-12-03 04:01:12 +02002
3- description: Install keepalived
4 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
5 -C 'I@keepalived:cluster' state.sls keepalived -b 1
disc5298382016-11-23 16:03:33 +02006 node_name: cfg01.mk22-qa-lab01.local
7 retry: {count: 10, delay: 10}
8 skip_fail: true
disf0924fb2016-12-03 04:01:12 +02009
disc5298382016-11-23 16:03:33 +020010- description: Check the VIP
disf0924fb2016-12-03 04:01:12 +020011 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
12 -C 'I@keepalived:cluster' cmd.run 'ip a | grep 172.16.10.2' | grep -B1 172.16.10.2
disc5298382016-11-23 16:03:33 +020013 node_name: cfg01.mk22-qa-lab01.local
14 retry: {count: 3, delay: 5}
15 skip_fail: false
16
17
disf0924fb2016-12-03 04:01:12 +020018- description: Install glusterfs
19 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
20 -C 'I@glusterfs:server' state.sls glusterfs.server.service
disc5298382016-11-23 16:03:33 +020021 node_name: cfg01.mk22-qa-lab01.local
22 retry: {count: 3, delay: 5}
23 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020024
disc5298382016-11-23 16:03:33 +020025- description: Setup glusterfs on primary controller
disf0924fb2016-12-03 04:01:12 +020026 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
27 -C 'I@glusterfs:server' state.sls glusterfs.server.setup -b 1
disc5298382016-11-23 16:03:33 +020028 node_name: cfg01.mk22-qa-lab01.local
29 retry: {count: 3, delay: 5}
30 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020031
disc5298382016-11-23 16:03:33 +020032- description: Check the gluster status
disf0924fb2016-12-03 04:01:12 +020033 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
34 -C 'I@glusterfs:server' cmd.run 'gluster peer status; gluster volume status' -b 1
disc5298382016-11-23 16:03:33 +020035 node_name: cfg01.mk22-qa-lab01.local
36 retry: {count: 3, delay: 5}
37 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020038
39
40- description: Install RabbitMQ
41 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
42 -C 'I@rabbitmq:server' state.sls rabbitmq
disc5298382016-11-23 16:03:33 +020043 node_name: cfg01.mk22-qa-lab01.local
44 retry: {count: 3, delay: 5}
45 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020046
disc5298382016-11-23 16:03:33 +020047- description: Check the rabbitmq status
disf0924fb2016-12-03 04:01:12 +020048 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
49 -C 'I@rabbitmq:server' cmd.run 'rabbitmqctl cluster_status'
disc5298382016-11-23 16:03:33 +020050 node_name: cfg01.mk22-qa-lab01.local
51 retry: {count: 3, delay: 5}
52 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020053
54
disc5298382016-11-23 16:03:33 +020055- description: '*Workaround* Update salt-formula-galera on config node to the latest
56 version'
57 cmd: apt-get -y --force-yes install salt-formula-galera
58 node_name: cfg01.mk22-qa-lab01.local
59 retry: {count: 3, delay: 5}
60 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020061
62- description: Install Galera on first server
63 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
64 -C 'I@galera:master' state.sls galera
disc5298382016-11-23 16:03:33 +020065 node_name: cfg01.mk22-qa-lab01.local
66 retry: {count: 3, delay: 5}
67 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020068
69- description: Install Galera on other servers
70 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
71 -C 'I@galera:slave' state.sls galera
disc5298382016-11-23 16:03:33 +020072 node_name: cfg01.mk22-qa-lab01.local
73 retry: {count: 3, delay: 5}
74 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020075
disc5298382016-11-23 16:03:33 +020076- description: Check mysql status
disf0924fb2016-12-03 04:01:12 +020077 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
78 -C 'I@galera:*' mysql.status | grep -A1 -e "wsrep_incoming_addresses\|wsrep_cluster_size"
disc5298382016-11-23 16:03:33 +020079 node_name: cfg01.mk22-qa-lab01.local
80 retry: {count: 3, delay: 5}
81 skip_fail: true
disf0924fb2016-12-03 04:01:12 +020082
83
84- description: Install haproxy
85 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
86 -C 'I@haproxy:proxy' state.sls haproxy
disc5298382016-11-23 16:03:33 +020087 node_name: cfg01.mk22-qa-lab01.local
88 retry: {count: 3, delay: 5}
89 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020090
91- description: Check haproxy status
92 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
93 -C 'I@haproxy:proxy' service.status haproxy
disc5298382016-11-23 16:03:33 +020094 node_name: cfg01.mk22-qa-lab01.local
95 retry: {count: 3, delay: 5}
96 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020097
98- description: Restart rsyslog
99 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
100 -C 'I@haproxy:proxy' service.restart rsyslog
disc5298382016-11-23 16:03:33 +0200101 node_name: cfg01.mk22-qa-lab01.local
102 retry: {count: 3, delay: 5}
103 skip_fail: false
disf0924fb2016-12-03 04:01:12 +0200104
disc5298382016-11-23 16:03:33 +0200105- description: Install memcached on all controllers
disf0924fb2016-12-03 04:01:12 +0200106 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
107 -C 'I@memcached:server' state.sls memcached
disc5298382016-11-23 16:03:33 +0200108 node_name: cfg01.mk22-qa-lab01.local
109 retry: {count: 3, delay: 5}
110 skip_fail: false