Merge "Add node deploy state"
diff --git a/ironic/conductor.sls b/ironic/conductor.sls
index bc0fc7f..032c34a 100644
--- a/ironic/conductor.sls
+++ b/ironic/conductor.sls
@@ -124,17 +124,21 @@
- pkg: ironic_conductor_packages
{%- if conductor.http_images is defined %}
-{%- for image in conductor.http_images %}
+ {%- for image in conductor.http_images %}
image_{{ image.name }}:
file.managed:
- name: {{ conductor.http_root }}/{{ image.name }}
- source: {{ image.source }}
+ {%- if image.md5summ is defined %}
- source_hash: md5={{ image.md5summ }}
+ {%- else %}
+ - source_hash: {{ image.hash_file }}
+ {%- endif %}
- user: 'ironic'
- group: 'ironic'
-{%- endfor %}
+ {%- endfor %}
{%- endif %}
{# we have disabled iscsi by default according to CIS requirement, enable it explicitly #}