{%- from "ironic/map.jinja" import api,conductor with context %} | |
ironic_task_service_stopped: | |
test.show_notification: | |
- text: "Running ironic.upgrade.service_stopped" | |
{%- if api.get('enabled', False) %} | |
ironic_stop_{{ api.service }}: | |
service.dead: | |
- name: {{ api.service }} | |
- enable: False | |
{%- endif %} | |
{%- if conductor.get('enabled', False) %} | |
ironic_stop_{{ conductor.service }}: | |
service.dead: | |
- name: {{ conductor.service }} | |
- enable: False | |
{%- endif %} |