Skip to content

Commit b087b6f

Browse files
authored
Merge pull request #22 from r4f4/haproxy-domain-ci
haproxy: accept hostnames ending with `.ci`
2 parents 4876d8d + 5a17fcb commit b087b6f

File tree

5 files changed

+198
-0
lines changed

5 files changed

+198
-0
lines changed

libvirt/haproxy/haproxy_C155F2U31.cfg

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,27 @@ frontend api-all
5757
acl 00-api req_ssl_sni -m end .libvirt-ppc64le-1-0
5858
use_backend masters-00 if 00-api
5959

60+
acl 00-api-ci req_ssl_sni -m end .libvirt-ppc64le-1-0.ci
61+
use_backend masters-00 if 00-api-ci
62+
6063
acl 01-api req_ssl_sni -m end .libvirt-ppc64le-1-1
6164
use_backend masters-01 if 01-api
6265

66+
acl 01-api-ci req_ssl_sni -m end .libvirt-ppc64le-1-1.ci
67+
use_backend masters-01 if 01-api-ci
68+
6369
acl 02-api req_ssl_sni -m end .libvirt-ppc64le-1-2
6470
use_backend masters-02 if 02-api
6571

72+
acl 02-api-ci req_ssl_sni -m end .libvirt-ppc64le-1-2.ci
73+
use_backend masters-02 if 02-api-ci
74+
6675
acl 03-api req_ssl_sni -m end .libvirt-ppc64le-1-3
6776
use_backend masters-03 if 03-api
6877

78+
acl 03-api-ci req_ssl_sni -m end .libvirt-ppc64le-1-3.ci
79+
use_backend masters-03 if 03-api-ci
80+
6981
#---------------------------------------------------------------------
7082
# HTTP frontend which proxys to the created worker nodes
7183
#---------------------------------------------------------------------
@@ -76,15 +88,27 @@ frontend http-all
7688
acl 00-http hdr(host) -m end .libvirt-ppc64le-1-0
7789
use_backend http-workers-00 if 00-http
7890

91+
acl 00-http-ci hdr(host) -m end .libvirt-ppc64le-1-0.ci
92+
use_backend http-workers-00 if 00-http-ci
93+
7994
acl 01-http hdr(host) -m end .libvirt-ppc64le-1-1
8095
use_backend http-workers-01 if 01-http
8196

97+
acl 01-http-ci hdr(host) -m end .libvirt-ppc64le-1-1.ci
98+
use_backend http-workers-01 if 01-http-ci
99+
82100
acl 02-http hdr(host) -m end .libvirt-ppc64le-1-2
83101
use_backend http-workers-02 if 02-http
84102

103+
acl 02-http-ci hdr(host) -m end .libvirt-ppc64le-1-2.ci
104+
use_backend http-workers-02 if 02-http-ci
105+
85106
acl 03-http hdr(host) -m end .libvirt-ppc64le-1-3
86107
use_backend http-workers-03 if 03-http
87108

109+
acl 03-http-ci hdr(host) -m end .libvirt-ppc64le-1-3.ci
110+
use_backend http-workers-03 if 03-http-ci
111+
88112
#---------------------------------------------------------------------
89113
# HTTPS frontend which proxys to the created worker nodes
90114
#---------------------------------------------------------------------
@@ -100,15 +124,27 @@ frontend https-all
100124
acl 00-https req_ssl_sni -m end .libvirt-ppc64le-1-0
101125
use_backend https-workers-00 if 00-https
102126

127+
acl 00-https-ci req_ssl_sni -m end .libvirt-ppc64le-1-0.ci
128+
use_backend https-workers-00 if 00-https-ci
129+
103130
acl 01-https req_ssl_sni -m end .libvirt-ppc64le-1-1
104131
use_backend https-workers-01 if 01-https
105132

133+
acl 01-https-ci req_ssl_sni -m end .libvirt-ppc64le-1-1.ci
134+
use_backend https-workers-01 if 01-https-ci
135+
106136
acl 02-https req_ssl_sni -m end .libvirt-ppc64le-1-2
107137
use_backend https-workers-02 if 02-https
108138

139+
acl 02-https-ci req_ssl_sni -m end .libvirt-ppc64le-1-2.ci
140+
use_backend https-workers-02 if 02-https-ci
141+
109142
acl 03-https req_ssl_sni -m end .libvirt-ppc64le-1-3
110143
use_backend https-workers-03 if 03-https
111144

145+
acl 03-https-ci req_ssl_sni -m end .libvirt-ppc64le-1-3.ci
146+
use_backend https-workers-03 if 03-https-ci
147+
112148
#---------------------------------------------------------------------
113149
# Master node backends for serving API traffic
114150
#---------------------------------------------------------------------

libvirt/haproxy/haproxy_C155F2U33.cfg

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,27 @@ frontend api-all
5757
acl 00-api req_ssl_sni -m end .libvirt-ppc64le-0-0
5858
use_backend masters-00 if 00-api
5959

60+
acl 00-api-ci req_ssl_sni -m end .libvirt-ppc64le-0-0.ci
61+
use_backend masters-00 if 00-api-ci
62+
6063
acl 01-api req_ssl_sni -m end .libvirt-ppc64le-0-1
6164
use_backend masters-01 if 01-api
6265

66+
acl 01-api-ci req_ssl_sni -m end .libvirt-ppc64le-0-1.ci
67+
use_backend masters-01 if 01-api-ci
68+
6369
acl 02-api req_ssl_sni -m end .libvirt-ppc64le-0-2
6470
use_backend masters-02 if 02-api
6571

72+
acl 02-api-ci req_ssl_sni -m end .libvirt-ppc64le-0-2.ci
73+
use_backend masters-02 if 02-api-ci
74+
6675
acl 03-api req_ssl_sni -m end .libvirt-ppc64le-0-3
6776
use_backend masters-03 if 03-api
6877

78+
acl 03-api-ci req_ssl_sni -m end .libvirt-ppc64le-0-3.ci
79+
use_backend masters-03 if 03-api-ci
80+
6981
#---------------------------------------------------------------------
7082
# HTTP frontend which proxys to the created worker nodes
7183
#---------------------------------------------------------------------
@@ -77,15 +89,27 @@ frontend http-all
7789
acl 00-http hdr(host) -m end .libvirt-ppc64le-0-0
7890
use_backend http-workers-00 if 00-http
7991

92+
acl 00-http-ci hdr(host) -m end .libvirt-ppc64le-0-0.ci
93+
use_backend http-workers-00 if 00-http-ci
94+
8095
acl 01-http hdr(host) -m end .libvirt-ppc64le-0-1
8196
use_backend http-workers-01 if 01-http
8297

98+
acl 01-http-ci hdr(host) -m end .libvirt-ppc64le-0-1.ci
99+
use_backend http-workers-01 if 01-http-ci
100+
83101
acl 02-http hdr(host) -m end .libvirt-ppc64le-0-2
84102
use_backend http-workers-02 if 02-http
85103

104+
acl 02-http-ci hdr(host) -m end .libvirt-ppc64le-0-2.ci
105+
use_backend http-workers-02 if 02-http-ci
106+
86107
acl 03-http hdr(host) -m end .libvirt-ppc64le-0-3
87108
use_backend http-workers-03 if 03-http
88109

110+
acl 03-http-ci hdr(host) -m end .libvirt-ppc64le-0-3.ci
111+
use_backend http-workers-03 if 03-http-ci
112+
89113
#---------------------------------------------------------------------
90114
# HTTPS frontend which proxys to the created worker nodes
91115
#---------------------------------------------------------------------
@@ -101,15 +125,27 @@ frontend https-all
101125
acl 00-https req_ssl_sni -m end .libvirt-ppc64le-0-0
102126
use_backend https-workers-00 if 00-https
103127

128+
acl 00-https-ci req_ssl_sni -m end .libvirt-ppc64le-0-0.ci
129+
use_backend https-workers-00 if 00-https-ci
130+
104131
acl 01-https req_ssl_sni -m end .libvirt-ppc64le-0-1
105132
use_backend https-workers-01 if 01-https
106133

134+
acl 01-https-ci req_ssl_sni -m end .libvirt-ppc64le-0-1.ci
135+
use_backend https-workers-01 if 01-https-ci
136+
107137
acl 02-https req_ssl_sni -m end .libvirt-ppc64le-0-2
108138
use_backend https-workers-02 if 02-https
109139

140+
acl 02-https-ci req_ssl_sni -m end .libvirt-ppc64le-0-2.ci
141+
use_backend https-workers-02 if 02-https-ci
142+
110143
acl 03-https req_ssl_sni -m end .libvirt-ppc64le-0-3
111144
use_backend https-workers-03 if 03-https
112145

146+
acl 03-https-ci req_ssl_sni -m end .libvirt-ppc64le-0-3.ci
147+
use_backend https-workers-03 if 03-https-ci
148+
113149
#---------------------------------------------------------------------
114150
# Master node backends for serving API traffic
115151
#---------------------------------------------------------------------

libvirt/haproxy/haproxy_C155F2U35.cfg

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,27 @@ frontend api-all
5757
acl 00-api req_ssl_sni -m end .libvirt-ppc64le-2-0
5858
use_backend masters-00 if 00-api
5959

60+
acl 00-api-ci req_ssl_sni -m end .libvirt-ppc64le-2-0.ci
61+
use_backend masters-00 if 00-api-ci
62+
6063
acl 01-api req_ssl_sni -m end .libvirt-ppc64le-2-1
6164
use_backend masters-01 if 01-api
6265

66+
acl 01-api-ci req_ssl_sni -m end .libvirt-ppc64le-2-1.ci
67+
use_backend masters-01 if 01-api-ci
68+
6369
acl 02-api req_ssl_sni -m end .libvirt-ppc64le-2-2
6470
use_backend masters-02 if 02-api
6571

72+
acl 02-api-ci req_ssl_sni -m end .libvirt-ppc64le-2-2.ci
73+
use_backend masters-02 if 02-api-ci
74+
6675
acl 03-api req_ssl_sni -m end .libvirt-ppc64le-2-3
6776
use_backend masters-03 if 03-api
6877

78+
acl 03-api-ci req_ssl_sni -m end .libvirt-ppc64le-2-3.ci
79+
use_backend masters-03 if 03-api-ci
80+
6981
#---------------------------------------------------------------------
7082
# HTTP frontend which proxys to the created worker nodes
7183
#---------------------------------------------------------------------
@@ -76,15 +88,27 @@ frontend http-all
7688
acl 00-http hdr(host) -m end .libvirt-ppc64le-2-0
7789
use_backend http-workers-00 if 00-http
7890

91+
acl 00-http-ci hdr(host) -m end .libvirt-ppc64le-2-0.ci
92+
use_backend http-workers-00 if 00-http-ci
93+
7994
acl 01-http hdr(host) -m end .libvirt-ppc64le-2-1
8095
use_backend http-workers-01 if 01-http
8196

97+
acl 01-http-ci hdr(host) -m end .libvirt-ppc64le-2-1.ci
98+
use_backend http-workers-01 if 01-http-ci
99+
82100
acl 02-http hdr(host) -m end .libvirt-ppc64le-2-2
83101
use_backend http-workers-02 if 02-http
84102

103+
acl 02-http-ci hdr(host) -m end .libvirt-ppc64le-2-2.ci
104+
use_backend http-workers-02 if 02-http-ci
105+
85106
acl 03-http hdr(host) -m end .libvirt-ppc64le-2-3
86107
use_backend http-workers-03 if 03-http
87108

109+
acl 03-http-ci hdr(host) -m end .libvirt-ppc64le-2-3.ci
110+
use_backend http-workers-03 if 03-http-ci
111+
88112
#---------------------------------------------------------------------
89113
# HTTPS frontend which proxys to the created worker nodes
90114
#---------------------------------------------------------------------
@@ -100,15 +124,27 @@ frontend https-all
100124
acl 00-https req_ssl_sni -m end .libvirt-ppc64le-2-0
101125
use_backend https-workers-00 if 00-https
102126

127+
acl 00-https-ci req_ssl_sni -m end .libvirt-ppc64le-2-0.ci
128+
use_backend https-workers-00 if 00-https-ci
129+
103130
acl 01-https req_ssl_sni -m end .libvirt-ppc64le-2-1
104131
use_backend https-workers-01 if 01-https
105132

133+
acl 01-https-ci req_ssl_sni -m end .libvirt-ppc64le-2-1.ci
134+
use_backend https-workers-01 if 01-https-ci
135+
106136
acl 02-https req_ssl_sni -m end .libvirt-ppc64le-2-2
107137
use_backend https-workers-02 if 02-https
108138

139+
acl 02-https-ci req_ssl_sni -m end .libvirt-ppc64le-2-2.ci
140+
use_backend https-workers-02 if 02-https-ci
141+
109142
acl 03-https req_ssl_sni -m end .libvirt-ppc64le-2-3
110143
use_backend https-workers-03 if 03-https
111144

145+
acl 03-https-ci req_ssl_sni -m end .libvirt-ppc64le-2-3.ci
146+
use_backend https-workers-03 if 03-https-ci
147+
112148
#---------------------------------------------------------------------
113149
# Master node backends for serving API traffic
114150
#---------------------------------------------------------------------

libvirt/haproxy/haproxy_lnxocp01.cfg

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,33 @@ frontend api-all
5757
acl 00-api req_ssl_sni -m end .libvirt-s390x-0-0
5858
use_backend masters-00 if 00-api
5959

60+
acl 00-api-ci req_ssl_sni -m end .libvirt-s390x-0-0.ci
61+
use_backend masters-00 if 00-api-ci
62+
6063
acl 01-api req_ssl_sni -m end .libvirt-s390x-0-1
6164
use_backend masters-01 if 01-api
6265

66+
acl 01-api-ci req_ssl_sni -m end .libvirt-s390x-0-1.ci
67+
use_backend masters-01 if 01-api-ci
68+
6369
acl 02-api req_ssl_sni -m end .libvirt-s390x-0-2
6470
use_backend masters-02 if 02-api
6571

72+
acl 02-api-ci req_ssl_sni -m end .libvirt-s390x-0-2.ci
73+
use_backend masters-02 if 02-api-ci
74+
6675
acl 03-api req_ssl_sni -m end .libvirt-s390x-0-3
6776
use_backend masters-03 if 03-api
6877

78+
acl 03-api-ci req_ssl_sni -m end .libvirt-s390x-0-3.ci
79+
use_backend masters-03 if 03-api-ci
80+
6981
acl 04-api req_ssl_sni -m end .libvirt-s390x-0-4
7082
use_backend masters-04 if 04-api
7183

84+
acl 04-api-ci req_ssl_sni -m end .libvirt-s390x-0-4.ci
85+
use_backend masters-04 if 04-api-ci
86+
7287
#---------------------------------------------------------------------
7388
# HTTP frontend which proxys to the created worker nodes
7489
#---------------------------------------------------------------------
@@ -80,18 +95,33 @@ frontend http-all
8095
acl 00-http hdr(host) -m end .libvirt-s390x-0-0
8196
use_backend http-workers-00 if 00-http
8297

98+
acl 00-http-ci hdr(host) -m end .libvirt-s390x-0-0.ci
99+
use_backend http-workers-00 if 00-http-ci
100+
83101
acl 01-http hdr(host) -m end .libvirt-s390x-0-1
84102
use_backend http-workers-01 if 01-http
85103

104+
acl 01-http-ci hdr(host) -m end .libvirt-s390x-0-1.ci
105+
use_backend http-workers-01 if 01-http-ci
106+
86107
acl 02-http hdr(host) -m end .libvirt-s390x-0-2
87108
use_backend http-workers-02 if 02-http
88109

110+
acl 02-http-ci hdr(host) -m end .libvirt-s390x-0-2.ci
111+
use_backend http-workers-02 if 02-http-ci
112+
89113
acl 03-http hdr(host) -m end .libvirt-s390x-0-3
90114
use_backend http-workers-03 if 03-http
91115

116+
acl 03-http-ci hdr(host) -m end .libvirt-s390x-0-3.ci
117+
use_backend http-workers-03 if 03-http-ci
118+
92119
acl 04-http hdr(host) -m end .libvirt-s390x-0-4
93120
use_backend http-workers-04 if 04-http
94121

122+
acl 04-http-ci hdr(host) -m end .libvirt-s390x-0-4.ci
123+
use_backend http-workers-04 if 04-http-ci
124+
95125
#---------------------------------------------------------------------
96126
# HTTPS frontend which proxys to the created worker nodes
97127
#---------------------------------------------------------------------
@@ -107,18 +137,33 @@ frontend https-all
107137
acl 00-https req_ssl_sni -m end .libvirt-s390x-0-0
108138
use_backend https-workers-00 if 00-https
109139

140+
acl 00-https-ci req_ssl_sni -m end .libvirt-s390x-0-0.ci
141+
use_backend https-workers-00 if 00-https-ci
142+
110143
acl 01-https req_ssl_sni -m end .libvirt-s390x-0-1
111144
use_backend https-workers-01 if 01-https
112145

146+
acl 01-https-ci req_ssl_sni -m end .libvirt-s390x-0-1.ci
147+
use_backend https-workers-01 if 01-https-ci
148+
113149
acl 02-https req_ssl_sni -m end .libvirt-s390x-0-2
114150
use_backend https-workers-02 if 02-https
115151

152+
acl 02-https-ci req_ssl_sni -m end .libvirt-s390x-0-2.ci
153+
use_backend https-workers-02 if 02-https-ci
154+
116155
acl 03-https req_ssl_sni -m end .libvirt-s390x-0-3
117156
use_backend https-workers-03 if 03-https
118157

158+
acl 03-https-ci req_ssl_sni -m end .libvirt-s390x-0-3.ci
159+
use_backend https-workers-03 if 03-https-ci
160+
119161
acl 04-https req_ssl_sni -m end .libvirt-s390x-0-4
120162
use_backend https-workers-04 if 04-https
121163

164+
acl 04-https-ci req_ssl_sni -m end .libvirt-s390x-0-4.ci
165+
use_backend https-workers-04 if 04-https-ci
166+
122167
#---------------------------------------------------------------------
123168
# Master node backends for serving API traffic
124169
#---------------------------------------------------------------------

0 commit comments

Comments
 (0)