Tatyana Leontovich | c8b8ca2 | 2017-05-19 13:37:05 +0300 | [diff] [blame] | 1 | {% from 'virtual-mcp11-k8s-calico/underlay.yaml' import HOSTNAME_CFG01 with context %} |
Victor Ryzhenkin | 2a2cd8e | 2018-05-07 18:38:43 +0400 | [diff] [blame] | 2 | {% from 'virtual-mcp11-k8s-calico/salt.yaml' import ENVIRONMENT_MODEL_INVENTORY_NAME with context %} |
Tatyana Leontovich | c8b8ca2 | 2017-05-19 13:37:05 +0300 | [diff] [blame] | 3 | |
Tatyana Leontovich | e4a2850 | 2018-06-08 13:24:56 +0300 | [diff] [blame^] | 4 | |
| 5 | {% import 'shared-sl-tests.yaml' as SHARED_SL_TESTS with context %} |
| 6 | |
Tatyana Leontovich | c8b8ca2 | 2017-05-19 13:37:05 +0300 | [diff] [blame] | 7 | # Install docker swarm |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 8 | - description: Configure docker service |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 9 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm' state.sls docker.host |
Tatyana Leontovich | c8b8ca2 | 2017-05-19 13:37:05 +0300 | [diff] [blame] | 10 | node_name: {{ HOSTNAME_CFG01 }} |
| 11 | retry: {count: 1, delay: 10} |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 12 | skip_fail: false |
| 13 | |
| 14 | - description: Install docker swarm on master node |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 15 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm:role:master' state.sls docker.swarm |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 16 | node_name: {{ HOSTNAME_CFG01 }} |
| 17 | retry: {count: 1, delay: 10} |
| 18 | skip_fail: false |
| 19 | |
| 20 | - description: Send grains to the swarm slave nodes |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 21 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm' state.sls salt.minion.grains |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 22 | node_name: {{ HOSTNAME_CFG01 }} |
| 23 | retry: {count: 1, delay: 10} |
| 24 | skip_fail: false |
| 25 | |
| 26 | - description: Update mine |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 27 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm' mine.update |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 28 | node_name: {{ HOSTNAME_CFG01 }} |
| 29 | retry: {count: 1, delay: 10} |
| 30 | skip_fail: false |
| 31 | |
| 32 | - description: Refresh modules |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 33 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm' saltutil.refresh_modules; sleep 5; |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 34 | node_name: {{ HOSTNAME_CFG01 }} |
| 35 | retry: {count: 1, delay: 10} |
| 36 | skip_fail: false |
| 37 | |
Tatyana Leontovich | 2fec09a | 2017-08-22 13:52:11 +0300 | [diff] [blame] | 38 | - description: Rerun swarm on slaves to proper token population |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 39 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm:role:master' state.sls docker.swarm |
Tatyana Leontovich | 2fec09a | 2017-08-22 13:52:11 +0300 | [diff] [blame] | 40 | node_name: {{ HOSTNAME_CFG01 }} |
| 41 | retry: {count: 1, delay: 10} |
| 42 | skip_fail: false |
| 43 | |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 44 | - description: Configure slave nodes |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 45 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm:role:manager' state.sls docker.swarm -b 1 |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 46 | node_name: {{ HOSTNAME_CFG01 }} |
| 47 | retry: {count: 1, delay: 10} |
| 48 | skip_fail: false |
| 49 | |
| 50 | - description: List registered Docker swarm nodes |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 51 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm:role:master' cmd.run 'docker node ls' |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 52 | node_name: {{ HOSTNAME_CFG01 }} |
| 53 | retry: {count: 1, delay: 10} |
| 54 | skip_fail: false |
Tatyana Leontovich | c8b8ca2 | 2017-05-19 13:37:05 +0300 | [diff] [blame] | 55 | |
Victor Ryzhenkin | 2a2cd8e | 2018-05-07 18:38:43 +0400 | [diff] [blame] | 56 | - description: Install keepalived on mon nodes |
| 57 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 58 | -C 'mon*' state.sls keepalived |
| 59 | node_name: {{ HOSTNAME_CFG01 }} |
| 60 | retry: {count: 1, delay: 10} |
| 61 | skip_fail: false |
| 62 | |
| 63 | - description: Check the VIP on mon nodes |
| 64 | cmd: | |
| 65 | SL_VIP=`salt-call --out=newline_values_only pillar.get _param:stacklight_monitor_address`; |
| 66 | echo "_param:stacklight_monitor_address (vip): ${SL_VIP}"; |
| 67 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'mon*' cmd.run "ip a | grep ${SL_VIP}" | grep -B1 ${SL_VIP} |
| 68 | node_name: {{ HOSTNAME_CFG01 }} |
| 69 | retry: {count: 1, delay: 5} |
| 70 | skip_fail: false |
| 71 | |
Tatyana Leontovich | c8b8ca2 | 2017-05-19 13:37:05 +0300 | [diff] [blame] | 72 | # Install slv2 infra |
Dennis Dmitriev | 371ba5b | 2018-05-31 12:00:38 +0000 | [diff] [blame] | 73 | # Install MongoDB for alerta |
Tatyana Leontovich | 48a6af9 | 2018-06-04 15:16:20 +0300 | [diff] [blame] | 74 | - description: Install Mongo if target matches |
| 75 | cmd: | |
| 76 | if salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@mongodb:server' match.pillar 'mongodb:server' ; then |
Dmitry Kalashnik | 2fffc4a | 2018-06-07 16:34:06 +0400 | [diff] [blame] | 77 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@mongodb:server' state.sls mongodb.server |
Tatyana Leontovich | 48a6af9 | 2018-06-04 15:16:20 +0300 | [diff] [blame] | 78 | fi |
Dennis Dmitriev | 371ba5b | 2018-05-31 12:00:38 +0000 | [diff] [blame] | 79 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 48a6af9 | 2018-06-04 15:16:20 +0300 | [diff] [blame] | 80 | retry: {count: 1, delay: 10} |
| 81 | skip_fail: false |
| 82 | |
Dmitry Kalashnik | 2fffc4a | 2018-06-07 16:34:06 +0400 | [diff] [blame] | 83 | # Create MongoDB cluster |
| 84 | - description: Install Mongo if target matches |
Tatyana Leontovich | 48a6af9 | 2018-06-04 15:16:20 +0300 | [diff] [blame] | 85 | cmd: | |
Dmitry Kalashnik | 2fffc4a | 2018-06-07 16:34:06 +0400 | [diff] [blame] | 86 | if salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@mongodb:server' match.pillar 'mongodb:server' ; then |
| 87 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@mongodb:server' state.sls mongodb.cluster |
Tatyana Leontovich | 48a6af9 | 2018-06-04 15:16:20 +0300 | [diff] [blame] | 88 | fi |
| 89 | node_name: {{ HOSTNAME_CFG01 }} |
Dmitry Kalashnik | 2fffc4a | 2018-06-07 16:34:06 +0400 | [diff] [blame] | 90 | retry: {count: 5, delay: 20} |
Victor Ryzhenkin | 2a2cd8e | 2018-05-07 18:38:43 +0400 | [diff] [blame] | 91 | skip_fail: false |
| 92 | |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 93 | - description: Install telegraf |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 94 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@telegraf:agent or I@telegraf:remote_agent' state.sls telegraf |
Tatyana Leontovich | f00b234 | 2017-07-04 18:26:25 +0300 | [diff] [blame] | 95 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 2fec09a | 2017-08-22 13:52:11 +0300 | [diff] [blame] | 96 | retry: {count: 2, delay: 10} |
| 97 | skip_fail: false |
| 98 | |
Dennis Dmitriev | cc6e9b5 | 2017-09-01 11:27:58 +0300 | [diff] [blame] | 99 | - description: Configure Prometheus exporters, if pillar 'prometheus:exporters' exists on any server |
| 100 | cmd: | |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 101 | if salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@prometheus:exporters' match.pillar 'prometheus:exporters' ; then |
| 102 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@prometheus:exporters' state.sls prometheus |
Dennis Dmitriev | cc6e9b5 | 2017-09-01 11:27:58 +0300 | [diff] [blame] | 103 | fi |
Tatyana Leontovich | 2fec09a | 2017-08-22 13:52:11 +0300 | [diff] [blame] | 104 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | f00b234 | 2017-07-04 18:26:25 +0300 | [diff] [blame] | 105 | retry: {count: 1, delay: 10} |
| 106 | skip_fail: false |
| 107 | |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 108 | - description: Install elasticsearch server |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 109 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@elasticsearch:server' state.sls elasticsearch.server -b 1 |
Tatyana Leontovich | c8b8ca2 | 2017-05-19 13:37:05 +0300 | [diff] [blame] | 110 | node_name: {{ HOSTNAME_CFG01 }} |
| 111 | retry: {count: 1, delay: 10} |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 112 | skip_fail: false |
| 113 | |
| 114 | - description: Install kibana server |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 115 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@kibana:server' state.sls kibana.server -b 1 |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 116 | node_name: {{ HOSTNAME_CFG01 }} |
| 117 | retry: {count: 1, delay: 10} |
| 118 | skip_fail: false |
| 119 | |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 120 | - description: Install elasticsearch client |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 121 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@elasticsearch:client' state.sls elasticsearch.client |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 122 | node_name: {{ HOSTNAME_CFG01 }} |
Dennis Dmitriev | 4ad63e4 | 2018-05-01 05:18:54 +0300 | [diff] [blame] | 123 | retry: {count: 2, delay: 30} |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 124 | skip_fail: false |
| 125 | |
| 126 | - description: Install kibana client |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 127 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@kibana:client' state.sls kibana.client |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 128 | node_name: {{ HOSTNAME_CFG01 }} |
| 129 | retry: {count: 1, delay: 10} |
| 130 | skip_fail: false |
| 131 | |
Tatyana Leontovich | 3645d2b | 2017-06-13 16:51:23 +0300 | [diff] [blame] | 132 | - description: Check influix db |
| 133 | cmd: | |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 134 | INFLUXDB_SERVICE=`salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@influxdb:server' test.ping 1>/dev/null 2>&1 && echo true`; |
Tatyana Leontovich | 3645d2b | 2017-06-13 16:51:23 +0300 | [diff] [blame] | 135 | echo "Influxdb service presence: ${INFLUXDB_SERVICE}"; |
| 136 | if [[ "$INFLUXDB_SERVICE" == "true" ]]; then |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 137 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@influxdb:server' state.sls influxdb |
Tatyana Leontovich | 3645d2b | 2017-06-13 16:51:23 +0300 | [diff] [blame] | 138 | fi |
| 139 | node_name: {{ HOSTNAME_CFG01 }} |
| 140 | retry: {count: 1, delay: 5} |
| 141 | skip_fail: true |
| 142 | |
Victor Ryzhenkin | 2a2cd8e | 2018-05-07 18:38:43 +0400 | [diff] [blame] | 143 | # Install Prometheus LTS(optional if set in model) |
| 144 | - description: Prometheus LTS(optional if set in model) |
| 145 | cmd: | |
| 146 | PROMETHEUS_SERVICE=`salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@prometheus:relay' test.ping 1>/dev/null 2>&1 && echo true`; |
| 147 | echo "PROMETHEUS rely service presence: ${PROMETHEUS_SERVICE}"; |
| 148 | if [[ "$PROMETHEUS_SERVICE" == "true" ]]; then |
| 149 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@prometheus:relay' state.sls prometheus |
| 150 | fi |
| 151 | node_name: {{ HOSTNAME_CFG01 }} |
| 152 | retry: {count: 1, delay: 5} |
| 153 | skip_fail: true |
| 154 | |
| 155 | # Install service for the log collection |
| 156 | - description: Configure fluentd |
| 157 | cmd: | |
| 158 | FLUENTD_SERVICE=`salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@fluentd:agent' test.ping 1>/dev/null 2>&1 && echo true`; |
| 159 | echo "Fluentd service presence: ${FLUENTD_SERVICE}"; |
| 160 | if [[ "$FLUENTD_SERVICE" == "true" ]]; then |
| 161 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@fluentd:agent' state.sls fluentd |
| 162 | else |
| 163 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@heka:log_collector' state.sls heka.log_collector |
| 164 | fi |
| 165 | node_name: {{ HOSTNAME_CFG01 }} |
| 166 | retry: {count: 1, delay: 10} |
| 167 | skip_fail: false |
| 168 | |
| 169 | #Install heka ceilometer collector |
| 170 | - description: Install heka ceilometer if they exists |
| 171 | cmd: | |
| 172 | CEILO=`salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@heka:ceilometer_collector:enabled' test.ping 1>/dev/null 2>&1 && echo true`; |
| 173 | echo "Ceilometer service presence: ${CEILO}"; |
| 174 | if [[ "$CEILO" == "true" ]]; then |
| 175 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@heka:ceilometer_collector:enabled' state.sls heka.ceilometer_collector; |
| 176 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@heka:ceilometer_collector:enabled' service.restart ceilometer_collector |
| 177 | fi |
| 178 | node_name: {{ HOSTNAME_CFG01 }} |
| 179 | retry: {count: 1, delay: 10} |
| 180 | skip_fail: false |
| 181 | |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 182 | # Collect grains needed to configure the services |
| 183 | |
| 184 | - description: Get grains |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 185 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@salt:minion' state.sls salt.minion.grains |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 186 | node_name: {{ HOSTNAME_CFG01 }} |
| 187 | retry: {count: 1, delay: 10} |
| 188 | skip_fail: false |
| 189 | |
| 190 | - description: Sync modules |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 191 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@salt:minion' saltutil.refresh_modules |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 192 | node_name: {{ HOSTNAME_CFG01 }} |
| 193 | retry: {count: 1, delay: 10} |
| 194 | skip_fail: false |
| 195 | |
| 196 | - description: Update mine |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 197 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@salt:minion' mine.update; sleep 5; |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 198 | node_name: {{ HOSTNAME_CFG01 }} |
Victor Ryzhenkin | 2a2cd8e | 2018-05-07 18:38:43 +0400 | [diff] [blame] | 199 | retry: {count: 5, delay: 15} |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 200 | skip_fail: false |
| 201 | |
| 202 | # Configure the services running in Docker Swarm |
Victor Ryzhenkin | 2a2cd8e | 2018-05-07 18:38:43 +0400 | [diff] [blame] | 203 | - description: Configure prometheus in docker swarm |
| 204 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm and I@prometheus:server' state.sls prometheus |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 205 | node_name: {{ HOSTNAME_CFG01 }} |
| 206 | retry: {count: 1, delay: 10} |
| 207 | skip_fail: false |
| 208 | |
Dmitry Kalashnik | 2fffc4a | 2018-06-07 16:34:06 +0400 | [diff] [blame] | 209 | #Launch containers |
| 210 | - description: launch prometheus containers |
| 211 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm:role:master and I@prometheus:server' state.sls docker.client |
| 212 | node_name: {{ HOSTNAME_CFG01 }} |
| 213 | retry: {count: 2, delay: 10} |
| 214 | skip_fail: false |
| 215 | |
| 216 | - description: Check docker ps |
| 217 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm and I@prometheus:server' cmd.run "docker ps" |
| 218 | node_name: {{ HOSTNAME_CFG01 }} |
| 219 | retry: {count: 2, delay: 10} |
| 220 | skip_fail: false |
| 221 | |
Victor Ryzhenkin | 2a2cd8e | 2018-05-07 18:38:43 +0400 | [diff] [blame] | 222 | ### |
| 223 | # From pipeline-library: |
| 224 | # if (!common.checkContains('STACK_INSTALL', 'k8s')) { |
| 225 | # salt.enforceState(master, 'I@docker:swarm and I@prometheus:server', 'heka.remote_collector', true, false) |
| 226 | # } |
| 227 | |
| 228 | #- description: Configure Remote Collector in Docker Swarm for Openstack deployments |
| 229 | # cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm and I@prometheus:server' state.sls heka.remote_collector |
| 230 | # node_name: {{ HOSTNAME_CFG01 }} |
| 231 | # retry: {count: 1, delay: 10} |
| 232 | # skip_fail: false |
| 233 | ### |
| 234 | |
| 235 | - description: Install sphinx |
| 236 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@sphinx:server' state.sls sphinx |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 237 | node_name: {{ HOSTNAME_CFG01 }} |
| 238 | retry: {count: 1, delay: 10} |
| 239 | skip_fail: false |
| 240 | |
Victor Ryzhenkin | 2a2cd8e | 2018-05-07 18:38:43 +0400 | [diff] [blame] | 241 | |
| 242 | #- description: Install prometheus alertmanager |
| 243 | # cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm' state.sls prometheus,heka.remote_collector -b 1 |
| 244 | # node_name: {{ HOSTNAME_CFG01 }} |
| 245 | # retry: {count: 1, delay: 10} |
| 246 | # skip_fail: false |
| 247 | |
| 248 | #- description: run docker state |
| 249 | # cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm:role:master' state.sls docker |
| 250 | # node_name: {{ HOSTNAME_CFG01 }} |
| 251 | # retry: {count: 1, delay: 10} |
| 252 | # skip_fail: false |
| 253 | # |
| 254 | #- description: docker ps |
| 255 | # cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@docker:swarm' dockerng.ps |
| 256 | # node_name: {{ HOSTNAME_CFG01 }} |
| 257 | # retry: {count: 1, delay: 10} |
| 258 | # skip_fail: false |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 259 | |
| 260 | - description: Configure Grafana dashboards and datasources |
Dennis Dmitriev | 281221b | 2018-02-13 16:40:48 +0200 | [diff] [blame] | 261 | cmd: sleep 30; salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@grafana:client' state.sls grafana.client |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 262 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 572f749 | 2017-07-14 13:36:11 +0300 | [diff] [blame] | 263 | retry: {count: 2, delay: 10} |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 264 | skip_fail: false |
Tatyana Leontovich | ea45064 | 2017-07-11 18:56:11 +0300 | [diff] [blame] | 265 | |
| 266 | - description: Run salt minion to create cert files |
| 267 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False "*" state.sls salt.minion |
| 268 | node_name: {{ HOSTNAME_CFG01 }} |
| 269 | retry: {count: 1, delay: 10} |
| 270 | skip_fail: false |
| 271 | |
Tatyana Leontovich | e4a2850 | 2018-06-08 13:24:56 +0300 | [diff] [blame^] | 272 | |
| 273 | {{ SHARED_SL_TESTS.MACRO_CLONE_SL_TESTS() }} |
| 274 | {{ SHARED_SL_TESTS.MACRO_CONFIGURE_TESTS() }} |