Skip to content

Commit deb4bde

Browse files
authored
Merge branch 'master' into archlinux
2 parents 571da29 + 2fe6dcc commit deb4bde

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

defaults/main.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ haproxy_ssl_bind_ciphers: 'ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES1
22
haproxy_ssl_bind_options: 'no-sslv3'
33
haproxy_ssl_server_ciphers: 'ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS'
44
haproxy_ssl_server_options: 'no-sslv3'
5+
56
haproxy_chroot: True
67

7-
haproxy_debian_release: "{{ ansible_distribution_release }}"
8+
haproxy_maxconn: 512
9+
haproxy_own_file_limit: 25
10+
haproxy_limit_no_file: "{{ haproxy_maxconn + haproxy_own_file_limit }}"
11+
12+
haproxy_debian_release: "{{ ansible_distribution_release }}"

tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
- name: Configure haproxy to use conf.d-style configs
3535
become: True
36-
copy: src=haproxy-systemd.conf dest=/etc/systemd/system/haproxy.service.d/ansible.conf owner=root group=root mode=0644
36+
template: src=systemd.service.j2 dest=/etc/systemd/system/haproxy.service.d/ansible.conf owner=root group=root mode=0644
3737
register: dropindir
3838

3939
- name: Setup chroot

templates/01-defaults.conf.j2

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Managed by ansible (role: haproxy)
2+
# DO NOT EDIT!
3+
14
global
25
log /dev/log local0 notice
36
log /dev/log local1 notice
@@ -14,6 +17,8 @@ global
1417
ca-base /etc/ssl/certs
1518
crt-base /etc/ssl/private
1619

20+
maxconn {{ haproxy_maxconn }}
21+
1722
# Default ciphers to use on SSL-enabled listening sockets.
1823
# For more information, see ciphers(1SSL). This list is from:
1924
# https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/

files/haproxy-systemd.conf renamed to templates/systemd.service.j2

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
# Managed by ansible (role: haproxy)
2+
# DO NOT EDIT!
3+
14
[Service]
5+
LimitNOFILE={{ haproxy_limit_no_file }}
26
ExecStartPre=
37
ExecStartPre=/etc/haproxy/gen-conf.sh
48
ExecStartPre=/usr/sbin/haproxy -f ${CONFIG} -c -q $EXTRAOPTS

0 commit comments

Comments
 (0)