2018-05-05 12:40:41 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
2019-10-25 07:18:57 +00:00
|
|
|
{% from 'include/input_macros.html' import input, checkbox %}
|
2018-05-05 12:40:41 +00:00
|
|
|
<script src="/inc/users.js"></script>
|
|
|
|
<table class="overview">
|
2019-09-20 06:42:19 +00:00
|
|
|
<caption><h3>Create new HA cluster</h3></caption>
|
2018-05-05 12:40:41 +00:00
|
|
|
<tr class="overviewHead">
|
|
|
|
<td class="padding10 first-collumn">Master</td>
|
|
|
|
<td>Slave</td>
|
2019-11-06 15:15:41 +00:00
|
|
|
<td><span title="Interface for VRRP addreess">Interface(?)</span></td>
|
2018-05-05 12:40:41 +00:00
|
|
|
<td>VRRP IP</td>
|
2019-11-06 15:15:41 +00:00
|
|
|
<td><span title="HAProxy-WI will try install HAProxy">HAProxy(?)</span></td>
|
2020-02-06 19:06:12 +00:00
|
|
|
<td><span title="HAProxy-WI will try install Nginx">Nginx(?)</span></td>
|
2018-07-17 03:21:08 +00:00
|
|
|
<td>SYN flood protect</td>
|
2018-05-05 12:40:41 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="padding10 first-collumn">
|
|
|
|
<select id="master">
|
|
|
|
<option disable selected>Choose master</option>
|
|
|
|
{% for select in selects %}
|
|
|
|
<option value="{{ select.2 }}">{{ select.1 }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<select id="slave">
|
|
|
|
<option disable selected>Choose master</option>
|
|
|
|
{% for select in selects %}
|
|
|
|
<option value="{{ select.2 }}">{{ select.1 }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</td>
|
2019-11-06 15:15:41 +00:00
|
|
|
<td>{{ input('interface', size='7') }}</td>
|
|
|
|
<td>{{ input('vrrp-ip', size='14') }}</td>
|
2019-10-25 07:18:57 +00:00
|
|
|
<td>{{ checkbox('hap') }}</td>
|
2020-02-06 19:06:12 +00:00
|
|
|
<td>{{ checkbox('nginx') }}</td>
|
2019-11-03 14:43:45 +00:00
|
|
|
<td>{{ checkbox('syn_flood') }}</td>
|
2018-05-05 12:40:41 +00:00
|
|
|
<td>
|
|
|
|
<a class="ui-button ui-widget ui-corner-all" id="create" title="Create HA configuration">Create</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
2019-10-21 06:00:16 +00:00
|
|
|
<table class="overview">
|
2019-09-20 06:42:19 +00:00
|
|
|
<caption><h3>Or add VRRP to exist</h3></caption>
|
2018-05-05 12:40:41 +00:00
|
|
|
<tr class="overviewHead">
|
|
|
|
<td class="padding10 first-collumn">Master</td>
|
|
|
|
<td>Slave</td>
|
2019-11-06 15:15:41 +00:00
|
|
|
<td><span title="Interface for VRRP addreess">Interface(?)</span></td>
|
2018-05-05 12:40:41 +00:00
|
|
|
<td>VRRP IP</td>
|
2019-11-06 15:15:41 +00:00
|
|
|
<td><span title="If checked HAProxy-WI will restart Keepalived">Restart(?)</span></td>
|
2020-02-06 19:06:12 +00:00
|
|
|
<td style="width: 23%;"></td>
|
|
|
|
<td></td>
|
2018-05-05 12:40:41 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="padding10 first-collumn">
|
|
|
|
<select id="master-add">
|
|
|
|
<option disable selected>Choose master</option>
|
|
|
|
{% for select in selects %}
|
|
|
|
<option value="{{ select.2 }}">{{ select.1 }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</td>
|
2019-10-21 06:00:16 +00:00
|
|
|
<td>
|
2018-05-05 12:40:41 +00:00
|
|
|
<select id="slave-add">
|
|
|
|
<option disable selected>Choose master</option>
|
|
|
|
{% for select in selects %}
|
|
|
|
<option value="{{ select.2 }}">{{ select.1 }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</td>
|
2019-11-06 15:15:41 +00:00
|
|
|
<td>{{ input('interface-add', size='7') }}</td>
|
|
|
|
<td>{{ input('vrrp-ip-add', size='14') }}</td>
|
2019-10-25 07:18:57 +00:00
|
|
|
<td>{{ checkbox('kp') }}</td>
|
2019-10-21 06:00:16 +00:00
|
|
|
<td></td>
|
2020-02-06 19:06:12 +00:00
|
|
|
<td></td>
|
2018-05-05 12:40:41 +00:00
|
|
|
<td>
|
|
|
|
<a class="ui-button ui-widget ui-corner-all" id="add-vrrp" title="Add HA configuration">Add</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<div id="ajax"></div>
|
2019-11-06 15:15:41 +00:00
|
|
|
<script>
|
|
|
|
$( function() {
|
|
|
|
$( "select" ).selectmenu({
|
|
|
|
width: 180
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2018-05-05 12:40:41 +00:00
|
|
|
{% endblock %}
|