Import Ansible playbook for bootstrap k8s cluster

This commit is contained in:
D4rk4 2020-07-31 03:39:43 +02:00
parent 5068274017
commit a6706498b6
17 changed files with 230 additions and 3 deletions

View file

@ -0,0 +1,31 @@
! Configuration File for keepalived
global_defs {
}
{#vrrp_script haproxy-check {
script "killall -0 haproxy"
interval 2
weight 20
}#}
vrrp_instance VI_1 {
state {{ keepalived_role }}
interface {{ keepalived_shared_iface }}
virtual_router_id {{ keepalived_router_id }}
{% if keepalived_role.lower() == "master" %}
priority {{ keepalived_priority }}
{% else %}
priority {{ keepalived_backup_priority }}
{% endif %}
advert_int 1
authentication {
auth_type PASS
auth_pass {{ keepalived_auth_pass }}
}
virtual_ipaddress {
{{ keepalived_shared_ip }} dev {{ keepalived_shared_iface }} label {{ keepalived_shared_iface }}:0
}
{# track_script {
haproxy-check weight 20
}#}
}