blob: 430c6f2a85103103e4ba5e19199c908004e0e01f [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
disf0924fb2016-12-03 04:01:12 +020055- description: Install Galera on first server
56 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
57 -C 'I@galera:master' state.sls galera
disc5298382016-11-23 16:03:33 +020058 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 other servers
63 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
64 -C 'I@galera:slave' 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
disc5298382016-11-23 16:03:33 +020069- description: Check mysql status
disf0924fb2016-12-03 04:01:12 +020070 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
71 -C 'I@galera:*' mysql.status | grep -A1 -e "wsrep_incoming_addresses\|wsrep_cluster_size"
disc5298382016-11-23 16:03:33 +020072 node_name: cfg01.mk22-qa-lab01.local
73 retry: {count: 3, delay: 5}
74 skip_fail: true
disf0924fb2016-12-03 04:01:12 +020075
76
77- description: Install haproxy
78 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
79 -C 'I@haproxy:proxy' state.sls haproxy
disc5298382016-11-23 16:03:33 +020080 node_name: cfg01.mk22-qa-lab01.local
81 retry: {count: 3, delay: 5}
82 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020083
84- description: Check haproxy status
85 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
86 -C 'I@haproxy:proxy' service.status 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: Restart rsyslog
92 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
93 -C 'I@haproxy:proxy' service.restart rsyslog
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
disc5298382016-11-23 16:03:33 +020098- description: Install memcached on all controllers
disf0924fb2016-12-03 04:01:12 +020099 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
100 -C 'I@memcached:server' state.sls memcached
disc5298382016-11-23 16:03:33 +0200101 node_name: cfg01.mk22-qa-lab01.local
102 retry: {count: 3, delay: 5}
103 skip_fail: false