forked from lotusnoir/ansible-apps_gobetween
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
73 lines (71 loc) · 1.88 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
# Install
gobetween_version: "0.8.0"
gobetween_binary_file: "/usr/local/bin/gobetween"
gobetween_install_dir: "/etc/gobetween"
gobetween_install_local: false
gobetween_local_file: ""
#gobetween_ulimit: "65536"
gobetween_log_file: /var/log/gobetween.log
gobetween_owner: gobetween
gobetween_owner_group: gobetween
# config
gobetween_healthcheck_user: "gobetween"
#gobetween_target_servers: {{ groups['group name'] }}
gobetween_target_servers:
- localhost
# - server2
# - server3 ...
gobetween_log_level: info
gobetween_profiler: "false"
gobetween_profiler_port: "6060"
gobetween_api: "false"
gobetween_api_port: "8888"
gobetween_api_cors: "false"
gobetween_metrics: "true"
gobetween_metrics_port: "9101"
gobetween_targets:
- name: syslog2
bind_address: 0.0.0.0
port: 5124
protocol: tcp
balance: roundrobin
max_connections: 0
client_idle_timeout: 2m
backend_idle_timeout: 2m
backend_conn_timeout: 0
transparent: true
max_reponses: 10
max_requests: 1
targets: "{{ gobetween_target_servers }}"
# - {name: syslog3, port: 514, protocol: udp, targets: ["server1", "server2" ] }
- name: ingress #The name you want
bind_address: 0.0.0.0
port: 443
protocol: tcp
balance: iphash1
max_connections: 0
client_idle_timeout: 2m
backend_idle_timeout: 2m
backend_conn_timeout: 0
transparent: true
max_reponses: 10
max_requests: 1
kind: "srv"
srv_lookup_server: "1.1.1.1" #Your DNS IP Server
srv_lookup_pattern: "https._tcp.my.srv.record." #The SRV record defined in your dns
gobetween_healthcheck:
syslog2:
kind: exec
interval: 30s
timeout: 5s
exec_command: "{{ gobetween_install_dir }}/healthcheck.sh"
exec_expected_positive_output: success
exec_expected_negative_output: fail
ingress:
kind: ping
interval: 5s
timeout: 2s
ping_timeout_duration: "250ms"
fails: 3
passes: 2