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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Eric Zillmann
haproxy
Commits
44068f8d
Commit
44068f8d
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-inventories/arocom#108 Allow support for external hosts in HaProxy
parent
cc3e4ed8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-3
1 addition, 3 deletions
README.md
tasks/configure.yml
+1
-1
1 addition, 1 deletion
tasks/configure.yml
templates/haproxy_cfg
+9
-0
9 additions, 0 deletions
templates/haproxy_cfg
with
11 additions
and
4 deletions
README.md
+
1
−
3
View file @
44068f8d
#HaProxy#
##Instruction to prepare a certificate file##
# Instruction to prepare a certificate file
For HaProxy to terminate SSL requests we require a single PEM file with all certificate components chained together.
...
...
This diff is collapsed.
Click to expand it.
tasks/configure.yml
+
1
−
1
View file @
44068f8d
...
...
@@ -33,7 +33,7 @@
mode=644
state=touch
with_items
:
'
{{
groups.all
}}'
notify
:
'
Proxy
|
Restart
HAProxy'
changed_when
:
false
-
name
:
"
Proxy
|
Create
config
file"
template
:
src=haproxy_cfg
...
...
This diff is collapsed.
Click to expand it.
templates/haproxy_cfg
+
9
−
0
View file @
44068f8d
...
...
@@ -110,6 +110,10 @@ frontend https_in_{{ cert.ip }}
acl kibana_present hdr(host) -i -n '{{ kibana_domain|default(inventory_hostname) }}'
use_backend backend_kibana if kibana_present
{% endif %}
{% for external in cert.external|default([]) %}
acl is_{{ external.key }} {{ external.acl }}
use_backend backend_{{ external.key }} if is_{{ external.key }}
{% endfor %}
{% if varnish_host|default(false) %}
acl static_content path_end .jpg .jpeg .gif .png .ico .swf .css .js .htm .html
use_backend backend_varnish if static_content
...
...
@@ -124,6 +128,11 @@ frontend https_in_{{ cert.ip }}
use_backend backend_redirect if crm_redirect_{{host}}
{% endif %}
{% endfor %}
{% for external in cert.external|default([]) %}
backend backend_{{ external.key }}
server server_{{ external.key }} {{ external.server }} maxconn 100
{% endfor %}
{% endfor %}
{% for host in groups['all'] %}
...
...
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