Hanna Arhipova | ae1ae6e | 2020-03-02 19:07:41 +0200 | [diff] [blame] | 1 | |
| 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 Arhipova | b216c2f | 2020-03-03 07:47:06 +0200 | [diff] [blame] | 8 | set -e; |
| 9 | set -x; |
| 10 | . /root/venv-reclass-tools/bin/activate; |
Hanna Arhipova | ae1ae6e | 2020-03-02 19:07:41 +0200 | [diff] [blame] | 11 | 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 Arhipova | aad914c | 2020-04-13 17:10:20 +0300 | [diff] [blame] | 15 | {%- 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. Meltsaykin | b3b14f0 | 2020-04-27 15:50:02 +0200 | [diff] [blame] | 31 | {%- 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 Arhipova | ae1ae6e | 2020-03-02 19:07:41 +0200 | [diff] [blame] | 45 | {%- endmacro %} |