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'] }}" ...@@ -5,7 +5,7 @@ repmgr_primary_node: "{{ hostvars['pg1']['ansible_default_ipv4']['address'] }}"
hap_config_listen: hap_config_listen:
- name: pgsql-primary - name: pgsql-primary
content: | content: |2
bind localhost:54321 bind localhost:54321
default-server inter 2s fall 3 rise 2 on-marked-down shutdown-sessions default-server inter 2s fall 3 rise 2 on-marked-down shutdown-sessions
option tcp-check option tcp-check
...@@ -14,7 +14,7 @@ hap_config_listen: ...@@ -14,7 +14,7 @@ hap_config_listen:
server pg1 192.168.122.1:5432 maxconn 500 check port 8543 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 server pg2 192.168.122.2:5432 maxconn 500 check port 8543 backup
- name: pgsql-standby - name: pgsql-standby
content: | content: |2
bind localhost:54322 bind localhost:54322
default-server inter 2s fall 3 rise 2 on-marked-down shutdown-sessions default-server inter 2s fall 3 rise 2 on-marked-down shutdown-sessions
option tcp-check option tcp-check
...@@ -23,7 +23,7 @@ hap_config_listen: ...@@ -23,7 +23,7 @@ hap_config_listen:
server pg1 192.168.122.1:5432 maxconn 500 check port 8543 server pg1 192.168.122.1:5432 maxconn 500 check port 8543
server pg2 192.168.122.2:5432 maxconn 500 check port 8543 server pg2 192.168.122.2:5432 maxconn 500 check port 8543
- name: wowza - name: wowza
content: | content: |2
bind :1935 bind :1935
stick-table type ip size 1 stick-table type ip size 1
stick on dst stick on dst
......
...@@ -5,7 +5,7 @@ hap_packages: ...@@ -5,7 +5,7 @@ hap_packages:
hap_config: /etc/haproxy/haproxy.cfg hap_config: /etc/haproxy/haproxy.cfg
hap_config_global: | hap_config_global: |2
log /dev/log local0 warning log /dev/log local0 warning
log /dev/log local1 warning log /dev/log local1 warning
chroot /var/lib/haproxy chroot /var/lib/haproxy
...@@ -15,7 +15,7 @@ hap_config_global: | ...@@ -15,7 +15,7 @@ hap_config_global: |
group haproxy group haproxy
daemon daemon
hap_config_defaults: | hap_config_defaults: |2
log global log global
mode tcp mode tcp
balance leastconn balance leastconn
...@@ -31,7 +31,7 @@ hap_config_defaults: | ...@@ -31,7 +31,7 @@ hap_config_defaults: |
option srvtcpka option srvtcpka
hap_stats_enabled: false hap_stats_enabled: false
hap_config_stats: | hap_config_stats: |2
bind :9000 bind :9000
mode http mode http
stats enable stats enable
......
global global
{{ hap_config_global }} {{ hap_config_global }}
defaults defaults
{{ hap_config_defaults }} {{ hap_config_defaults }}
{% if hap_stats_enabled %} {% if hap_stats_enabled %}
listen stats listen stats
{{ hap_config_stats }} {{ hap_config_stats }}
{% endif %} {% endif %}
{% for listen in hap_config_listen %} {% for listen in hap_config_listen %}
listen {{ listen.name }} listen {{ listen.name }}
{{ listen.content }} {{ listen.content }}
{% endfor %} {% 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