You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- make sure the rabbitmq\_version method actually returns the version. [\#874](https://github.com/voxpupuli/puppet-rabbitmq/pull/874) ([TomRitserveldt](https://github.com/TomRitserveldt))
25
+
26
+
**Closed issues:**
27
+
28
+
- Auto Clustering of nodes should be enabled [\#792](https://github.com/voxpupuli/puppet-rabbitmq/issues/792)
29
+
30
+
**Merged pull requests:**
31
+
32
+
- Use mocked facts in tests [\#873](https://github.com/voxpupuli/puppet-rabbitmq/pull/873) ([ekohl](https://github.com/ekohl))
Copy file name to clipboardExpand all lines: REFERENCE.md
+61-33Lines changed: 61 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ _Private Classes_
22
22
**Resource types**
23
23
24
24
*[`rabbitmq_binding`](#rabbitmq_binding): Native type for managing rabbitmq bindings rabbitmq_binding { 'binding 1': ensure => present, source => 'myexchange'
25
-
*[`rabbitmq_cluster`](#rabbitmq_cluster): Type to manage a rabbitmq cluster
25
+
*[`rabbitmq_cluster`](#rabbitmq_cluster): Native type for managing rabbitmq cluster
26
26
*[`rabbitmq_erlang_cookie`](#rabbitmq_erlang_cookie): Type to manage the rabbitmq erlang cookie securely This is essentially a private type used by the rabbitmq::config class to manage the erlan
27
27
*[`rabbitmq_exchange`](#rabbitmq_exchange): Native type for managing rabbitmq exchanges
28
28
*[`rabbitmq_parameter`](#rabbitmq_parameter): Type for managing rabbitmq parameters
@@ -141,23 +141,12 @@ This will result in the following config appended to the config file:
141
141
142
142
```puppet
143
143
class { 'rabbitmq':
144
-
config_cluster => true,
145
-
cluster_nodes => ['rabbit1', 'rabbit2'],
146
-
cluster_node_type => 'ram',
147
-
erlang_cookie => 'A_SECRET_COOKIE_STRING',
148
-
wipe_db_on_cookie_change => true,
149
-
}
150
-
```
151
-
152
-
To create and join the cluster:
153
-
```puppet
154
-
class { 'rabbitmq':
155
-
config_cluster => true,
156
-
cluster_nodes => ['rabbit1', 'rabbit2'],
157
144
cluster => {
158
145
'name' => 'test_cluster',
159
146
'init_node' => 'hostname'
160
147
},
148
+
config_cluster => true,
149
+
cluster_nodes => ['rabbit1', 'rabbit2'],
161
150
cluster_node_type => 'ram',
162
151
erlang_cookie => 'A_SECRET_COOKIE_STRING',
163
152
wipe_db_on_cookie_change => true,
@@ -205,6 +194,14 @@ rabbit_auth_backend_ldap].
205
194
206
195
Default value: `undef`
207
196
197
+
##### `cluster`
198
+
199
+
Data type: `Hash`
200
+
201
+
Join cluster and change name of cluster.
202
+
203
+
Default value: $rabbitmq::cluster
204
+
208
205
##### `cluster_node_type`
209
206
210
207
Data type: `Enum['ram', 'disc']`
@@ -229,17 +226,6 @@ Value to set for `cluster_partition_handling` RabbitMQ configuration variable.
229
226
230
227
Default value: 'ignore'
231
228
232
-
##### `cluster`
233
-
234
-
Data type: `Hash`
235
-
236
-
If both `name` and `init_node` keys are set then the rabbitmq node is added to
237
-
a cluster named after the corresponding key by joining `init_node`.
238
-
Note: `init_node` must be included in the [`cluster_nodes`](#cluster_nodes)
239
-
parameter.
240
-
241
-
Default value: '{}'
242
-
243
229
##### `collect_statistics_interval`
244
230
245
231
Data type: `Optional[Integer]`
@@ -402,6 +388,14 @@ Set rabbitmq file ulimit. Defaults to 16384. Only available on systems with `$::
402
388
403
389
Default value: 16384
404
390
391
+
##### `oom_score_adj`
392
+
393
+
Data type: `Integer[-1000, 1000]`
394
+
395
+
Set rabbitmq-server process OOM score. Defaults to 0.
396
+
397
+
Default value: 0
398
+
405
399
##### `heartbeat`
406
400
407
401
Data type: `Optional[Integer]`
@@ -1161,25 +1155,59 @@ Default value: guest
1161
1155
1162
1156
### rabbitmq_cluster
1163
1157
1164
-
Type to manage a rabbitmq cluster
1158
+
Native type for managing rabbitmq cluster
1159
+
1160
+
#### Examples
1161
+
1162
+
##### Configure a cluster, rabbit_cluster
1163
+
1164
+
```puppet
1165
+
rabbitmq_cluster { 'rabbit_cluster':
1166
+
init_node => 'host1'
1167
+
}
1168
+
```
1169
+
1170
+
##### Optional parameter tags will set further rabbitmq tags like monitoring, policymaker, etc.
1171
+
1172
+
```puppet
1173
+
To set the cluster name use cluster_name.
1174
+
rabbitmq_cluster { 'rabbit_cluster':
1175
+
init_node => 'host1',
1176
+
node_disc_type => 'ram',
1177
+
}
1178
+
```
1165
1179
1166
1180
#### Properties
1167
1181
1168
1182
The following properties are available in the `rabbitmq_cluster` type.
1169
1183
1170
-
#### `init_node`
1184
+
##### `ensure`
1185
+
1186
+
Valid values: present, absent
1171
1187
1172
-
Data type: `String`
1188
+
The basic property that the resource should be in.
1173
1189
1174
-
The node to join to initiate the cluster. It is mandatory.
1190
+
Default value: present
1175
1191
1176
-
Default value: unset
1192
+
#### Parameters
1177
1193
1178
-
#### `node_disc_type`
1194
+
The following parameters are available in the `rabbitmq_cluster` type.
0 commit comments