blob: 82cb49000dbd8f115e9bf2d834d33165479da9a0 [file] [log] [blame]
Dennis Dmitrievab83ea42017-05-12 16:52:45 +03001{% from 'virtual-mcp-ocata-dvr/underlay.yaml' import HOSTNAME_CFG01 with context %}
Dennis Dmitriev2d60c8e2017-05-12 18:34:01 +03002{% from 'virtual-mcp-ocata-dvr/underlay.yaml' import REPOSITORY_SUITE with context %}
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +03003
4{% set SALT_MODELS_REPOSITORY = os_env('SALT_MODELS_REPOSITORY','https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab') %}
Valentyn Yakovlev08acf9f2017-06-07 14:02:36 +03005{% set SALT_MODELS_BRANCH = os_env('SALT_MODELS_BRANCH','master') %}
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +03006{% set SALT_MODELS_COMMIT = os_env('SALT_MODELS_COMMIT','master') %}
7
Dennis Dmitrieveac3aab2017-07-12 16:36:41 +03008# 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
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030011# 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', '192.168.10.0/24')) %}
18{% set IPV4_NET_CONTROL = os_env('IPV4_NET_CONTROL', address_pools.get('private-pool01', '172.16.10.0/24')) %}
19{% set IPV4_NET_TENANT = os_env('IPV4_NET_TENANT', address_pools.get('tenant-pool01', '10.1.0.0/24')) %}
20{% set IPV4_NET_EXTERNAL = os_env('IPV4_NET_EXTERNAL', address_pools.get('external-pool01', '10.16.0.0/24')) %}
21
22{% set IPV4_NET_ADMIN_PREFIX = '.'.join(IPV4_NET_ADMIN.split('.')[0:3]) %}
23{% set IPV4_NET_CONTROL_PREFIX = '.'.join(IPV4_NET_CONTROL.split('.')[0:3]) %}
24{% set IPV4_NET_TENANT_PREFIX = '.'.join(IPV4_NET_TENANT.split('.')[0:3]) %}
25{% set IPV4_NET_EXTERNAL_PREFIX = '.'.join(IPV4_NET_EXTERNAL.split('.')[0:3]) %}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030026
27# Install salt to the config node
28
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030029#- description: (moved to cloud-init config) Configure repository on the cfg01 node
30# cmd:
31# echo "172.18.248.114 jenkins.mcp.mirantis.net gerrit.mcp.mirantis.net" >> /etc/hosts;
32# echo "185.135.196.10 apt-mk.mirantis.com" >> /etc/hosts;
33# echo "nameserver 172.18.208.44 >> /etc/resolv.conf;
34# echo "nameserver 8.8.8.8 >> /etc/resolv.conf;
35# which wget >/dev/null || (apt-get update; apt-get install -y wget);
36# echo "deb [arch=amd64] http://apt-mk.mirantis.com/xenial nightly salt extra" > /etc/apt/sources.list.d/mcp_salt.list;
37# wget -O - http://apt-mk.mirantis.com/public.gpg | apt-key add -;
38# echo "deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3 xenial main" > /etc/apt/sources.list.d/saltstack.list;
39# wget -O - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3/SALTSTACK-GPG-KEY.pub | apt-key add -;
40# node_name: {{ HOSTNAME_CFG01 }}
41# retry: {count: 1, delay: 1}
42# skip_fail: false
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030043
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030044#- description: Update packages on cfg01
45# cmd: apt-get clean; eatmydata apt-get update
46# node_name: {{ HOSTNAME_CFG01 }}
47# retry: {count: 1, delay: 1}
48# skip_fail: false
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030049
50- description: Installing salt master on cfg01
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030051 cmd: eatmydata apt-get install -y reclass git salt-master
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030052 node_name: {{ HOSTNAME_CFG01 }}
53 retry: {count: 1, delay: 1}
54 skip_fail: false
55
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030056- description: Configure salt-master on cfg01
57 cmd: |
58 cat << 'EOF' >> /etc/salt/master.d/master.conf
59 file_roots:
60 base:
61 - /usr/share/salt-formulas/env
62 pillar_opts: False
63 open_mode: True
64 reclass: &reclass
65 storage_type: yaml_fs
66 inventory_base_uri: /srv/salt/reclass
67 ext_pillar:
68 - reclass: *reclass
69 master_tops:
70 reclass: *reclass
71 EOF
72 node_name: {{ HOSTNAME_CFG01 }}
73 retry: {count: 1, delay: 1}
74 skip_fail: false
75
76- description: Configure GIT settings and certificates
77 cmd: touch /root/.git_trusted_certs.pem;
78 for server in git.tcpcloud.eu github.com; do
79 openssl s_client -showcerts -connect $server:443 </dev/null
80 | openssl x509 -outform PEM
81 >> /root/.git_trusted_certs.pem;
82 done;
83 HOME=/root git config --global http.sslCAInfo /root/.git_trusted_certs.pem;
84 HOME=/root git config --global user.email "tcp-qa@example.com";
85 HOME=/root git config --global user.name "TCP QA";
86 node_name: {{ HOSTNAME_CFG01 }}
87 retry: {count: 1, delay: 1}
88 skip_fail: false
89
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030090- description: Clone reclass models with submodules
91 cmd: |
92 ssh-keyscan -H github.com >> ~/.ssh/known_hosts;
Valentyn Yakovlev08acf9f2017-06-07 14:02:36 +030093 git clone -b {{ SALT_MODELS_BRANCH }} --recurse-submodules {{ SALT_MODELS_REPOSITORY }} /srv/salt/reclass;
94 pushd /srv/salt/reclass && git checkout {{ SALT_MODELS_COMMIT }} && popd;
Dennis Dmitrieveac3aab2017-07-12 16:36:41 +030095 {%- if SALT_MODELS_REF_CHANGE != '' %}
96 pushd /srv/salt/reclass && git fetch {{ SALT_MODELS_REPOSITORY }} {{ SALT_MODELS_REF_CHANGE }} && git checkout FETCH_HEAD && popd;
97 {%- endif %}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030098 mkdir -p /srv/salt/reclass/classes/service;
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030099
100 # Replace firstly to an intermediate value to avoid intersection between
101 # already replaced and replacing networks.
102 # For example, if generated IPV4_NET_ADMIN_PREFIX=10.16.0 , then there is a risk of replacing twice:
103 # 192.168.10 -> 10.16.0 (generated network for admin)
104 # 10.16.0 -> <external network>
105 # So let's replace constant networks to the keywords, and then keywords to the desired networks.
106 find /srv/salt/reclass/ -type f -exec sed -i 's/192\.168\.10\./==IPV4_NET_ADMIN_PREFIX==/g' {} +
107 find /srv/salt/reclass/ -type f -exec sed -i 's/172\.16\.10\./==IPV4_NET_CONTROL_PREFIX==/g' {} +
108 find /srv/salt/reclass/ -type f -exec sed -i 's/10\.1\.0\./==IPV4_NET_TENANT_PREFIX==/g' {} +
109 find /srv/salt/reclass/ -type f -exec sed -i 's/10\.16\.0\./==IPV4_NET_EXTERNAL_PREFIX==/g' {} +
110
111 find /srv/salt/reclass/ -type f -exec sed -i 's/==IPV4_NET_ADMIN_PREFIX==/{{ IPV4_NET_ADMIN_PREFIX }}./g' {} +
112 find /srv/salt/reclass/ -type f -exec sed -i 's/==IPV4_NET_CONTROL_PREFIX==/{{ IPV4_NET_CONTROL_PREFIX }}./g' {} +
113 find /srv/salt/reclass/ -type f -exec sed -i 's/==IPV4_NET_TENANT_PREFIX==/{{ IPV4_NET_TENANT_PREFIX }}./g' {} +
114 find /srv/salt/reclass/ -type f -exec sed -i 's/==IPV4_NET_EXTERNAL_PREFIX==/{{ IPV4_NET_EXTERNAL_PREFIX }}./g' {} +
115
Dennis Dmitriev2d60c8e2017-05-12 18:34:01 +0300116 find /srv/salt/reclass/ -type f -exec sed -i 's/apt_mk_version:.*/apt_mk_version: {{ REPOSITORY_SUITE }}/g' {} +
117
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300118 # Disable checkouting the model from remote repository
119 cat << 'EOF' >> /srv/salt/reclass/nodes/{{ HOSTNAME_CFG01 }}.yml
120 # local storage
121 reclass:
122 storage:
123 data_source:
124 engine: local
125 EOF
126
127 # Show the changes to the console
128 cd /srv/salt/reclass/; git diff
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300129 node_name: {{ HOSTNAME_CFG01 }}
130 retry: {count: 1, delay: 1}
131 skip_fail: false
132
133- description: Configure reclass
134 cmd: |
135 FORMULA_PATH=${FORMULA_PATH:-/usr/share/salt-formulas};
Tatyana Leontovicheed70d72017-05-25 16:32:17 +0300136 FORMULA_REPOSITORY=${FORMULA_REPOSITORY:-deb [arch=amd64] http://apt-mk.mirantis.com/xenial {{ REPOSITORY_SUITE }} salt};
Tatyana Leontovich3c6aa452017-04-25 15:04:40 +0300137 FORMULA_GPG=${FORMULA_GPG:-http://apt-mk.mirantis.com/public.gpg};
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300138 which wget > /dev/null || (apt-get update; apt-get install -y wget);
Tatyana Leontovich543afa92017-04-21 14:48:03 +0300139 echo "${FORMULA_REPOSITORY}" > /etc/apt/sources.list.d/mcp_salt.list;
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300140 wget -O - "${FORMULA_GPG}" | apt-key add -;
141 apt-get clean; apt-get update;
142 [ ! -d /srv/salt/reclass/classes/service ] && mkdir -p /srv/salt/reclass/classes/service;
Dennis Dmitriev76f65462017-07-20 16:21:26 -0400143 declare -a formula_services=("linux" "reclass" "salt" "openssh" "ntp" "git" "nginx" "collectd" "sensu" "heka" "sphinx" "keystone" "mysql" "grafana" "haproxy" "rsyslog" "horizon" "prometheus" "telegraf" "elasticsearch" "powerdns");
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300144 echo -e "\nInstalling all required salt formulas\n";
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300145 eatmydata apt-get install -y "${formula_services[@]/#/salt-formula-}";
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300146 for formula_service in "${formula_services[@]}"; do
147 echo -e "\nLink service metadata for formula ${formula_service} ...\n";
148 [ ! -L "/srv/salt/reclass/classes/service/${formula_service}" ] && ln -s ${FORMULA_PATH}/reclass/service/${formula_service} /srv/salt/reclass/classes/service/${formula_service};
149 done;
150 [ ! -d /srv/salt/env ] && mkdir -p /srv/salt/env;
151 [ ! -L /srv/salt/env/prd ] && ln -s ${FORMULA_PATH}/env /srv/salt/env/prd;
152 [ ! -d /etc/reclass ] && mkdir /etc/reclass;
153
154 cat << 'EOF' >> /etc/reclass/reclass-config.yml
155 storage_type: yaml_fs
156 pretty_print: True
157 output: yaml
158 inventory_base_uri: /srv/salt/reclass
159 EOF
160 node_name: {{ HOSTNAME_CFG01 }}
161 retry: {count: 1, delay: 1}
162 skip_fail: false
163
Dennis Dmitriev9c2707e2017-07-21 13:17:53 +0300164- description: "*Workaround* remove all cfg01 nodes except {{ HOSTNAME_CFG01 }} to not depend on other clusters in 'reclass --top'"
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300165 cmd: |
Dennis Dmitriev9c2707e2017-07-21 13:17:53 +0300166 # Remove all other nodes except {{ HOSTNAME_CFG01 }} to not rely on them for 'reclass --top'
167 find /srv/salt/reclass/nodes/ -type f -not -name {{ HOSTNAME_CFG01 }}.yml -delete
168 node_name: {{ HOSTNAME_CFG01 }}
169 retry: {count: 1, delay: 5}
170 skip_fail: false
171
172- description: Show reclass-salt --top for cfg01 node
173 cmd: reclass-salt --top
174 node_name: {{ HOSTNAME_CFG01 }}
175 retry: {count: 1, delay: 5}
176 skip_fail: false
177
178- description: Restart salt-master service
179 cmd: systemctl restart salt-master;
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300180 node_name: {{ HOSTNAME_CFG01 }}
181 retry: {count: 1, delay: 5}
182 skip_fail: false
183
184{% for ssh in config.underlay.ssh %}
185- description: Configure salt-minion on {{ ssh['node_name'] }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300186 cmd: |
187 [ ! -d /etc/salt/minion.d ] && mkdir -p /etc/salt/minion.d;
188 cat << "EOF" >> /etc/salt/minion.d/minion.conf
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300189 id: {{ ssh['node_name'] }}
190 master: {{ config.salt.salt_master_host }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300191 EOF
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300192 eatmydata apt-get install -y salt-minion;
Dennis Dmitrieva9e6da82017-04-26 23:23:22 +0300193 echo "Check for system info and metadata availability ...";
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300194 salt-call --no-color grains.items;
Dennis Dmitrieva9e6da82017-04-26 23:23:22 +0300195 salt-call --no-color pillar.items;
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300196 node_name: {{ ssh['node_name'] }}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300197 retry: {count: 1, delay: 1}
198 skip_fail: false
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300199{% endfor %}
200
Dennis Dmitriev8f0f80f2017-04-27 01:04:39 +0300201- description: Accept salt keys from all the nodes
202 cmd: salt-key -A -y
203 node_name: {{ HOSTNAME_CFG01 }}
204 retry: {count: 1, delay: 5}
205 skip_fail: true
206
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300207- description: Configure salt adoptors on cfg01
208 cmd: |
209 ln -s /usr/lib/python2.7/dist-packages/reclass/adapters/salt.py /usr/local/sbin/reclass-salt;
210 chmod +x /usr/lib/python2.7/dist-packages/reclass/adapters/salt.py
211 node_name: {{ HOSTNAME_CFG01 }}
212 retry: {count: 1, delay: 1}
213 skip_fail: false
214
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300215# Prepare salt services and nodes settings
216- description: Run 'linux' formula on cfg01
Tatyana Leontovich18013122017-06-09 20:24:50 +0300217 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@salt:master' state.sls linux;
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300218 node_name: {{ HOSTNAME_CFG01 }}
219 retry: {count: 1, delay: 5}
220 skip_fail: false
221
222- description: Run 'openssh' formula on cfg01
223 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
224 -C 'I@salt:master' state.sls openssh;
225 salt --hard-crash --state-output=mixed --state-verbose=False
226 -C 'I@salt:master' cmd.run "sed -i 's/PasswordAuthentication no/PasswordAuthentication
Tatyana Leontovich18013122017-06-09 20:24:50 +0300227 yes/' /etc/ssh/sshd_config && service ssh reload";
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300228 node_name: {{ HOSTNAME_CFG01 }}
229 retry: {count: 3, delay: 5}
230 skip_fail: false
231
232- description: '*Workaround* of the bug https://mirantis.jira.com/browse/PROD-7962'
233 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
234 '*' cmd.run "echo ' StrictHostKeyChecking no' >> /root/.ssh/config"
235 node_name: {{ HOSTNAME_CFG01 }}
236 retry: {count: 1, delay: 1}
237 skip_fail: false
238
Dennis Dmitriev2d60c8e2017-05-12 18:34:01 +0300239- description: Run 'salt.master' formula on cfg01
Tatyana Leontovich18013122017-06-09 20:24:50 +0300240 cmd: timeout 120 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@salt:master' state.sls salt.master;
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300241 node_name: {{ HOSTNAME_CFG01 }}
Dennis Dmitriev4db5bf22017-05-13 19:31:17 +0300242 retry: {count: 2, delay: 5}
Dennis Dmitriev2d60c8e2017-05-12 18:34:01 +0300243 skip_fail: false
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300244
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300245- description: Generate inventory for all the nodes to the /srv/salt/reclass/nodes/_generated
246 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
247 -C 'I@salt:master' state.sls reclass
248 node_name: {{ HOSTNAME_CFG01 }}
249 retry: {count: 1, delay: 5}
250 skip_fail: false
251
252- description: Refresh pillars on all minions
253 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' saltutil.refresh_pillar
254 node_name: {{ HOSTNAME_CFG01 }}
255 retry: {count: 1, delay: 5}
256 skip_fail: false
257
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300258- description: Show reclass-salt --top
Dennis Dmitriev9c2707e2017-07-21 13:17:53 +0300259 cmd: reclass-salt --top
Dennis Dmitriev4db5bf22017-05-13 19:31:17 +0300260 node_name: {{ HOSTNAME_CFG01 }}
261 retry: {count: 1, delay: 5}
262 skip_fail: false
263
Tatyana Leontovich18013122017-06-09 20:24:50 +0300264- description: Sync all salt resources
265 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' saltutil.sync_all
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300266 node_name: {{ HOSTNAME_CFG01 }}
267 retry: {count: 1, delay: 5}
268 skip_fail: false
269
Tatyana Leontovich18013122017-06-09 20:24:50 +0300270- description: Configure linux on master
271 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@salt:master' state.sls 'linux.system'
272 node_name: {{ HOSTNAME_CFG01 }}
273 retry: {count: 1, delay: 5}
274 skip_fail: false
275
276- description: Configure minion on master
277 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
278 -C 'I@salt:master' state.sls 'salt.minion'
279 node_name: {{ HOSTNAME_CFG01 }}
280 retry: {count: 3, delay: 10}
281 skip_fail: false
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300282
283# Bootstrap all nodes
284
Dennis Dmitrieva9e6da82017-04-26 23:23:22 +0300285- description: Configure linux on other nodes
Tatyanka Leontovichbbd6b2d2017-07-21 06:02:15 -0400286 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@linux:system' state.sls 'linux'
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300287 node_name: {{ HOSTNAME_CFG01 }}
288 retry: {count: 1, delay: 5}
289 skip_fail: false
290
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300291- description: Configure openssh on all nodes
Tatyanka Leontovichbbd6b2d2017-07-21 06:02:15 -0400292 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@linux:system and not cfg01*' state.sls openssh;
Tatyana Leontovich18013122017-06-09 20:24:50 +0300293 salt --hard-crash --state-output=mixed --state-verbose=False
Tatyanka Leontovichbbd6b2d2017-07-21 06:02:15 -0400294 -C 'I@linux:system and not cfg01*' cmd.run "sed -i 's/PasswordAuthentication no/PasswordAuthentication
Tatyana Leontovich18013122017-06-09 20:24:50 +0300295 yes/' /etc/ssh/sshd_config && service ssh reload"
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300296 node_name: {{ HOSTNAME_CFG01 }}
297 retry: {count: 1, delay: 5}
298 skip_fail: false
299
Dennis Dmitrieva9e6da82017-04-26 23:23:22 +0300300- description: Configure salt.minion on other nodes
Tatyanka Leontovichbbd6b2d2017-07-21 06:02:15 -0400301 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@linux:system and not cfg01*' state.sls salt.minion
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300302 node_name: {{ HOSTNAME_CFG01 }}
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300303 retry: {count: 3, delay: 15}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300304 skip_fail: false
305
306- description: Check salt minion versions on slaves
307 cmd: salt '*' test.version
308 node_name: {{ HOSTNAME_CFG01 }}
309 retry: {count: 1, delay: 5}
310 skip_fail: false
311
312- description: Check salt top states on nodes
313 cmd: salt '*' state.show_top
314 node_name: {{ HOSTNAME_CFG01 }}
315 retry: {count: 1, delay: 5}
316 skip_fail: false
317
318- description: Configure ntp and rsyslog on nodes
Tatyanka Leontovichbbd6b2d2017-07-21 06:02:15 -0400319 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@linux:system' state.sls ntp,rsyslog
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +0300320 node_name: {{ HOSTNAME_CFG01 }}
321 retry: {count: 1, delay: 10}
322 skip_fail: false
323
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +0300324- description: Hack gtw node
325 cmd: salt 'gtw*' cmd.run "ip addr del {{ IPV4_NET_CONTROL_PREFIX }}.110/24 dev ens4; ip addr flush dev ens4";
326 node_name: {{ HOSTNAME_CFG01 }}
327 retry: {count: 1, delay: 10}
328 skip_fail: false
329
330- description: Hack cmp01 node
331 cmd: salt 'cmp01*' cmd.run "ip addr del {{ IPV4_NET_CONTROL_PREFIX }}.105/24 dev ens4; ip addr flush dev ens4";
332 node_name: {{ HOSTNAME_CFG01 }}
333 retry: {count: 1, delay: 10}
334 skip_fail: false
335
336- description: Hack cmp02 node
337 cmd: salt 'cmp02*' cmd.run "ip addr del {{ IPV4_NET_CONTROL_PREFIX }}.106/24 dev ens4; ip addr flush dev ens4";
338 node_name: {{ HOSTNAME_CFG01 }}
339 retry: {count: 1, delay: 10}
340 skip_fail: false