Skip to content

Commit 8977843

Browse files
committed
test(default): add httpcheck & httpchecks values to test pillar
1 parent 1187532 commit 8977843

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

pillar.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ haproxy:
9999
bind:
100100
- "0.0.0.0:8998"
101101
mode: http
102+
options:
103+
- httpchk
104+
httpcheck: disable-on-404
102105
stats:
103106
enable: true
104107
uri: "/admin?stats"
@@ -109,11 +112,15 @@ haproxy:
109112
options:
110113
- forwardfor
111114
- http-server-close
115+
- httpchk
112116
defaultserver:
113117
slowstart: 60s
114118
maxconn: 256
115119
maxqueue: 128
116120
weight: 100
121+
httpchecks:
122+
- send-state
123+
- expect status 200
117124
servers:
118125
web1:
119126
host: web1.example.com

test/salt/pillar/default.sls

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ haproxy:
7979
bind:
8080
- "0.0.0.0:8998"
8181
mode: http
82+
options:
83+
- httpchk
84+
httpcheck: disable-on-404
8285
stats:
8386
enable: true
8487
uri: "/admin?stats"
@@ -89,11 +92,15 @@ haproxy:
8992
options:
9093
- forwardfor
9194
- http-server-close
95+
- httpchk
9296
defaultserver:
9397
slowstart: 60s
9498
maxconn: 256
9599
maxqueue: 128
96100
weight: 100
101+
httpchecks:
102+
- send-state
103+
- expect status 200
97104
servers:
98105
web1:
99106
host: web1.example.com

0 commit comments

Comments
 (0)