blob: 4d5dcb19e1d4166183624b36f230eba65b2d5d06 [file] [log] [blame]
{%- from "designate/map.jinja" import server, pool_manager, agent with context %}
designate_task_service_running:
test.show_notification:
- name: "dump_message_service_running_designate"
- text: "Running designate.upgrade.service_running"
{%- if server.get('enabled', false) %}
{%- set dservices = server.services %}
{%- endif %}
{%- if pool_manager.get('enabled', false) %}
{%- do dservices.append(pool_manager.services) %}
{%- endif %}
{%- if agent.get('enabled', false) %}
{%- do dservices.append(agent.services) %}
{%- endif %}
{%- for dservice in dservices %}
designate_service_running_{{ dservice }}:
service.running:
- enable: true
- name: {{ dservice }}
{%- if grains.get('noservices') %}
- onlyif: /bin/false
{%- endif %}
{%- endfor %}