Commit 7edfe22
committed
rabbit_prelaunch_conf: Always handle config. files with Cuttlefish
This has several benefits:
1. It simplifies the code, all configuration being handled by the same
code path (no more condition on Erlang-term-based vs. Cuttlefish).
`rabbit_config` shrinks quite a lot in the process.
2. We can use additional configuration files AND an Erlang-term-based
configuration file. In other words, it is possible to use the same
existing Erlang-term-based file and introduce Cuttlefish files when
needed.
It allows a user to run RabbitMQ with:
RABBITMQ_CONFIG_FILE=/path/to/rabbitmq.config \
RABBITMQ_CONFIG_FILES=/path/to/conf.d/*.conf \
./sbin/rabbitmq-server
A developer can do the same with `make run-broker`:
make run-broker \
RABBITMQ_CONFIG_FILES=/path/to/conf.d/*.conf
In the example above, the main configuration file generated by
rabbitmq-run.mk is an Erlang-term-based one.
This is implemented by calling Cuttlefish with a (possibly empty) list
of additional files and the Erlang-term-based file as the advanced
configuration file.
References #2180.1 parent c9e9509 commit 7edfe22
File tree
2 files changed
+21
-108
lines changed- apps/rabbitmq_prelaunch/src
- src
2 files changed
+21
-108
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
47 | 32 | | |
48 | 33 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 34 | + | |
| 35 | + | |
52 | 36 | | |
53 | 37 | | |
54 | 38 | | |
55 | 39 | | |
56 | 40 | | |
57 | 41 | | |
58 | 42 | | |
59 | | - | |
60 | | - | |
| 43 | + | |
61 | 44 | | |
62 | 45 | | |
63 | 46 | | |
| |||
66 | 49 | | |
67 | 50 | | |
68 | 51 | | |
69 | | - | |
70 | | - | |
| 52 | + | |
71 | 53 | | |
72 | 54 | | |
73 | 55 | | |
74 | 56 | | |
75 | 57 | | |
76 | | - | |
77 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
78 | 61 | | |
79 | 62 | | |
80 | | - | |
81 | | - | |
| 63 | + | |
82 | 64 | | |
83 | 65 | | |
84 | | - | |
85 | | - | |
| 66 | + | |
86 | 67 | | |
87 | 68 | | |
88 | 69 | | |
| |||
186 | 167 | | |
187 | 168 | | |
188 | 169 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | 170 | | |
210 | 171 | | |
211 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 13 | | |
25 | 14 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 15 | + | |
| 16 | + | |
31 | 17 | | |
32 | 18 | | |
33 | 19 | | |
| |||
43 | 29 | | |
44 | 30 | | |
45 | 31 | | |
46 | | - | |
| 32 | + | |
47 | 33 | | |
48 | 34 | | |
49 | 35 | | |
| |||
53 | 39 | | |
54 | 40 | | |
55 | 41 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
64 | 45 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
80 | 49 | | |
81 | 50 | | |
82 | 51 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
0 commit comments