Skip to content
Snippets Groups Projects
Commit 5e8f6bc0 authored by Tim Fechner's avatar Tim Fechner
Browse files

Close #20, show sshd configuration

Make the minion general tab more responsive (#21)
parent fcf51276
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -53,7 +53,7 @@
<!-- general -->
<div role="tabpanel" class="tab-pane fade in active" id="general">
<div class="row">
<div class="col-md-8">
<div class="col-lg-8">
{% block general-tab %}
<a class="text-muted pull-right" href="{% url 'minion-edit' minion.fqdn %}"><i class="fa fa-2x fa-pencil"></i></a>
......@@ -72,7 +72,9 @@
{% endblock %}
</div>
<div class="col-md-4">
<div class="col-lg-4">
<h2>Datasheet</h2>
<table class="table datatable">
<tbody>
<tr>
......@@ -115,6 +117,56 @@
</tr>
</tbody>
</table>
<h2>SSH Configuration</h2>
<table class="table datatable">
<tbody>
<tr>
<td>Port</td>
<td>{{ minion.data.grains.openssh.port }}</td>
</tr>
<tr>
<td>Permit root login</td>
<td>
{% if minion.data.grains.openssh.permitrootlogin %}
<span class="text-danger"><i class="fa fa-fw fa-times"></i> Yes</span>
{% else %}
<span class="text-success"><i class="fa fa-fw fa-check"></i> No</span>
{% endif %}
</td>
</tr>
<tr>
<td>Permit empty passwords</td>
<td>
{% if minion.data.grains.openssh.permitemptypasswords %}
<span class="text-danger"><i class="fa fa-fw fa-times"></i> Yes</span>
{% else %}
<span class="text-success"><i class="fa fa-fw fa-check"></i> No</span>
{% endif %}
</td>
</tr>
<tr>
<td>Passwort authentication</td>
<td>
{% if minion.data.grains.openssh.passwortauthentication %}
<span class="text-danger"><i class="fa fa-fw fa-times"></i> Yes</span>
{% else %}
<span class="text-success"><i class="fa fa-fw fa-check"></i> No</span>
{% endif %}
</td>
</tr>
<tr>
<td>Public key authentication</td>
<td>
{% if minion.data.grains.openssh.pubkeyauthentication %}
<span class="text-success"><i class="fa fa-fw fa-check"></i> Yes</span>
{% else %}
<span class="text-danger"><i class="fa fa-fw fa-times"></i> No</span>
{% endif %}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment