-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhaproxy.cf
More file actions
43 lines (37 loc) · 1.35 KB
/
haproxy.cf
File metadata and controls
43 lines (37 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
bundle agent haproxy
{
vars:
"config" slist => { "api_rw", "api_search_ro",
"api_slow_ro", "other" };
files:
haproxy::
"/usr/local/etc/haproxy-api_ro.conf.*"
delete => tidy;
"/usr/local/etc/haproxy-$(config).conf"
copy_from => secure_cp (
"/cf-public/haproxy/haproxy-$(config).conf",
"$(sys.policy_hub)"
),
perms => mo("644", "root"),
classes => if_repaired("reload_haproxy");
"/usr/local/etc/monitrc"
copy_from => secure_cp (
"/cf-public/haproxy/monitrc",
"$(sys.policy_hub)"
),
perms => mog("600", "root", "wheel"),
classes => if_repaired("reload_monit");
webnodes::
"/etc/haproxy/haproxy.cfg"
copy_from => secure_cp (
"/cf-public/haproxy/haproxy.cfg-webnodes",
"$(sys.policy_hub)"
),
perms => mo("644", "root"),
classes => if_repaired("reload_haproxy");
commands:
reload_haproxy!no_restarts::
"/usr/sbin/service haproxy reload";
reload_monit!no_restarts::
"/usr/sbin/service monit reload";
}