56 lines
2.4 KiB
HTML
56 lines
2.4 KiB
HTML
{% extends 'base.html' %}
|
||
{% block title %}Pré-patching — iexec{% endblock %}
|
||
{% block content %}
|
||
<div class="flex justify-between items-center mb-4">
|
||
<div>
|
||
<h2 class="text-xl font-bold text-cyber-accent">Pré-patching — workflow iexec</h2>
|
||
<p class="text-xs text-gray-500 mt-1">
|
||
{{ rows|length }} serveur(s) éligible(s) sélectionné(s) sur {{ row_ids|length }} demandés.
|
||
</p>
|
||
</div>
|
||
<a href="javascript:history.back()" class="btn-sm bg-cyber-border text-cyber-accent px-4 py-2">← Retour</a>
|
||
</div>
|
||
|
||
<div class="card p-4 mb-4 border border-cyber-yellow/40">
|
||
<h3 class="text-sm font-bold text-cyber-yellow mb-2">⚠ Étape B — workflow à implémenter</h3>
|
||
<p class="text-xs text-gray-400">
|
||
Les 3 steps planifiés :
|
||
</p>
|
||
<ol class="text-xs text-gray-300 list-decimal pl-5 mt-2 space-y-1">
|
||
<li><strong>Step 1 — Pré-patching</strong> : vérif résolution DNS · vérif SSH · vérif Satellite (capsule)</li>
|
||
<li><strong>Step 2 — Snapshot</strong> : take snapshot vCenter (avant modif)</li>
|
||
<li><strong>Step 3 — Patch</strong> : <code>yum update -y --exclude=<effective_excludes></code></li>
|
||
</ol>
|
||
</div>
|
||
|
||
<div class="card p-3 mb-4">
|
||
<h3 class="text-sm font-bold text-cyber-accent mb-2">Serveurs ciblés ({{ rows|length }})</h3>
|
||
{% if rows %}
|
||
<table class="w-full text-xs">
|
||
<thead class="text-cyber-accent border-b border-cyber-border">
|
||
<tr>
|
||
<th class="text-left p-1">Asset</th>
|
||
<th class="text-left p-1">Hostname BDD</th>
|
||
<th class="text-left p-1">Env</th>
|
||
<th class="text-left p-1">OS</th>
|
||
<th class="text-left p-1">Excludes effectifs</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{% for r in rows %}
|
||
<tr class="border-b border-cyber-border/30">
|
||
<td class="p-1 font-mono">{{ r.asset_name }}</td>
|
||
<td class="p-1 font-mono">{{ r.hostname or '–' }}</td>
|
||
<td class="p-1">{{ r.environnement or '' }}</td>
|
||
<td class="p-1">{{ r.os or '' }}</td>
|
||
<td class="p-1 text-cyber-yellow">{{ r.effective_excludes or '(aucun)' }}</td>
|
||
</tr>
|
||
{% endfor %}
|
||
</tbody>
|
||
</table>
|
||
{% else %}
|
||
<p class="text-xs text-gray-500">Aucune ligne éligible parmi les IDs demandés.</p>
|
||
{% endif %}
|
||
</div>
|
||
{% endblock %}
|