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 %} |
| 2 | {% from 'virtual-mcp11-k8s-calico/underlay.yaml' import REPOSITORY_SUITE with context %} |
| 3 | |
| 4 | {% set SALT_MODELS_REPOSITORY = os_env('SALT_MODELS_REPOSITORY','https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab') %} |
Valentyn Yakovlev | 08acf9f | 2017-06-07 14:02:36 +0300 | [diff] [blame] | 5 | {% set SALT_MODELS_BRANCH = os_env('SALT_MODELS_BRANCH','master') %} |
Tatyana Leontovich | c8b8ca2 | 2017-05-19 13:37:05 +0300 | [diff] [blame] | 6 | {% set SALT_MODELS_COMMIT = os_env('SALT_MODELS_COMMIT','master') %} |
| 7 | |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 8 | # Reference to a patch that should be applied to the model if required, for example: export SALT_MODELS_REF_CHANGE=refs/changes/19/7219/12 |
| 9 | {% set SALT_MODELS_REF_CHANGE = os_env('SALT_MODELS_REF_CHANGE', '') %} |
| 10 | |
Tatyana Leontovich | c8b8ca2 | 2017-05-19 13:37:05 +0300 | [diff] [blame] | 11 | # Address pools for reclass cluster model are taken in the following order: |
| 12 | # 1. environment variables, |
| 13 | # 2. config.underlay.address_pools based on fuel-devops address pools |
| 14 | # (see generated '.ini' file after underlay is created), |
| 15 | # 3. defaults |
| 16 | {% set address_pools = config.underlay.address_pools %} |
| 17 | {% set IPV4_NET_ADMIN = os_env('IPV4_NET_ADMIN', address_pools.get('admin-pool01', '172.16.10.0/24')) %} |
| 18 | {% set IPV4_NET_CONTROL = os_env('IPV4_NET_CONTROL', address_pools.get('private-pool01', '192.168.10.0/24')) %} |
| 19 | |
| 20 | {% set IPV4_NET_ADMIN_PREFIX = '.'.join(IPV4_NET_ADMIN.split('.')[0:3]) %} |
| 21 | {% set IPV4_NET_CONTROL_PREFIX = '.'.join(IPV4_NET_CONTROL.split('.')[0:3]) %} |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 22 | |
| 23 | # Install salt to the config node |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 24 | - description: Installing salt master on cfg01 |
| 25 | cmd: apt-get install -y reclass git; apt-get install -y salt-master |
| 26 | node_name: {{ HOSTNAME_CFG01 }} |
| 27 | retry: {count: 1, delay: 1} |
| 28 | skip_fail: false |
| 29 | |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 30 | - description: Configure salt-master on cfg01 |
| 31 | cmd: | |
| 32 | cat << 'EOF' >> /etc/salt/master.d/master.conf |
| 33 | file_roots: |
| 34 | base: |
| 35 | - /usr/share/salt-formulas/env |
| 36 | pillar_opts: False |
| 37 | open_mode: True |
| 38 | reclass: &reclass |
| 39 | storage_type: yaml_fs |
| 40 | inventory_base_uri: /srv/salt/reclass |
| 41 | ext_pillar: |
| 42 | - reclass: *reclass |
| 43 | master_tops: |
| 44 | reclass: *reclass |
| 45 | EOF |
| 46 | node_name: {{ HOSTNAME_CFG01 }} |
| 47 | retry: {count: 1, delay: 1} |
| 48 | skip_fail: false |
| 49 | |
| 50 | - description: Configure GIT settings and certificates |
| 51 | cmd: touch /root/.git_trusted_certs.pem; |
Matthew Mosesohn | d0632b8 | 2017-05-30 17:51:30 +0300 | [diff] [blame] | 52 | for server in github.com; do |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 53 | openssl s_client -showcerts -connect $server:443 </dev/null |
| 54 | | openssl x509 -outform PEM |
| 55 | >> /root/.git_trusted_certs.pem; |
| 56 | done; |
| 57 | HOME=/root git config --global http.sslCAInfo /root/.git_trusted_certs.pem; |
| 58 | HOME=/root git config --global user.email "tcp-qa@example.com"; |
| 59 | HOME=/root git config --global user.name "TCP QA"; |
| 60 | node_name: {{ HOSTNAME_CFG01 }} |
| 61 | retry: {count: 1, delay: 1} |
| 62 | skip_fail: false |
| 63 | |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 64 | - description: Clone reclass models with submodules |
Tatyana Leontovich | cf37cb2 | 2017-05-19 14:59:38 +0300 | [diff] [blame] | 65 | cmd: | |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 66 | ssh-keyscan -H github.com >> ~/.ssh/known_hosts; |
Valentyn Yakovlev | 08acf9f | 2017-06-07 14:02:36 +0300 | [diff] [blame] | 67 | git clone -b {{ SALT_MODELS_BRANCH }} --recurse-submodules {{ SALT_MODELS_REPOSITORY }} /srv/salt/reclass; |
| 68 | pushd /srv/salt/reclass && git checkout {{ SALT_MODELS_COMMIT }} && popd; |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 69 | {%- if SALT_MODELS_REF_CHANGE != '' %} |
| 70 | pushd /srv/salt/reclass && git fetch {{ SALT_MODELS_REPOSITORY }} {{ SALT_MODELS_REF_CHANGE }} && git checkout FETCH_HEAD && popd; |
| 71 | {%- endif %} |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 72 | mkdir -p /srv/salt/reclass/classes/service; |
Tatyana Leontovich | c8b8ca2 | 2017-05-19 13:37:05 +0300 | [diff] [blame] | 73 | |
| 74 | # Replace firstly to an intermediate value to avoid intersection between |
| 75 | # already replaced and replacing networks. |
| 76 | # For example, if generated IPV4_NET_ADMIN_PREFIX=10.16.0 , then there is a risk of replacing twice: |
| 77 | # 192.168.10 -> 10.16.0 (generated network for admin) |
| 78 | # 10.16.0 -> <external network> |
| 79 | # So let's replace constant networks to the keywords, and then keywords to the desired networks. |
Tatyana Leontovich | 573584a | 2017-05-19 14:54:00 +0300 | [diff] [blame] | 80 | find /srv/salt/reclass/ -type f -exec sed -i 's/192\.168\.10\./==IPV4_NET_ADMIN_PREFIX==/g' {} + |
| 81 | find /srv/salt/reclass/ -type f -exec sed -i 's/172\.16\.10\./==IPV4_NET_CONTROL_PREFIX==/g' {} + |
Tatyana Leontovich | c8b8ca2 | 2017-05-19 13:37:05 +0300 | [diff] [blame] | 82 | |
| 83 | find /srv/salt/reclass/ -type f -exec sed -i 's/==IPV4_NET_ADMIN_PREFIX==/{{ IPV4_NET_ADMIN_PREFIX }}./g' {} + |
| 84 | find /srv/salt/reclass/ -type f -exec sed -i 's/==IPV4_NET_CONTROL_PREFIX==/{{ IPV4_NET_CONTROL_PREFIX }}./g' {} + |
| 85 | |
| 86 | find /srv/salt/reclass/ -type f -exec sed -i 's/apt_mk_version:.*/apt_mk_version: {{ REPOSITORY_SUITE }}/g' {} + |
| 87 | |
| 88 | # Disable checkouting the model from remote repository |
| 89 | cat << 'EOF' >> /srv/salt/reclass/nodes/{{ HOSTNAME_CFG01 }}.yml |
| 90 | # local storage |
Sergii Golovatiuk | 01e3a2d | 2017-08-02 11:28:26 +0200 | [diff] [blame] | 91 | reclass: |
| 92 | storage: |
| 93 | data_source: |
| 94 | engine: local |
Tatyana Leontovich | c8b8ca2 | 2017-05-19 13:37:05 +0300 | [diff] [blame] | 95 | EOF |
Tatyana Leontovich | cf37cb2 | 2017-05-19 14:59:38 +0300 | [diff] [blame] | 96 | |
| 97 | # Show the changes to the console |
| 98 | cd /srv/salt/reclass/; git diff |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 99 | node_name: {{ HOSTNAME_CFG01 }} |
| 100 | retry: {count: 1, delay: 1} |
| 101 | skip_fail: false |
| 102 | |
| 103 | - description: Configure reclass |
| 104 | cmd: | |
| 105 | FORMULA_PATH=${FORMULA_PATH:-/usr/share/salt-formulas}; |
obutenko | 89aedf8 | 2017-08-04 12:50:37 +0300 | [diff] [blame] | 106 | FORMULA_REPOSITORY=${FORMULA_REPOSITORY:-deb [arch=amd64] http://apt.mirantis.com/xenial {{ REPOSITORY_SUITE }} salt}; |
| 107 | FORMULA_GPG=${FORMULA_GPG:-http://apt.mirantis.com/public.gpg}; |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 108 | which wget > /dev/null || (apt-get update; apt-get install -y wget); |
| 109 | echo "${FORMULA_REPOSITORY}" > /etc/apt/sources.list.d/mcp_salt.list; |
| 110 | wget -O - "${FORMULA_GPG}" | apt-key add -; |
| 111 | apt-get clean; apt-get update; |
| 112 | [ ! -d /srv/salt/reclass/classes/service ] && mkdir -p /srv/salt/reclass/classes/service; |
Tatyana Leontovich | 644446f | 2017-06-08 13:43:36 +0300 | [diff] [blame] | 113 | declare -a formula_services=("linux" "reclass" "salt" "openssh" "ntp" "git" "nginx" "collectd" "sensu" "heka" "sphinx" "keystone" "mysql" "grafana" "haproxy" "rsyslog" "horizon" "prometheus" "telegraf" "elasticsearch"); |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 114 | echo -e "\nInstalling all required salt formulas\n"; |
Tatyana Leontovich | 573584a | 2017-05-19 14:54:00 +0300 | [diff] [blame] | 115 | eatmydata apt-get install -y "${formula_services[@]/#/salt-formula-}"; |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 116 | for formula_service in "${formula_services[@]}"; do |
| 117 | echo -e "\nLink service metadata for formula ${formula_service} ...\n"; |
| 118 | [ ! -L "/srv/salt/reclass/classes/service/${formula_service}" ] && ln -s ${FORMULA_PATH}/reclass/service/${formula_service} /srv/salt/reclass/classes/service/${formula_service}; |
| 119 | done; |
| 120 | [ ! -d /srv/salt/env ] && mkdir -p /srv/salt/env; |
| 121 | [ ! -L /srv/salt/env/prd ] && ln -s ${FORMULA_PATH}/env /srv/salt/env/prd; |
| 122 | [ ! -d /etc/reclass ] && mkdir /etc/reclass; |
| 123 | |
| 124 | cat << 'EOF' >> /etc/reclass/reclass-config.yml |
| 125 | storage_type: yaml_fs |
| 126 | pretty_print: True |
| 127 | output: yaml |
| 128 | inventory_base_uri: /srv/salt/reclass |
| 129 | EOF |
| 130 | node_name: {{ HOSTNAME_CFG01 }} |
| 131 | retry: {count: 1, delay: 1} |
| 132 | skip_fail: false |
| 133 | |
Tatyana Leontovich | 573584a | 2017-05-19 14:54:00 +0300 | [diff] [blame] | 134 | - description: Restart salt-master service |
| 135 | cmd: | |
| 136 | systemctl restart salt-master; |
| 137 | node_name: {{ HOSTNAME_CFG01 }} |
| 138 | retry: {count: 1, delay: 5} |
| 139 | skip_fail: false |
| 140 | |
| 141 | {% for ssh in config.underlay.ssh %} |
| 142 | - description: Configure salt-minion on {{ ssh['node_name'] }} |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 143 | cmd: | |
| 144 | [ ! -d /etc/salt/minion.d ] && mkdir -p /etc/salt/minion.d; |
| 145 | cat << "EOF" >> /etc/salt/minion.d/minion.conf |
Tatyana Leontovich | 573584a | 2017-05-19 14:54:00 +0300 | [diff] [blame] | 146 | id: {{ ssh['node_name'] }} |
| 147 | master: {{ config.salt.salt_master_host }} |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 148 | EOF |
Tatyana Leontovich | 573584a | 2017-05-19 14:54:00 +0300 | [diff] [blame] | 149 | eatmydata apt-get install -y salt-minion; |
| 150 | echo "Check for system info and metadata availability ..."; |
Sergii Golovatiuk | 01e3a2d | 2017-08-02 11:28:26 +0200 | [diff] [blame] | 151 | salt-call --hard-crash --no-color grains.items; |
| 152 | salt-call --hard-crash --no-color pillar.items; |
Tatyana Leontovich | 573584a | 2017-05-19 14:54:00 +0300 | [diff] [blame] | 153 | node_name: {{ ssh['node_name'] }} |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 154 | retry: {count: 1, delay: 1} |
| 155 | skip_fail: false |
Tatyana Leontovich | 573584a | 2017-05-19 14:54:00 +0300 | [diff] [blame] | 156 | {% endfor %} |
| 157 | |
| 158 | - description: Accept salt keys from all the nodes |
| 159 | cmd: salt-key -A -y |
| 160 | node_name: {{ HOSTNAME_CFG01 }} |
| 161 | retry: {count: 1, delay: 5} |
| 162 | skip_fail: true |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 163 | |
| 164 | - description: Configure salt adoptors on cfg01 |
| 165 | cmd: | |
| 166 | ln -s /usr/lib/python2.7/dist-packages/reclass/adapters/salt.py /usr/local/sbin/reclass-salt; |
| 167 | chmod +x /usr/lib/python2.7/dist-packages/reclass/adapters/salt.py |
| 168 | node_name: {{ HOSTNAME_CFG01 }} |
| 169 | retry: {count: 1, delay: 1} |
| 170 | skip_fail: false |
| 171 | |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 172 | # Prepare salt services and nodes settings |
| 173 | - description: Run 'linux' formula on cfg01 |
| 174 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 175 | -C 'I@salt:master' state.sls linux; |
| 176 | node_name: {{ HOSTNAME_CFG01 }} |
Sergii Golovatiuk | 01e3a2d | 2017-08-02 11:28:26 +0200 | [diff] [blame] | 177 | retry: {count: 2, delay: 5} |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 178 | skip_fail: false |
| 179 | |
| 180 | - description: Run 'openssh' formula on cfg01 |
| 181 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 182 | -C 'I@salt:master' state.sls openssh; |
| 183 | salt --hard-crash --state-output=mixed --state-verbose=False |
| 184 | -C 'I@salt:master' cmd.run "sed -i 's/PasswordAuthentication no/PasswordAuthentication |
| 185 | yes/' /etc/ssh/sshd_config && service ssh restart"; |
| 186 | node_name: {{ HOSTNAME_CFG01 }} |
| 187 | retry: {count: 3, delay: 5} |
| 188 | skip_fail: false |
| 189 | |
| 190 | - description: '*Workaround* of the bug https://mirantis.jira.com/browse/PROD-7962' |
| 191 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 192 | '*' cmd.run "echo ' StrictHostKeyChecking no' >> /root/.ssh/config" |
| 193 | node_name: {{ HOSTNAME_CFG01 }} |
| 194 | retry: {count: 1, delay: 1} |
| 195 | skip_fail: false |
| 196 | |
Tatyana Leontovich | 573584a | 2017-05-19 14:54:00 +0300 | [diff] [blame] | 197 | - description: Run 'salt.master' formula on cfg01 |
Dennis Dmitriev | d9a4aed | 2017-07-27 09:17:17 +0300 | [diff] [blame] | 198 | cmd: timeout 120 salt --timeout=120 --hard-crash --state-output=mixed --state-verbose=False |
Sergii Golovatiuk | 01e3a2d | 2017-08-02 11:28:26 +0200 | [diff] [blame] | 199 | -C 'I@salt:master' state.sls salt.master; |
Tatyana Leontovich | 1c568f9 | 2017-07-03 15:16:27 +0300 | [diff] [blame] | 200 | node_name: {{ HOSTNAME_CFG01 }} |
| 201 | retry: {count: 2, delay: 5} |
| 202 | skip_fail: false |
| 203 | |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 204 | - description: Generate inventory for all the nodes to the /srv/salt/reclass/nodes/_generated |
| 205 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 206 | -C 'I@salt:master' state.sls reclass |
| 207 | node_name: {{ HOSTNAME_CFG01 }} |
| 208 | retry: {count: 1, delay: 5} |
| 209 | skip_fail: false |
| 210 | |
| 211 | - description: Refresh pillars on all minions |
| 212 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' saltutil.refresh_pillar |
| 213 | node_name: {{ HOSTNAME_CFG01 }} |
| 214 | retry: {count: 1, delay: 5} |
| 215 | skip_fail: false |
| 216 | |
Sergii Golovatiuk | 5b659d4 | 2017-05-26 17:38:06 +0200 | [diff] [blame] | 217 | - description: Show reclass-salt --top |
Tatyana Leontovich | 573584a | 2017-05-19 14:54:00 +0300 | [diff] [blame] | 218 | cmd: reclass-salt --top |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 219 | node_name: {{ HOSTNAME_CFG01 }} |
| 220 | retry: {count: 1, delay: 5} |
| 221 | skip_fail: false |
| 222 | |
Sergii Golovatiuk | 01e3a2d | 2017-08-02 11:28:26 +0200 | [diff] [blame] | 223 | - description: Sync all salt resources |
| 224 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' saltutil.sync_all |
Tatyana Leontovich | 573584a | 2017-05-19 14:54:00 +0300 | [diff] [blame] | 225 | node_name: {{ HOSTNAME_CFG01 }} |
| 226 | retry: {count: 1, delay: 5} |
| 227 | skip_fail: false |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 228 | |
Sergii Golovatiuk | 01e3a2d | 2017-08-02 11:28:26 +0200 | [diff] [blame] | 229 | - description: Configure linux on master |
| 230 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 231 | -C 'I@salt:master' state.sls 'linux.system' |
| 232 | node_name: {{ HOSTNAME_CFG01 }} |
| 233 | retry: {count: 1, delay: 5} |
| 234 | skip_fail: false |
| 235 | |
| 236 | - description: Configure minion on master |
| 237 | cmd: salt-call --hard-crash -l debug state.sls 'salt.minion' |
| 238 | node_name: {{ HOSTNAME_CFG01 }} |
| 239 | retry: {count: 3, delay: 10} |
| 240 | skip_fail: false |
| 241 | |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 242 | # Bootstrap all nodes |
| 243 | |
Tatyana Leontovich | 573584a | 2017-05-19 14:54:00 +0300 | [diff] [blame] | 244 | - description: Configure linux on other nodes |
Sergii Golovatiuk | 01e3a2d | 2017-08-02 11:28:26 +0200 | [diff] [blame] | 245 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 246 | -C 'I@linux:system' state.sls 'linux' |
| 247 | node_name: {{ HOSTNAME_CFG01 }} |
| 248 | retry: {count: 3, delay: 5} |
| 249 | skip_fail: false |
| 250 | |
| 251 | - description: Configure openssh on all nodes |
| 252 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 253 | -C 'I@linux:system' state.sls openssh; |
| 254 | salt --hard-crash --state-output=mixed --state-verbose=False |
| 255 | -C 'I@linux:system' cmd.run "sed -i 's/PasswordAuthentication no/PasswordAuthentication |
| 256 | yes/' /etc/ssh/sshd_config && service ssh reload" |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 257 | node_name: {{ HOSTNAME_CFG01 }} |
| 258 | retry: {count: 1, delay: 5} |
| 259 | skip_fail: false |
| 260 | |
Sergii Golovatiuk | 01e3a2d | 2017-08-02 11:28:26 +0200 | [diff] [blame] | 261 | - description: Configure salt.minion on all nodes |
| 262 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 263 | -C 'I@linux:system' state.sls salt.minion |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 264 | node_name: {{ HOSTNAME_CFG01 }} |
| 265 | retry: {count: 2, delay: 5} |
| 266 | skip_fail: false |
| 267 | |
Sergii Golovatiuk | 01e3a2d | 2017-08-02 11:28:26 +0200 | [diff] [blame] | 268 | - description: Configure ntp and rsyslog on nodes |
| 269 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 270 | -C 'I@linux:system' state.sls ntp,rsyslog |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 271 | node_name: {{ HOSTNAME_CFG01 }} |
Sergii Golovatiuk | 01e3a2d | 2017-08-02 11:28:26 +0200 | [diff] [blame] | 272 | retry: {count: 2, delay: 10} |
Sergii Golovatiuk | 57bb8e7 | 2017-05-16 19:49:49 +0200 | [diff] [blame] | 273 | skip_fail: false |
| 274 | |
| 275 | - description: Check salt minion versions on slaves |
| 276 | cmd: salt '*' test.version |
| 277 | node_name: {{ HOSTNAME_CFG01 }} |
| 278 | retry: {count: 1, delay: 5} |
| 279 | skip_fail: false |
| 280 | |
| 281 | - description: Check salt top states on nodes |
| 282 | cmd: salt '*' state.show_top |
| 283 | node_name: {{ HOSTNAME_CFG01 }} |
| 284 | retry: {count: 1, delay: 5} |
| 285 | skip_fail: false |