Dennis Dmitriev | 2a13a13 | 2016-11-04 00:56:23 +0200 | [diff] [blame] | 1 | # 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-lab-basic.local |
| 6 | retry: {count: 3, delay: 5} |
| 7 | skip_fail: false |
| 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-lab-basic.local |
| 12 | retry: {count: 3, delay: 5} |
| 13 | skip_fail: false |
| 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-lab-basic.local |
| 18 | retry: {count: 3, delay: 5} |
| 19 | skip_fail: false |
| 20 | - description: Install glusterfs on all controllers |
| 21 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 22 | glusterfs.server.service |
| 23 | node_name: cfg01.mk22-lab-basic.local |
| 24 | retry: {count: 3, delay: 5} |
| 25 | skip_fail: false |
| 26 | - description: Setup glusterfs on primary controller |
| 27 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' state.sls |
| 28 | glusterfs.server.setup |
| 29 | node_name: cfg01.mk22-lab-basic.local |
| 30 | retry: {count: 3, delay: 5} |
| 31 | skip_fail: false |
| 32 | - description: Setup glusterfs on other controllers |
| 33 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 34 | glusterfs.server.setup -b 1 |
| 35 | node_name: cfg01.mk22-lab-basic.local |
| 36 | retry: {count: 3, delay: 5} |
| 37 | skip_fail: false |
| 38 | - description: Check the gluster status |
| 39 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 40 | 'gluster peer status; gluster volume status' |
| 41 | node_name: cfg01.mk22-lab-basic.local |
| 42 | retry: {count: 3, delay: 5} |
| 43 | skip_fail: false |
| 44 | - description: Install RabbitMQ on all controllers |
| 45 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 46 | rabbitmq |
| 47 | node_name: cfg01.mk22-lab-basic.local |
| 48 | retry: {count: 3, delay: 5} |
| 49 | skip_fail: false |
| 50 | - description: Check the rabbitmq status |
| 51 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run |
| 52 | 'rabbitmqctl cluster_status' |
| 53 | node_name: cfg01.mk22-lab-basic.local |
| 54 | retry: {count: 3, delay: 5} |
| 55 | skip_fail: false |
| 56 | - description: '*Workaround* Update salt-formula-galera on config node to the latest |
| 57 | version' |
| 58 | cmd: apt-get -y --force-yes install salt-formula-galera |
| 59 | node_name: cfg01.mk22-lab-basic.local |
| 60 | retry: {count: 3, delay: 5} |
| 61 | skip_fail: false |
| 62 | - description: Install Galera on primary controller |
| 63 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' state.sls |
| 64 | galera |
| 65 | node_name: cfg01.mk22-lab-basic.local |
| 66 | retry: {count: 3, delay: 5} |
| 67 | skip_fail: false |
| 68 | - description: Install Galera on other controllers |
| 69 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 70 | galera |
| 71 | node_name: cfg01.mk22-lab-basic.local |
| 72 | retry: {count: 3, delay: 5} |
| 73 | skip_fail: false |
| 74 | - description: Check mysql status |
| 75 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' mysql.status | grep -A1 wsrep_incoming_addresses |
| 76 | node_name: cfg01.mk22-lab-basic.local |
| 77 | retry: {count: 3, delay: 5} |
| 78 | skip_fail: true |
| 79 | - description: Install haproxy on all controllers |
| 80 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 81 | haproxy |
| 82 | node_name: cfg01.mk22-lab-basic.local |
| 83 | retry: {count: 3, delay: 5} |
| 84 | skip_fail: false |
| 85 | - description: Check haproxy status |
| 86 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' service.status |
| 87 | haproxy |
| 88 | node_name: cfg01.mk22-lab-basic.local |
| 89 | retry: {count: 3, delay: 5} |
| 90 | skip_fail: false |
| 91 | - description: Install memcached on all controllers |
| 92 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 93 | memcached |
| 94 | node_name: cfg01.mk22-lab-basic.local |
| 95 | retry: {count: 3, delay: 5} |
| 96 | skip_fail: false |