{% extends 'base.html' %} {% block title %}Builder correspondance prod ↔ hors-prod{% endblock %} {% block content %}

Builder correspondance Prod ↔ Hors-Prod

Filtrer les serveurs, les désigner comme Prod ou Non-Prod, puis générer les liens en masse.

Validations
{{ stats.total_links }}
Liens existants (toutes apps)
{{ stats.filtered }}
Serveurs filtrés
0
Marqués PROD
0
Marqués NON-PROD
Reset
{% if can_edit %}
Générer correspondances

0 prod × 0 non-prod = 0 liens

{% endif %}
{% if can_edit %}{% endif %} {% if can_edit %}{% endif %} {% for s in servers %} {% if can_edit %}{% endif %} {% if can_edit %} {% endif %} {% endfor %} {% if not servers %} {% endif %}
Hostname Env Application Domaine Zone Liens existantsRôle
{{ s.hostname }} {% if s.env_name == 'Production' %}{{ s.env_name }} {% elif s.env_name %}{{ s.env_name }} {% else %}-{% endif %} {{ (s.application_name or '-')[:35] }} {{ s.domain_name or '-' }} {{ s.zone_name or '-' }} {% set link = server_links.get(s.id, {}) %} {% if link and link.as_prod %} → non-prod : {% for l in link.as_prod %}{{ l.hostname }}{% if not loop.last %}, {% endif %}{% endfor %} {% elif link and link.as_nonprod %} → prod : {% for l in link.as_nonprod %}{{ l.hostname }}{% if not loop.last %}, {% endif %}{% endfor %} {% else %} {% endif %}
Aucun serveur pour ces filtres
{% if can_edit %} {% endif %} {% endblock %}