blob: f1ba0615fa49ffad689bfba38dc8d96c637b76ae [file] [log] [blame]
Hanna Arhipovaae1ae6e2020-03-02 19:07:41 +02001
2{%- macro MACRO_SET_SALTAPI_TIMEOUT() %}
3{######################################}
4- description: |
5 Set nginx_proxy_salt_api to 1800. RelatedProd:PROD-34798
6 #TODO Remove after released 2019.2.8
7 cmd: |
Hanna Arhipovab216c2f2020-03-03 07:47:06 +02008 set -e;
9 set -x;
10 . /root/venv-reclass-tools/bin/activate;
Hanna Arhipovaae1ae6e2020-03-02 19:07:41 +020011 reclass-tools add-key parameters.nginx.server.site.nginx_proxy_salt_api.proxy.timeout 1800 /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/config/init.yml
12 node_name: {{ HOSTNAME_CFG01 }}
13 retry: {count: 1, delay: 1}
14 skip_fail: false
Hanna Arhipovaaad914c2020-04-13 17:10:20 +030015{%- endmacro %}
16
17{%- macro MACRO_CEPH_SET_PGNUM() %}
18{######################################}
19- description: |
20 Set greater pg_num/pgp_num for gnocchi pool in Ceph. RelatedProd:PROD-34833
21
22 cmd: |
23 set -e;
24 set -x;
25 . /root/venv-reclass-tools/bin/activate;
26 reclass-tools add-key parameters.ceph.setup.pool.gnocchi.pg_num 32 /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/ceph/setup.yml
27 reclass-tools add-key parameters.ceph.setup.pool.gnocchi.pgp_num 32 /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/ceph/setup.yml
28 node_name: {{ HOSTNAME_CFG01 }}
29 retry: {count: 1, delay: 1}
30 skip_fail: false
Denis V. Meltsaykinb3b14f02020-04-27 15:50:02 +020031{%- endmacro %}
32
33{%- macro CLEAR_CEPH_OSD_DRIVES() %}
34{######################################}
35- description: |
36 Clear Ceph OSD drives before deploying Ceph. RelatedProd:PROD-35141
37
38 cmd: |
39 set -e;
40 set -x;
41 salt -C 'I@ceph:osd' cmd.run 'dd if=/dev/zero of=/dev/sdb bs=1M count=50 conv=fsync ; dd if=/dev/zero of=/dev/sdc bs=1M count=50 conv=fsync'
42 node_name: {{ HOSTNAME_CFG01 }}
43 retry: {count: 1, delay: 1}
44 skip_fail: true
Hanna Arhipovaae1ae6e2020-03-02 19:07:41 +020045{%- endmacro %}