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 >
2020-12-30 13:20:52 +00:00
< td > < span title = "Interface for VRRP address" > Interface(?)< / span > < / td >
2018-05-05 12:40:41 +00:00
< td > VRRP IP< / td >
2020-12-30 13:20:52 +00:00
< td > < span title = "HAProxy-WI will try to install HAProxy" > HAProxy(?)< / span > < / td >
< td > < span title = "HAProxy-WI will try to 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" >
2020-12-30 13:20:52 +00:00
< option disabled selected > Choose master< / option >
2018-05-05 12:40:41 +00:00
{% for select in selects %}
< option value = "{{ select.2 }}" > {{ select.1 }}< / option >
{% endfor %}
< / select >
< / td >
< td >
< select id = "slave" >
2020-12-30 13:20:52 +00:00
< option disabled selected > Choose master< / option >
2018-05-05 12:40:41 +00:00
{% 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 >
2020-08-04 16:40:58 +00:00
< button id = "create" title = "Create HA configuration" > Create< / button >
2018-05-05 12:40:41 +00:00
< / 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 >
2020-12-30 13:20:52 +00:00
< td > < span title = "Interface for VRRP address" > 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" >
2020-12-30 13:20:52 +00:00
< option disabled selected > Choose master< / option >
2018-05-05 12:40:41 +00:00
{% 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" >
2020-12-30 13:20:52 +00:00
< option disabled selected > Choose master< / option >
2018-05-05 12:40:41 +00:00
{% 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 >
2020-08-04 16:40:58 +00:00
< button id = "add-vrrp" title = "Add HA configuration" > Add< / button >
2018-05-05 12:40:41 +00:00
< / td >
< / tr >
< / table >
< div id = "ajax" > < / div >
2020-12-30 13:20:52 +00:00
< div class = "add-note addName alert-info" style = "width: inherit; margin-right: 15px;" >
Read < a href = "https://haproxy-wi.org/howto.py?howto=ha_cluster" title = "How to create high available cluster" target = "_blank" > How to create high available cluster< / a >
< / 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 %}