File tree 4 files changed +16
-2
lines changed
4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ haproxy_ssl_bind_ciphers: 'ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES1
2
2
haproxy_ssl_bind_options : ' no-sslv3'
3
3
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'
4
4
haproxy_ssl_server_options : ' no-sslv3'
5
+
5
6
haproxy_chroot : True
6
7
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 }}"
Original file line number Diff line number Diff line change 33
33
34
34
- name : Configure haproxy to use conf.d-style configs
35
35
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
37
37
register : dropindir
38
38
39
39
- name : Setup chroot
Original file line number Diff line number Diff line change
1
+ # Managed by ansible (role: haproxy)
2
+ # DO NOT EDIT!
3
+
1
4
global
2
5
log /dev/log local0 notice
3
6
log /dev/log local1 notice
14
17
ca-base /etc/ssl/certs
15
18
crt-base /etc/ssl/private
16
19
20
+ maxconn {{ haproxy_maxconn }}
21
+
17
22
# Default ciphers to use on SSL-enabled listening sockets.
18
23
# For more information, see ciphers(1SSL). This list is from:
19
24
# https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
Original file line number Diff line number Diff line change
1
+ # Managed by ansible (role: haproxy)
2
+ # DO NOT EDIT!
3
+
1
4
[Service]
5
+ LimitNOFILE={{ haproxy_limit_no_file }}
2
6
ExecStartPre=
3
7
ExecStartPre=/etc/haproxy/gen-conf.sh
4
8
ExecStartPre=/usr/sbin/haproxy -f ${CONFIG} -c -q $EXTRAOPTS
You can’t perform that action at this time.
0 commit comments