Validate haproxy conf after assemble
Right now we don't ensure haproxy conf validity and if it's incorrect role will fail on attempt to reload haproxy. However it's really worth adding validation step and do not proceed if configuration is wrong Change-Id: I54717d4f7230b8d8dff2d293592831cc88c51d24
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
assemble:
|
assemble:
|
||||||
src: "/etc/haproxy/conf.d"
|
src: "/etc/haproxy/conf.d"
|
||||||
dest: "/etc/haproxy/haproxy.cfg"
|
dest: "/etc/haproxy/haproxy.cfg"
|
||||||
|
validate: /usr/sbin/haproxy -c -f %s
|
||||||
notify: Reload haproxy
|
notify: Reload haproxy
|
||||||
tags:
|
tags:
|
||||||
- haproxy-general-config
|
- haproxy-general-config
|
||||||
|
|||||||
Reference in New Issue
Block a user