add option to specify reclass_source_path
Change-Id: I1079b0f719ae9270442c4d17e98b032ae1633d1e
diff --git a/reclass/files/reclass-config.yml b/reclass/files/reclass-config.yml
index 20713d2..d20d2be 100644
--- a/reclass/files/reclass-config.yml
+++ b/reclass/files/reclass-config.yml
@@ -6,16 +6,19 @@
{%- if storage.nodes_uri is defined %}
nodes_uri: {{ storage.nodes_uri }}
{%- endif %}
+{%- if storage.reclass_source_path is defined %}
+reclass_source_path: {{ storage.reclass_source_path }}
+{%- endif %}
{%- if storage.class_mappings|length > 0 %}
class_mappings:
{%- for mapping in storage.class_mappings %}
- {{ mapping.target }} {{ mapping.class }}
{%- endfor %}
{%- endif %}
-{% if storage.propagate_pillar_data_to_reclass == True %}
+{%- if storage.propagate_pillar_data_to_reclass == True %}
propagate_pillar_data_to_reclass: {{ storage.propagate_pillar_data_to_reclass }}
{%- endif %}
-{% if storage.ignore_class_notfound == True %}
+{%- if storage.ignore_class_notfound == True %}
# Below option is not available in upstream reclass, and require fork https://github.com/salt-formulas/reclass
ignore_class_notfound: {{ storage.ignore_class_notfound }}
{%- endif %}
diff --git a/tests/pillar/source_path.sls b/tests/pillar/source_path.sls
new file mode 100644
index 0000000..e295e33
--- /dev/null
+++ b/tests/pillar/source_path.sls
@@ -0,0 +1,4 @@
+reclass:
+ storage:
+ enabled: true
+ reclass_source_path: /tmp/reclass