{% extends "base.html" %} {% from "_macros.html" import crumbs, page_header %} {# Add a host (host is none) or edit one; `values` holds what was typed when an error sends the form back. Laid out like the add-monitor form (#5283). #} {% block title %}{{ "Edit " ~ host.name if host else "Add host" }} — Steward{% endblock %} {% block breadcrumb %} {%- if host -%} {{ crumbs([("Hosts", "/hosts/"), (host.name, "/hosts/" ~ host.id), ("Edit", "")]) }} {%- else -%} {{ crumbs([("Hosts", "/hosts/"), ("Add host", "")]) }} {%- endif -%} {% endblock %} {% block content %} {% set v = values or {} %} {{ page_header("Edit host" if host else "Add host") }}
{% if error %}{% endif %}
{{ csrf_field() }}

{% if host %}Renaming carries the host's agent and container history, and the alert rules on it, to the new name. {% else %}Next, on the host's page: add monitors, install its agent, and link an Ansible target.{% endif %}

Cancel
{% endblock %}