Skip to content
Snippets Groups Projects
Verified Commit 2f271c0a authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix indent

parent 050a6db7
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ repmgr_primary_node: "{{ hostvars['pg1']['ansible_default_ipv4']['address'] }}"
hap_config_listen:
- name: pgsql-primary
content: |
content: |2
bind localhost:54321
default-server inter 2s fall 3 rise 2 on-marked-down shutdown-sessions
option tcp-check
......@@ -14,7 +14,7 @@ hap_config_listen:
server pg1 192.168.122.1:5432 maxconn 500 check port 8543
server pg2 192.168.122.2:5432 maxconn 500 check port 8543 backup
- name: pgsql-standby
content: |
content: |2
bind localhost:54322
default-server inter 2s fall 3 rise 2 on-marked-down shutdown-sessions
option tcp-check
......@@ -23,7 +23,7 @@ hap_config_listen:
server pg1 192.168.122.1:5432 maxconn 500 check port 8543
server pg2 192.168.122.2:5432 maxconn 500 check port 8543
- name: wowza
content: |
content: |2
bind :1935
stick-table type ip size 1
stick on dst
......
......@@ -5,7 +5,7 @@ hap_packages:
hap_config: /etc/haproxy/haproxy.cfg
hap_config_global: |
hap_config_global: |2
log /dev/log local0 warning
log /dev/log local1 warning
chroot /var/lib/haproxy
......@@ -15,7 +15,7 @@ hap_config_global: |
group haproxy
daemon
hap_config_defaults: |
hap_config_defaults: |2
log global
mode tcp
balance leastconn
......@@ -31,7 +31,7 @@ hap_config_defaults: |
option srvtcpka
hap_stats_enabled: false
hap_config_stats: |
hap_config_stats: |2
bind :9000
mode http
stats enable
......
global
{{ hap_config_global }}
{{ hap_config_global }}
defaults
{{ hap_config_defaults }}
{{ hap_config_defaults }}
{% if hap_stats_enabled %}
listen stats
{{ hap_config_stats }}
{{ hap_config_stats }}
{% endif %}
{% for listen in hap_config_listen %}
listen {{ listen.name }}
{{ listen.content }}
{{ listen.content }}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment