{% extends 'generic/_base.html' %} {% load helpers %} {% block title %}Setup: {{ object }}{% endblock %} {% block content %}

Setup wizard {{ object|linkify }}

    {% for step in steps %}
  1. {{ step.title }}
    {% if forloop.counter == 1 %}URL {{ object.site_url }}, automation user {{ object.username }}. Edit {% elif forloop.counter == 2 %}Checkmk {{ object.checkmk_version|default:"(not checked)" }}; the automation user's role needs the permissions of the enabled functions. {% elif forloop.counter == 3 %}Prefix {{ object.prefix }}{% if object.has_revisions %} (fixed after the first deploy){% endif %}: labels {{ object.prefix }}/..., tag groups {{ object.prefix }}_..., folder /{{ object.prefix }}. {% elif forloop.counter == 4 %}
    {% csrf_token %} {% for name, label, help, value in functions %}
    {{ help }}
    {% endfor %} {% if can_change %}{% endif %}
    {% elif forloop.counter == 5 %} {% for item in step.items %}
    {% if item.status == 'ok' %}ok{% elif item.status == 'warning' %}warning{% else %}{% if item.mandatory %}missing{% else %}error{% endif %}{% endif %} {% include "netbox_checkmk_sync/inc/check_name.html" %}: {{ item.detail }}{% if item.instructions and item.status != 'ok' %}
    {{ item.instructions }}
    {% endif %}
    {% empty %}Run the check.{% endfor %}
    All prerequisites. Rules from templates (notification rule per team, periodic discovery, clustered services) are created by the deploy itself when the function is on.
    {% elif forloop.counter == 6 %} {% if object.checked_at %}Last check {{ object.checked_at|isodatetime:"minutes" }}.{% endif %} {% if can_change %}
    {% csrf_token %}
    {% endif %} {% else %} {% if object.has_revisions %}Done.{% else %}Changes > Preview all changes; the first deploy is confirmed explicitly instead of the normal approval.{% endif %} {% endif %}
    {% if step.state == 'ok' %}done{% elif step.state == 'warning' %}check{% elif step.state == 'error' %}problem{% else %}open{% endif %}
  2. {% endfor %}
{% include "netbox_checkmk_sync/inc/busy.html" %} {% endblock %}