|
3 | 3 | # |
4 | 4 | # @api private |
5 | 5 | class rabbitmq::config { |
6 | | - |
7 | 6 | $admin_enable = $rabbitmq::admin_enable |
8 | 7 | $management_enable = $rabbitmq::management_enable |
9 | 8 | $use_config_file_for_plugins = $rabbitmq::use_config_file_for_plugins |
|
104 | 103 | $management_ip_address = $rabbitmq::node_ip_address |
105 | 104 | } |
106 | 105 |
|
107 | | - $inetrc_env = {'export ERL_INETRC' => $inetrc_config_path} |
| 106 | + $inetrc_env = { 'export ERL_INETRC' => $inetrc_config_path } |
108 | 107 |
|
109 | 108 | # Handle env variables. |
110 | 109 | $_environment_variables = $default_ssl_env_variables + $inetrc_env + $rabbitmq::environment_variables |
|
125 | 124 | $proto_dist = 'inet6_tcp' |
126 | 125 | $ssl_path = '' |
127 | 126 | } |
128 | | - $ipv6_or_tls_env = ['SERVER_ADDITIONAL', 'CTL'].reduce({}) |$memo, $item| { |
| 127 | + $ipv6_or_tls_env = ['SERVER_ADDITIONAL', 'CTL'].reduce( {}) |$memo, $item| { |
129 | 128 | $orig = $_environment_variables["RABBITMQ_${item}_ERL_ARGS"] |
130 | 129 | $munged = $orig ? { |
131 | 130 | # already quoted, keep quoting |
|
136 | 135 | default => "\"${orig}${ssl_path} -proto_dist ${proto_dist}\"", |
137 | 136 | } |
138 | 137 |
|
139 | | - merge($memo, {"RABBITMQ_${item}_ERL_ARGS" => $munged}) |
| 138 | + merge($memo, { "RABBITMQ_${item}_ERL_ARGS" => $munged }) |
140 | 139 | } |
141 | 140 |
|
142 | 141 | $environment_variables = $_environment_variables + $ipv6_or_tls_env |
|
227 | 226 | mode => '0644', |
228 | 227 | } |
229 | 228 | } |
230 | | - default: { } |
| 229 | + default: {} |
231 | 230 | } |
232 | 231 |
|
233 | 232 | if $facts['systemd'] { # systemd fact provided by systemd module |
234 | 233 | systemd::service_limits { "${service_name}.service": |
235 | | - limits => {'LimitNOFILE' => $file_limit}, |
| 234 | + limits => { 'LimitNOFILE' => $file_limit }, |
236 | 235 | # The service will be notified when config changes |
237 | 236 | restart_service => false, |
238 | 237 | } |
|
0 commit comments