{%- from "ironic/map.jinja" import api,conductor with context %} | |
{%- if api.get("enabled", False) %} | |
{%- set ironic, service_name = api, 'api' %} | |
{%- elif conductor.get('enabled', False) %} | |
{%- set ironic, service_name = conductor, 'conductor' %} | |
{%- endif %} | |
ironic_render_config: | |
test.show_notification: | |
- text: "Running ironic.upgrade.render_config" | |
/etc/ironic/ironic.conf: | |
file.managed: | |
- source: salt://ironic/files/{{ ironic.version }}/ironic.conf | |
- template: jinja |