Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
haproxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
haproxy
Commits
dde8f76d
Commit
dde8f76d
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-inventories/arocom#2898 Prepare Varnish health check in HaProxy
parent
d2527732
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/haproxy_cfg.jinja2
+4
-4
4 additions, 4 deletions
templates/haproxy_cfg.jinja2
with
4 additions
and
4 deletions
templates/haproxy_cfg.jinja2
+
4
−
4
View file @
dde8f76d
...
...
@@ -430,9 +430,9 @@ backend backend_varnish
option forwardfor
hash-type consistent
{% if varnish_host == inventory_hostname %}
server varnish 127.0.0.1:6081 maxconn {{proxy_varnish_maxconn}}
server varnish 127.0.0.1:6081
check
maxconn {{proxy_varnish_maxconn}}
{% else %}
server varnish {{ varnish_host_ip|default('') }}:6081 maxconn {{proxy_varnish_maxconn}}
server varnish {{ varnish_host_ip|default('') }}:6081
check
maxconn {{proxy_varnish_maxconn}}
{% endif %}
backend backend_varnish_bigpipe
...
...
@@ -446,9 +446,9 @@ backend backend_varnish_bigpipe
option forwardfor
hash-type consistent
{% if varnish_host == inventory_hostname %}
server varnish 127.0.0.1:6081 maxconn {{proxy_varnish_maxconn}}
server varnish 127.0.0.1:6081
check
maxconn {{proxy_varnish_maxconn}}
{% else %}
server varnish {{ varnish_host_ip|default('') }}:6081 maxconn {{proxy_varnish_maxconn}}
server varnish {{ varnish_host_ip|default('') }}:6081
check
maxconn {{proxy_varnish_maxconn}}
{% endif %}
{% endif %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment