50
50
check_RABBITMQ_PID_FILE /1 ,
51
51
check_RABBITMQ_PLUGINS_DIR /1 ,
52
52
check_RABBITMQ_PLUGINS_EXPAND_DIR /1 ,
53
+ check_RABBITMQ_PRODUCT_NAME /1 ,
54
+ check_RABBITMQ_PRODUCT_VERSION /1 ,
53
55
check_RABBITMQ_QUORUM_DIR /1 ,
54
56
check_RABBITMQ_UPGRADE_LOG /1 ,
55
57
check_RABBITMQ_USE_LOGNAME /1 ,
@@ -84,6 +86,8 @@ all() ->
84
86
check_RABBITMQ_PID_FILE ,
85
87
check_RABBITMQ_PLUGINS_DIR ,
86
88
check_RABBITMQ_PLUGINS_EXPAND_DIR ,
89
+ check_RABBITMQ_PRODUCT_NAME ,
90
+ check_RABBITMQ_PRODUCT_VERSION ,
87
91
check_RABBITMQ_QUORUM_DIR ,
88
92
check_RABBITMQ_UPGRADE_LOG ,
89
93
check_RABBITMQ_USE_LOGNAME ,
@@ -168,13 +172,16 @@ check_default_values(_) ->
168
172
main_log_file => default ,
169
173
mnesia_base_dir => default ,
170
174
mnesia_dir => default ,
175
+ motd_file => default ,
171
176
nodename => default ,
172
177
nodename_type => default ,
173
178
os_type => environment ,
174
179
output_supports_colors => default ,
175
180
pid_file => default ,
176
181
plugins_expand_dir => default ,
177
182
plugins_path => default ,
183
+ product_name => default ,
184
+ product_version => default ,
178
185
quorum_queue_dir => default ,
179
186
rabbitmq_home => default ,
180
187
upgrade_log_file => default
@@ -204,6 +211,7 @@ check_default_values(_) ->
204
211
main_log_file => " /var/log/rabbitmq/" ++ NodeS ++ " .log" ,
205
212
mnesia_base_dir => " /var/lib/rabbitmq/mnesia" ,
206
213
mnesia_dir => " /var/lib/rabbitmq/mnesia/" ++ NodeS ,
214
+ motd_file => " /etc/rabbitmq/motd" ,
207
215
nodename => Node ,
208
216
nodename_type => shortnames ,
209
217
os_type => {unix , undefined },
@@ -212,6 +220,8 @@ check_default_values(_) ->
212
220
plugins_expand_dir =>
213
221
" /var/lib/rabbitmq/mnesia/" ++ NodeS ++ " -plugins-expand" ,
214
222
plugins_path => maps :get (plugins_path , UnixContext ),
223
+ product_name => undefined ,
224
+ product_version => undefined ,
215
225
quorum_queue_dir =>
216
226
" /var/lib/rabbitmq/mnesia/" ++ NodeS ++ " /quorum" ,
217
227
rabbitmq_home => maps :get (rabbitmq_home , UnixContext ),
@@ -247,6 +257,7 @@ check_default_values(_) ->
247
257
main_log_file => " %APPDATA%/RabbitMQ/log/" ++ NodeS ++ " .log" ,
248
258
mnesia_base_dir => " %APPDATA%/RabbitMQ/db" ,
249
259
mnesia_dir => " %APPDATA%/RabbitMQ/db/" ++ NodeS ++ " -mnesia" ,
260
+ motd_file => " %APPDATA%/RabbitMQ/motd.txt" ,
250
261
nodename => Node ,
251
262
nodename_type => shortnames ,
252
263
os_type => {win32 , undefined },
@@ -255,6 +266,8 @@ check_default_values(_) ->
255
266
plugins_expand_dir =>
256
267
" %APPDATA%/RabbitMQ/db/" ++ NodeS ++ " -plugins-expand" ,
257
268
plugins_path => maps :get (plugins_path , Win32Context ),
269
+ product_name => undefined ,
270
+ product_version => undefined ,
258
271
quorum_queue_dir =>
259
272
" %APPDATA%/RabbitMQ/db/" ++ NodeS ++ " -mnesia/quorum" ,
260
273
rabbitmq_base => " %APPDATA%/RabbitMQ" ,
@@ -365,13 +378,16 @@ check_values_from_reachable_remote_node(Config) ->
365
378
main_log_file => default ,
366
379
mnesia_base_dir => default ,
367
380
mnesia_dir => remote_node ,
381
+ motd_file => default ,
368
382
nodename => environment ,
369
383
nodename_type => default ,
370
384
os_type => environment ,
371
385
output_supports_colors => default ,
372
386
pid_file => default ,
373
387
plugins_expand_dir => default ,
374
388
plugins_path => remote_node ,
389
+ product_name => default ,
390
+ product_version => default ,
375
391
quorum_queue_dir => default ,
376
392
rabbitmq_home => default ,
377
393
upgrade_log_file => default
@@ -401,13 +417,16 @@ check_values_from_reachable_remote_node(Config) ->
401
417
main_log_file => " /var/log/rabbitmq/" ++ NodeS ++ " .log" ,
402
418
mnesia_base_dir => undefined ,
403
419
mnesia_dir => MnesiaDir ,
420
+ motd_file => undefined ,
404
421
nodename => Node ,
405
422
nodename_type => shortnames ,
406
423
os_type => {unix , undefined },
407
424
output_supports_colors => true ,
408
425
pid_file => undefined ,
409
426
plugins_expand_dir => undefined ,
410
427
plugins_path => PluginsDir ,
428
+ product_name => undefined ,
429
+ product_version => undefined ,
411
430
quorum_queue_dir => MnesiaDir ++ " /quorum" ,
412
431
rabbitmq_home => maps :get (rabbitmq_home , UnixContext ),
413
432
split_nodename => rabbit_nodes_common :parts (Node ),
@@ -474,13 +493,16 @@ check_values_from_offline_remote_node(_) ->
474
493
main_log_file => default ,
475
494
mnesia_base_dir => default ,
476
495
mnesia_dir => default ,
496
+ motd_file => default ,
477
497
nodename => environment ,
478
498
nodename_type => default ,
479
499
os_type => environment ,
480
500
output_supports_colors => default ,
481
501
pid_file => default ,
482
502
plugins_expand_dir => default ,
483
503
plugins_path => default ,
504
+ product_name => default ,
505
+ product_version => default ,
484
506
quorum_queue_dir => default ,
485
507
rabbitmq_home => default ,
486
508
upgrade_log_file => default
@@ -510,13 +532,16 @@ check_values_from_offline_remote_node(_) ->
510
532
main_log_file => " /var/log/rabbitmq/" ++ NodeS ++ " .log" ,
511
533
mnesia_base_dir => undefined ,
512
534
mnesia_dir => undefined ,
535
+ motd_file => undefined ,
513
536
nodename => Node ,
514
537
nodename_type => shortnames ,
515
538
os_type => {unix , undefined },
516
539
output_supports_colors => true ,
517
540
pid_file => undefined ,
518
541
plugins_expand_dir => undefined ,
519
542
plugins_path => undefined ,
543
+ product_name => undefined ,
544
+ product_version => undefined ,
520
545
quorum_queue_dir => undefined ,
521
546
rabbitmq_home => maps :get (rabbitmq_home , UnixContext ),
522
547
split_nodename => rabbit_nodes_common :parts (Node ),
@@ -849,6 +874,24 @@ check_RABBITMQ_PLUGINS_EXPAND_DIR(_) ->
849
874
Value1 , Value1 ,
850
875
Value2 , Value2 ).
851
876
877
+ check_RABBITMQ_PRODUCT_NAME (_ ) ->
878
+ Value1 = random_string (),
879
+ Value2 = random_string (),
880
+ check_prefixed_variable (" RABBITMQ_PRODUCT_NAME" ,
881
+ product_name ,
882
+ '_' ,
883
+ Value1 , Value1 ,
884
+ Value2 , Value2 ).
885
+
886
+ check_RABBITMQ_PRODUCT_VERSION (_ ) ->
887
+ Value1 = random_string (),
888
+ Value2 = random_string (),
889
+ check_prefixed_variable (" RABBITMQ_PRODUCT_VERSION" ,
890
+ product_version ,
891
+ '_' ,
892
+ Value1 , Value1 ,
893
+ Value2 , Value2 ).
894
+
852
895
check_RABBITMQ_QUORUM_DIR (_ ) ->
853
896
Value1 = random_string (),
854
897
Value2 = random_string (),
0 commit comments