Filip Pytloun | 49768a4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | {%- from "reclass/map.jinja" import storage with context %} |
| 2 | storage_type: {{ storage.storage_type }} |
| 3 | pretty_print: True |
| 4 | output: {{ storage.get('output', 'json') }} |
| 5 | inventory_base_uri: {{ storage.base_dir }} |
Vladislav Naumov | 8711308 | 2017-07-24 17:36:50 +0300 | [diff] [blame] | 6 | {%- if storage.nodes_uri is defined %} |
Elena Ezhova | fc76159 | 2017-07-27 11:49:40 +0400 | [diff] [blame] | 7 | nodes_uri: {{ storage.nodes_uri }} |
Vladislav Naumov | 8711308 | 2017-07-24 17:36:50 +0300 | [diff] [blame] | 8 | {%- endif %} |
Petr Michalec | c47dad2 | 2017-08-17 18:15:16 +0200 | [diff] [blame] | 9 | {%- if storage.reclass_source_path is defined %} |
| 10 | reclass_source_path: {{ storage.reclass_source_path }} |
| 11 | {%- endif %} |
Petr Michalec | b933c34 | 2017-08-17 18:15:16 +0200 | [diff] [blame] | 12 | {%- if storage.class_mappings|length > 0 %} |
Filip Pytloun | 49768a4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 13 | class_mappings: |
| 14 | {%- for mapping in storage.class_mappings %} |
| 15 | - {{ mapping.target }} {{ mapping.class }} |
| 16 | {%- endfor %} |
Vladislav Naumov | 8711308 | 2017-07-24 17:36:50 +0300 | [diff] [blame] | 17 | {%- endif %} |
Petr Michalec | c47dad2 | 2017-08-17 18:15:16 +0200 | [diff] [blame] | 18 | {%- if storage.propagate_pillar_data_to_reclass == True %} |
Petr Michalec | b933c34 | 2017-08-17 18:15:16 +0200 | [diff] [blame] | 19 | propagate_pillar_data_to_reclass: {{ storage.propagate_pillar_data_to_reclass }} |
| 20 | {%- endif %} |
lmercl | d988a23 | 2018-08-09 13:57:07 +0200 | [diff] [blame] | 21 | # Below option are not available in original reclass, |
azvyagintsev | 01f9699 | 2019-05-29 15:18:10 +0300 | [diff] [blame^] | 22 | # use fork with extensions from https://gerrit.mcp.mirantis.com/salt-formulas/reclass |
Petr Michalec | c47dad2 | 2017-08-17 18:15:16 +0200 | [diff] [blame] | 23 | {%- if storage.ignore_class_notfound == True %} |
Petr Michalec | b933c34 | 2017-08-17 18:15:16 +0200 | [diff] [blame] | 24 | ignore_class_notfound: {{ storage.ignore_class_notfound }} |
| 25 | {%- endif %} |
lmercl | d988a23 | 2018-08-09 13:57:07 +0200 | [diff] [blame] | 26 | {%- if storage.allow_scalar_over_dict is defined %} |
| 27 | allow_scalar_over_dict: {{ storage.allow_scalar_over_dict }} |
| 28 | {%- endif %} |
| 29 | {%- if storage.allow_scalar_over_list is defined %} |
| 30 | allow_scalar_over_list: {{ storage.allow_scalar_over_list }} |
| 31 | {%- endif %} |
| 32 | {%- if storage.allow_list_over_scalar is defined %} |
| 33 | allow_list_over_scalar: {{ storage.allow_list_over_scalar }} |
| 34 | {%- endif %} |
| 35 | {%- if storage.allow_dict_over_scalar is defined %} |
| 36 | allow_dict_over_scalar: {{ storage.allow_dict_over_scalar }} |
| 37 | {%- endif %} |
| 38 | {%- if storage.allow_none_override is defined %} |
| 39 | allow_none_override: {{ storage.allow_none_override }} |
| 40 | {%- endif %} |