@@ -31,6 +31,8 @@ haproxy.cfg on the load balancer.
31
31
* [ ` haproxy::mailers ` ] ( #haproxymailers ) : This type will set up a mailers entry in haproxy.cfg on the load balancer.
32
32
* [ ` haproxy::mapfile ` ] ( #haproxymapfile ) : Manage an HAProxy map file as documented in
33
33
https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.1-map
34
+ * [ ` haproxy::mapfile::entry ` ] ( #haproxymapfileentry ) : Manage an HAProxy map file as documented in
35
+ https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.1-map
34
36
* [ ` haproxy::peer ` ] ( #haproxypeer ) : This type will set up a peer entry inside the peers configuration block in haproxy.cfg on the load balancer.
35
37
* [ ` haproxy::peer::collect_exported ` ] ( #haproxypeercollect_exported ) : Private define
36
38
* [ ` haproxy::peers ` ] ( #haproxypeers ) : This type will set up a peers entry in haproxy.cfg
@@ -102,6 +104,7 @@ The following parameters are available in the `haproxy` class:
102
104
* [ ` service_manage ` ] ( #service_manage )
103
105
* [ ` service_name ` ] ( #service_name )
104
106
* [ ` service_options ` ] ( #service_options )
107
+ * [ ` chroot_dir_manage ` ] ( #chroot_dir_manage )
105
108
* [ ` sysconfig_options ` ] ( #sysconfig_options )
106
109
* [ ` global_options ` ] ( #global_options )
107
110
* [ ` defaults_options ` ] ( #defaults_options )
@@ -168,6 +171,15 @@ Contents for the `/etc/defaults/haproxy` file on Debian. Defaults to "ENABLED=1\
168
171
169
172
Default value: ` $haproxy::params::service_options `
170
173
174
+ ##### <a name =" chroot_dir_manage " ></a >` chroot_dir_manage `
175
+
176
+ Data type: ` Boolean `
177
+
178
+ Chooses whether the haproxy chroot directory should be managed by puppet
179
+ at all. Defaults to true
180
+
181
+ Default value: `` true ``
182
+
171
183
##### <a name =" sysconfig_options " ></a >` sysconfig_options `
172
184
173
185
Data type: ` Any `
@@ -348,6 +360,7 @@ The following parameters are available in the `haproxy::backend` defined type:
348
360
349
361
* [ ` section_name ` ] ( #section_name )
350
362
* [ ` mode ` ] ( #mode )
363
+ * [ ` description ` ] ( #description )
351
364
* [ ` options ` ] ( #options )
352
365
* [ ` collect_exported ` ] ( #collect_exported )
353
366
* [ ` config_file ` ] ( #config_file )
@@ -373,6 +386,16 @@ The mode of operation for the backend service. Valid values are undef,
373
386
374
387
Default value: `` undef ``
375
388
389
+ ##### <a name =" description " ></a >` description `
390
+
391
+ Data type: ` Any `
392
+
393
+ Allows to add a sentence to describe the related object in the HAProxy HTML
394
+ stats page. The description will be printed on the right of the object name
395
+ it describes. Usefull in huge environments
396
+
397
+ Default value: `` undef ``
398
+
376
399
##### <a name =" options " ></a >` options `
377
400
378
401
Data type: ` Any `
@@ -756,6 +779,7 @@ The following parameters are available in the `haproxy::frontend` defined type:
756
779
* [ ` bind ` ] ( #bind )
757
780
* [ ` ipaddress ` ] ( #ipaddress )
758
781
* [ ` mode ` ] ( #mode )
782
+ * [ ` description ` ] ( #description )
759
783
* [ ` bind_options ` ] ( #bind_options )
760
784
* [ ` options ` ] ( #options )
761
785
* [ ` sort_options_alphabetic ` ] ( #sort_options_alphabetic )
@@ -813,6 +837,16 @@ The mode of operation for the frontend service. Valid values are undef,
813
837
814
838
Default value: `` undef ``
815
839
840
+ ##### <a name =" description " ></a >` description `
841
+
842
+ Data type: ` Any `
843
+
844
+ Allows to add a sentence to describe the related object in the HAProxy HTML
845
+ stats page. The description will be printed on the right of the object name
846
+ it describes. Usefull in huge environments
847
+
848
+ Default value: `` undef ``
849
+
816
850
##### <a name =" bind_options " ></a >` bind_options `
817
851
818
852
Data type: ` Any `
@@ -978,6 +1012,7 @@ The following parameters are available in the `haproxy::instance` defined type:
978
1012
* [ ` package_name ` ] ( #package_name )
979
1013
* [ ` service_ensure ` ] ( #service_ensure )
980
1014
* [ ` service_manage ` ] ( #service_manage )
1015
+ * [ ` chroot_dir_manage ` ] ( #chroot_dir_manage )
981
1016
* [ ` service_name ` ] ( #service_name )
982
1017
* [ ` global_options ` ] ( #global_options )
983
1018
* [ ` defaults_options ` ] ( #defaults_options )
@@ -1026,6 +1061,15 @@ all. Defaults to true
1026
1061
1027
1062
Default value: `` true ``
1028
1063
1064
+ ##### <a name =" chroot_dir_manage " ></a >` chroot_dir_manage `
1065
+
1066
+ Data type: ` Boolean `
1067
+
1068
+ Chooses whether the haproxy chroot directory should be managed by puppet
1069
+ at all. Defaults to true
1070
+
1071
+ Default value: `` true ``
1072
+
1029
1073
##### <a name =" service_name " ></a >` service_name `
1030
1074
1031
1075
Data type: ` Optional[String] `
@@ -1191,7 +1235,7 @@ Default value: ``undef``
1191
1235
1192
1236
##### <a name =" haproxy_unit_template " ></a >` haproxy_unit_template `
1193
1237
1194
- Data type: ` Optional[ String] `
1238
+ Data type: ` String `
1195
1239
1196
1240
1197
1241
@@ -1238,6 +1282,7 @@ The following parameters are available in the `haproxy::listen` defined type:
1238
1282
* [ ` ipaddress ` ] ( #ipaddress )
1239
1283
* [ ` bind ` ] ( #bind )
1240
1284
* [ ` mode ` ] ( #mode )
1285
+ * [ ` description ` ] ( #description )
1241
1286
* [ ` options ` ] ( #options )
1242
1287
* [ ` bind_options ` ] ( #bind_options )
1243
1288
* [ ` collect_exported ` ] ( #collect_exported )
@@ -1294,6 +1339,16 @@ The mode of operation for the listening service. Valid values are undef,
1294
1339
1295
1340
Default value: `` undef ``
1296
1341
1342
+ ##### <a name =" description " ></a >` description `
1343
+
1344
+ Data type: ` Any `
1345
+
1346
+ Allows to add a sentence to describe the related object in the HAProxy HTML
1347
+ stats page. The description will be printed on the right of the object name
1348
+ it describes. Usefull in huge environments
1349
+
1350
+ Default value: `` undef ``
1351
+
1297
1352
##### <a name =" options " ></a >` options `
1298
1353
1299
1354
Data type: ` Any `
@@ -1305,7 +1360,7 @@ Default value: `{
1305
1360
'option' => [
1306
1361
'tcplog',
1307
1362
] ,
1308
- 'balance' => 'roundrobin'
1363
+ 'balance' => 'roundrobin',
1309
1364
}`
1310
1365
1311
1366
##### <a name =" bind_options " ></a >` bind_options `
@@ -1464,7 +1519,8 @@ Manage an HAProxy map file as documented in
1464
1519
https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.1-map
1465
1520
1466
1521
* ** Note** A map file contains one key + value per line. These key-value pairs are
1467
- specified in the ` mappings ` array.
1522
+ specified in the ` mappings ` array or by additional ` haproxy::mapfile::entry `
1523
+ definitions.
1468
1524
1469
1525
#### Parameters
1470
1526
@@ -1486,7 +1542,7 @@ A '.map' extension will be added automatically.
1486
1542
1487
1543
##### <a name =" mappings " ></a >` mappings `
1488
1544
1489
- Data type: ` Array `
1545
+ Data type: ` Array[Variant[String, Hash]] `
1490
1546
1491
1547
An array of mappings for this map file. Array elements may be Hashes with a
1492
1548
single key-value pair each (preferably) or simple Strings. Default: ` [] `
@@ -1534,7 +1590,53 @@ Array of managed HAproxy instance names to notify (restart/reload) when the
1534
1590
map file is updated. This is so that the same map file can be used with
1535
1591
multiple HAproxy instances. Default: ` [ 'haproxy' ] `
1536
1592
1537
- Default value: ` [ 'haproxy' ] `
1593
+ Default value: ` ['haproxy'] `
1594
+
1595
+ ### <a name =" haproxymapfileentry " ></a >` haproxy::mapfile::entry `
1596
+
1597
+ Manage an HAProxy map file as documented in
1598
+ https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.1-map
1599
+
1600
+ * ** Note** A map file contains one key + value per line. These key-value pairs are
1601
+ specified in the ` mappings ` array.
1602
+
1603
+ #### Parameters
1604
+
1605
+ The following parameters are available in the ` haproxy::mapfile::entry ` defined type:
1606
+
1607
+ * [ ` name ` ] ( #name )
1608
+ * [ ` mappings ` ] ( #mappings )
1609
+ * [ ` mapfile ` ] ( #mapfile )
1610
+ * [ ` order ` ] ( #order )
1611
+
1612
+ ##### <a name =" name " ></a >` name `
1613
+
1614
+ The namevar of the defined resource type is the filename of the map file
1615
+ (without any extension), relative to the ` haproxy::config_dir ` directory.
1616
+ A '.map' extension will be added automatically.
1617
+
1618
+ ##### <a name =" mappings " ></a >` mappings `
1619
+
1620
+ Data type: ` Array[Variant[String, Hash]] `
1621
+
1622
+ An array of mappings for this map file. Array elements may be Hashes with a
1623
+ single key-value pair each (preferably) or simple Strings. Default: ` [] `
1624
+
1625
+ Default value: ` [$title] `
1626
+
1627
+ ##### <a name =" mapfile " ></a >` mapfile `
1628
+
1629
+ Data type: ` String `
1630
+
1631
+
1632
+
1633
+ ##### <a name =" order " ></a >` order `
1634
+
1635
+ Data type: ` Variant[String, Integer] `
1636
+
1637
+
1638
+
1639
+ Default value: ` '10' `
1538
1640
1539
1641
### <a name =" haproxypeer " ></a >` haproxy::peer `
1540
1642
0 commit comments