File: REFERENCE.md

package info (click to toggle)
puppet-module-arioch-redis 11.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 668 kB
  • sloc: ruby: 2,314; sh: 10; makefile: 8
file content (3163 lines) | stat: -rw-r--r-- 85,469 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
# Reference

<!-- DO NOT EDIT: This document was generated by Puppet Strings -->

## Table of Contents

### Classes

#### Public Classes

* [`redis`](#redis): This class installs redis
* [`redis::administration`](#redis--administration): Allows various administrative settings for Redis
* [`redis::sentinel`](#redis--sentinel): Install redis-sentinel

#### Private Classes

* `redis::config`: This class provides configuration for Redis.
* `redis::dnfmodule`: Manage the DNF module
* `redis::install`: This class installs the application.
* `redis::params`: This class provides a number of parameters.
* `redis::preinstall`: Provides anything required by the install class, such as package
repositories.
* `redis::service`: This class manages the Redis daemon.
* `redis::ulimit`: Redis class for configuring ulimit Used to DRY up the config class, and move the logic for ulimit changes all into one place.  Parameters are

### Defined types

* [`redis::instance`](#redis--instance): Allows the configuration of multiple redis configurations on one machine

### Functions

* [`redis::get`](#redis--get): Returns the value of the key being looked up or `undef` if the key does not exist.

### Data types

* [`Redis::LogLevel`](#Redis--LogLevel): Specify the server verbosity level.
* [`Redis::MemoryPolicy`](#Redis--MemoryPolicy): Specify the server maxmemory_policy.
* [`Redis::RedisUrl`](#Redis--RedisUrl): validate URL matches redis protocol

### Tasks

* [`redis_cli`](#redis_cli): Executes a redis-cli command on the target system

## Classes

### <a name="redis"></a>`redis`

This class installs redis

#### Examples

##### Default install

```puppet
include redis
```

##### Slave Node

```puppet
class { 'redis':
  bind    => '10.0.1.2',
  slaveof => '10.0.1.1 6379',
}
```

##### Binding on multiple interfaces

```puppet
class { 'redis':
  bind => ['127.0.0.1', '10.0.0.1', '10.1.0.1'],
}
```

##### Binding on all interfaces

```puppet
class { 'redis':
  bind => [],
}
```

#### Parameters

The following parameters are available in the `redis` class:

* [`activerehashing`](#-redis--activerehashing)
* [`aof_load_truncated`](#-redis--aof_load_truncated)
* [`aof_rewrite_incremental_fsync`](#-redis--aof_rewrite_incremental_fsync)
* [`appendfilename`](#-redis--appendfilename)
* [`appendfsync`](#-redis--appendfsync)
* [`appendonly`](#-redis--appendonly)
* [`auto_aof_rewrite_min_size`](#-redis--auto_aof_rewrite_min_size)
* [`auto_aof_rewrite_percentage`](#-redis--auto_aof_rewrite_percentage)
* [`bind`](#-redis--bind)
* [`bin_path`](#-redis--bin_path)
* [`config_dir`](#-redis--config_dir)
* [`config_dir_mode`](#-redis--config_dir_mode)
* [`config_file_orig`](#-redis--config_file_orig)
* [`config_file`](#-redis--config_file)
* [`config_file_mode`](#-redis--config_file_mode)
* [`config_group`](#-redis--config_group)
* [`config_owner`](#-redis--config_owner)
* [`conf_template`](#-redis--conf_template)
* [`daemonize`](#-redis--daemonize)
* [`default_install`](#-redis--default_install)
* [`databases`](#-redis--databases)
* [`dbfilename`](#-redis--dbfilename)
* [`extra_config_file`](#-redis--extra_config_file)
* [`hash_max_ziplist_entries`](#-redis--hash_max_ziplist_entries)
* [`hash_max_ziplist_value`](#-redis--hash_max_ziplist_value)
* [`hll_sparse_max_bytes`](#-redis--hll_sparse_max_bytes)
* [`hz`](#-redis--hz)
* [`latency_monitor_threshold`](#-redis--latency_monitor_threshold)
* [`list_max_ziplist_entries`](#-redis--list_max_ziplist_entries)
* [`list_max_ziplist_value`](#-redis--list_max_ziplist_value)
* [`log_dir`](#-redis--log_dir)
* [`log_dir_mode`](#-redis--log_dir_mode)
* [`log_file`](#-redis--log_file)
* [`log_level`](#-redis--log_level)
* [`manage_repo`](#-redis--manage_repo)
* [`manage_package`](#-redis--manage_package)
* [`managed_by_cluster_manager`](#-redis--managed_by_cluster_manager)
* [`masterauth`](#-redis--masterauth)
* [`maxclients`](#-redis--maxclients)
* [`maxmemory`](#-redis--maxmemory)
* [`maxmemory_policy`](#-redis--maxmemory_policy)
* [`maxmemory_samples`](#-redis--maxmemory_samples)
* [`min_slaves_max_lag`](#-redis--min_slaves_max_lag)
* [`min_slaves_to_write`](#-redis--min_slaves_to_write)
* [`modules`](#-redis--modules)
* [`no_appendfsync_on_rewrite`](#-redis--no_appendfsync_on_rewrite)
* [`notify_keyspace_events`](#-redis--notify_keyspace_events)
* [`notify_service`](#-redis--notify_service)
* [`output_buffer_limit_slave`](#-redis--output_buffer_limit_slave)
* [`output_buffer_limit_pubsub`](#-redis--output_buffer_limit_pubsub)
* [`package_ensure`](#-redis--package_ensure)
* [`package_name`](#-redis--package_name)
* [`pid_file`](#-redis--pid_file)
* [`port`](#-redis--port)
* [`protected_mode`](#-redis--protected_mode)
* [`ppa_repo`](#-redis--ppa_repo)
* [`redis_apt_repo`](#-redis--redis_apt_repo)
* [`apt_location`](#-redis--apt_location)
* [`apt_repos`](#-redis--apt_repos)
* [`apt_release`](#-redis--apt_release)
* [`apt_key_id`](#-redis--apt_key_id)
* [`apt_key_server`](#-redis--apt_key_server)
* [`apt_key_options`](#-redis--apt_key_options)
* [`rdbcompression`](#-redis--rdbcompression)
* [`rename_commands`](#-redis--rename_commands)
* [`repl_announce_ip`](#-redis--repl_announce_ip)
* [`repl_announce_port`](#-redis--repl_announce_port)
* [`repl_backlog_size`](#-redis--repl_backlog_size)
* [`repl_backlog_ttl`](#-redis--repl_backlog_ttl)
* [`repl_disable_tcp_nodelay`](#-redis--repl_disable_tcp_nodelay)
* [`repl_ping_slave_period`](#-redis--repl_ping_slave_period)
* [`repl_timeout`](#-redis--repl_timeout)
* [`requirepass`](#-redis--requirepass)
* [`save_db_to_disk`](#-redis--save_db_to_disk)
* [`save_db_to_disk_interval`](#-redis--save_db_to_disk_interval)
* [`service_manage`](#-redis--service_manage)
* [`service_enable`](#-redis--service_enable)
* [`service_ensure`](#-redis--service_ensure)
* [`service_group`](#-redis--service_group)
* [`service_name`](#-redis--service_name)
* [`service_user`](#-redis--service_user)
* [`service_timeout_start`](#-redis--service_timeout_start)
* [`service_timeout_stop`](#-redis--service_timeout_stop)
* [`set_max_intset_entries`](#-redis--set_max_intset_entries)
* [`slave_priority`](#-redis--slave_priority)
* [`slave_read_only`](#-redis--slave_read_only)
* [`slave_serve_stale_data`](#-redis--slave_serve_stale_data)
* [`slaveof`](#-redis--slaveof)
* [`replicaof`](#-redis--replicaof)
* [`slowlog_log_slower_than`](#-redis--slowlog_log_slower_than)
* [`slowlog_max_len`](#-redis--slowlog_max_len)
* [`stop_writes_on_bgsave_error`](#-redis--stop_writes_on_bgsave_error)
* [`syslog_enabled`](#-redis--syslog_enabled)
* [`syslog_facility`](#-redis--syslog_facility)
* [`tcp_backlog`](#-redis--tcp_backlog)
* [`tcp_keepalive`](#-redis--tcp_keepalive)
* [`timeout`](#-redis--timeout)
* [`tls_port`](#-redis--tls_port)
* [`tls_cert_file`](#-redis--tls_cert_file)
* [`tls_key_file`](#-redis--tls_key_file)
* [`tls_ca_cert_file`](#-redis--tls_ca_cert_file)
* [`tls_ca_cert_dir`](#-redis--tls_ca_cert_dir)
* [`tls_auth_clients`](#-redis--tls_auth_clients)
* [`tls_replication`](#-redis--tls_replication)
* [`tls_cluster`](#-redis--tls_cluster)
* [`tls_ciphers`](#-redis--tls_ciphers)
* [`tls_ciphersuites`](#-redis--tls_ciphersuites)
* [`tls_protocols`](#-redis--tls_protocols)
* [`tls_prefer_server_ciphers`](#-redis--tls_prefer_server_ciphers)
* [`ulimit`](#-redis--ulimit)
* [`ulimit_managed`](#-redis--ulimit_managed)
* [`unixsocket`](#-redis--unixsocket)
* [`unixsocketperm`](#-redis--unixsocketperm)
* [`workdir`](#-redis--workdir)
* [`workdir_mode`](#-redis--workdir_mode)
* [`workdir_group`](#-redis--workdir_group)
* [`workdir_owner`](#-redis--workdir_owner)
* [`debdefault_group`](#-redis--debdefault_group)
* [`debdefault_file_mode`](#-redis--debdefault_file_mode)
* [`debdefault_owner`](#-redis--debdefault_owner)
* [`zset_max_ziplist_entries`](#-redis--zset_max_ziplist_entries)
* [`zset_max_ziplist_value`](#-redis--zset_max_ziplist_value)
* [`cluster_enabled`](#-redis--cluster_enabled)
* [`cluster_config_file`](#-redis--cluster_config_file)
* [`cluster_node_timeout`](#-redis--cluster_node_timeout)
* [`cluster_slave_validity_factor`](#-redis--cluster_slave_validity_factor)
* [`cluster_require_full_coverage`](#-redis--cluster_require_full_coverage)
* [`cluster_migration_barrier`](#-redis--cluster_migration_barrier)
* [`instances`](#-redis--instances)
* [`io_threads`](#-redis--io_threads)
* [`io_threads_do_reads`](#-redis--io_threads_do_reads)
* [`cluster_allow_reads_when_down`](#-redis--cluster_allow_reads_when_down)
* [`cluster_replica_no_failover`](#-redis--cluster_replica_no_failover)
* [`dynamic_hz`](#-redis--dynamic_hz)
* [`activedefrag`](#-redis--activedefrag)
* [`active_defrag_ignore_bytes`](#-redis--active_defrag_ignore_bytes)
* [`active_defrag_threshold_lower`](#-redis--active_defrag_threshold_lower)
* [`active_defrag_threshold_upper`](#-redis--active_defrag_threshold_upper)
* [`active_defrag_cycle_min`](#-redis--active_defrag_cycle_min)
* [`active_defrag_cycle_max`](#-redis--active_defrag_cycle_max)
* [`active_defrag_max_scan_fields`](#-redis--active_defrag_max_scan_fields)
* [`jemalloc_bg_thread`](#-redis--jemalloc_bg_thread)
* [`rdb_save_incremental_fsync`](#-redis--rdb_save_incremental_fsync)
* [`dnf_module_stream`](#-redis--dnf_module_stream)
* [`acls`](#-redis--acls)
* [`manage_service_file`](#-redis--manage_service_file)

##### <a name="-redis--activerehashing"></a>`activerehashing`

Data type: `Boolean`

Enable/disable active rehashing.

Default value: `true`

##### <a name="-redis--aof_load_truncated"></a>`aof_load_truncated`

Data type: `Boolean`

Enable/disable loading truncated AOF file

Default value: `true`

##### <a name="-redis--aof_rewrite_incremental_fsync"></a>`aof_rewrite_incremental_fsync`

Data type: `Boolean`

Enable/disable fsync for AOF file

Default value: `true`

##### <a name="-redis--appendfilename"></a>`appendfilename`

Data type: `String[1]`

The name of the append only file

Default value: `'appendonly.aof'`

##### <a name="-redis--appendfsync"></a>`appendfsync`

Data type: `Enum['no', 'always', 'everysec']`

Adjust fsync mode

Default value: `'everysec'`

##### <a name="-redis--appendonly"></a>`appendonly`

Data type: `Boolean`

Enable/disable appendonly mode.

Default value: `false`

##### <a name="-redis--auto_aof_rewrite_min_size"></a>`auto_aof_rewrite_min_size`

Data type: `String[1]`

Adjust minimum size for auto-aof-rewrite.

Default value: `'64mb'`

##### <a name="-redis--auto_aof_rewrite_percentage"></a>`auto_aof_rewrite_percentage`

Data type: `Integer[0]`

Adjust percentatge for auto-aof-rewrite.

Default value: `100`

##### <a name="-redis--bind"></a>`bind`

Data type: `Variant[Stdlib::IP::Address, Array[Stdlib::IP::Address]]`

Configure which IP address(es) to listen on. To bind on all interfaces, use an empty array.

Default value: `['127.0.0.1']`

##### <a name="-redis--bin_path"></a>`bin_path`

Data type: `Stdlib::Absolutepath`

Directory containing redis binary executables.

Default value: `$redis::params::bin_path`

##### <a name="-redis--config_dir"></a>`config_dir`

Data type: `Stdlib::Absolutepath`

Directory containing the configuration files.

Default value: `$redis::params::config_dir`

##### <a name="-redis--config_dir_mode"></a>`config_dir_mode`

Data type: `Stdlib::Filemode`

Adjust mode for directory containing configuration files.

Default value: `$redis::params::config_dir_mode`

##### <a name="-redis--config_file_orig"></a>`config_file_orig`

Data type: `Stdlib::Absolutepath`

The location and name of a config file that provides the source

Default value: `$redis::params::config_file_orig`

##### <a name="-redis--config_file"></a>`config_file`

Data type: `Stdlib::Absolutepath`

Adjust main configuration file.

Default value: `$redis::params::config_file`

##### <a name="-redis--config_file_mode"></a>`config_file_mode`

Data type: `Stdlib::Filemode`

Adjust permissions for configuration files.

Default value: `'0640'`

##### <a name="-redis--config_group"></a>`config_group`

Data type: `String[1]`

Adjust filesystem group for config files.

Default value: `$redis::params::config_group`

##### <a name="-redis--config_owner"></a>`config_owner`

Data type: `String[1]`

Adjust filesystem owner for config files.

Default value: `$redis::params::config_owner`

##### <a name="-redis--conf_template"></a>`conf_template`

Data type: `String[1]`

Define which template to use.

Default value: `'redis/redis.conf.epp'`

##### <a name="-redis--daemonize"></a>`daemonize`

Data type: `Boolean`

Have Redis run as a daemon.

Default value: `$redis::params::daemonize`

##### <a name="-redis--default_install"></a>`default_install`

Data type: `Boolean`

Configure a default install of redis.

Default value: `true`

##### <a name="-redis--databases"></a>`databases`

Data type: `Integer[1]`

Set the number of databases.

Default value: `16`

##### <a name="-redis--dbfilename"></a>`dbfilename`

Data type: `Variant[String[1], Boolean]`

The filename where to dump the DB

Default value: `'dump.rdb'`

##### <a name="-redis--extra_config_file"></a>`extra_config_file`

Data type: `Optional[String]`

Optional extra config file to include

Default value: `undef`

##### <a name="-redis--hash_max_ziplist_entries"></a>`hash_max_ziplist_entries`

Data type: `Integer[0]`

Set max ziplist entries for hashes.

Default value: `512`

##### <a name="-redis--hash_max_ziplist_value"></a>`hash_max_ziplist_value`

Data type: `Integer[0]`

Set max ziplist values for hashes.

Default value: `64`

##### <a name="-redis--hll_sparse_max_bytes"></a>`hll_sparse_max_bytes`

Data type: `Integer[0]`

HyperLogLog sparse representation bytes limit

Default value: `3000`

##### <a name="-redis--hz"></a>`hz`

Data type: `Integer[1, 500]`

Set redis background tasks frequency

Default value: `10`

##### <a name="-redis--latency_monitor_threshold"></a>`latency_monitor_threshold`

Data type: `Integer[0]`

Latency monitoring threshold in milliseconds

Default value: `0`

##### <a name="-redis--list_max_ziplist_entries"></a>`list_max_ziplist_entries`

Data type: `Integer[0]`

Set max ziplist entries for lists.

Default value: `512`

##### <a name="-redis--list_max_ziplist_value"></a>`list_max_ziplist_value`

Data type: `Integer[0]`

Set max ziplist values for lists.

Default value: `64`

##### <a name="-redis--log_dir"></a>`log_dir`

Data type: `Stdlib::Absolutepath`

Specify directory where to write log entries.

Default value: `$redis::params::log_dir`

##### <a name="-redis--log_dir_mode"></a>`log_dir_mode`

Data type: `Stdlib::Filemode`

Adjust mode for directory containing log files.

Default value: `$redis::params::log_dir_mode`

##### <a name="-redis--log_file"></a>`log_file`

Data type: `String`

Specify file where to write log entries. Relative paths will be prepended
with log_dir but absolute paths are also accepted.

Default value: `'redis.log'`

##### <a name="-redis--log_level"></a>`log_level`

Data type: `Redis::LogLevel`

Specify the server verbosity level.

Default value: `'notice'`

##### <a name="-redis--manage_repo"></a>`manage_repo`

Data type: `Boolean`

Enable/disable upstream repository configuration.

Default value: `false`

##### <a name="-redis--manage_package"></a>`manage_package`

Data type: `Boolean`

Enable/disable management of package

Default value: `true`

##### <a name="-redis--managed_by_cluster_manager"></a>`managed_by_cluster_manager`

Data type: `Boolean`

Choose if redis will be managed by a cluster manager such as pacemaker or rgmanager

Default value: `false`

##### <a name="-redis--masterauth"></a>`masterauth`

Data type: `Optional[Variant[String[1], Sensitive[String[1]], Deferred]]`

If the master is password protected (using the "requirepass" configuration

Default value: `undef`

##### <a name="-redis--maxclients"></a>`maxclients`

Data type: `Integer[1]`

Set the max number of connected clients at the same time.

Default value: `10000`

##### <a name="-redis--maxmemory"></a>`maxmemory`

Data type: `Any`

Don't use more memory than the specified amount of bytes.

Default value: `undef`

##### <a name="-redis--maxmemory_policy"></a>`maxmemory_policy`

Data type: `Optional[Redis::MemoryPolicy]`

How Redis will select what to remove when maxmemory is reached.

Default value: `undef`

##### <a name="-redis--maxmemory_samples"></a>`maxmemory_samples`

Data type: `Optional[Integer[1, 10]]`

Select as well the sample size to check.

Default value: `undef`

##### <a name="-redis--min_slaves_max_lag"></a>`min_slaves_max_lag`

Data type: `Integer[0]`

The lag in seconds

Default value: `10`

##### <a name="-redis--min_slaves_to_write"></a>`min_slaves_to_write`

Data type: `Integer[0]`

Minimum number of slaves to be in "online" state

Default value: `0`

##### <a name="-redis--modules"></a>`modules`

Data type: `Array[Stdlib::Absolutepath]`

Additional redis modules to load (.so path)

Default value: `[]`

##### <a name="-redis--no_appendfsync_on_rewrite"></a>`no_appendfsync_on_rewrite`

Data type: `Boolean`

If you have latency problems turn this to 'true'. Otherwise leave it as

Default value: `false`

##### <a name="-redis--notify_keyspace_events"></a>`notify_keyspace_events`

Data type: `Optional[String[1]]`

Which events to notify Pub/Sub clients about events happening

Default value: `undef`

##### <a name="-redis--notify_service"></a>`notify_service`

Data type: `Boolean`

You may disable service reloads when config files change

Default value: `true`

##### <a name="-redis--output_buffer_limit_slave"></a>`output_buffer_limit_slave`

Data type: `String[1]`

Value of client-output-buffer-limit-slave in redis config

Default value: `'256mb 64mb 60'`

##### <a name="-redis--output_buffer_limit_pubsub"></a>`output_buffer_limit_pubsub`

Data type: `String[1]`

Value of client-output-buffer-limit-pubsub in redis config

Default value: `'32mb 8mb 60'`

##### <a name="-redis--package_ensure"></a>`package_ensure`

Data type: `String[1]`

Default action for package.

Default value: `'installed'`

##### <a name="-redis--package_name"></a>`package_name`

Data type: `String[1]`

Upstream package name.

Default value: `$redis::params::package_name`

##### <a name="-redis--pid_file"></a>`pid_file`

Data type: `Stdlib::Absolutepath`

Where to store the pid.

Default value: `$redis::params::pid_file`

##### <a name="-redis--port"></a>`port`

Data type: `Stdlib::Port`

Configure which port to listen on.

Default value: `6379`

##### <a name="-redis--protected_mode"></a>`protected_mode`

Data type: `Boolean`

Whether protected mode is enabled or not.  Only applicable when no bind is set.

Default value: `true`

##### <a name="-redis--ppa_repo"></a>`ppa_repo`

Data type: `Optional[String]`

Specify upstream (Ubuntu) PPA entry.

Default value: `undef`

##### <a name="-redis--redis_apt_repo"></a>`redis_apt_repo`

Data type: `Boolean`

If you want to use the redis apt repository.

Default value: `false`

##### <a name="-redis--apt_location"></a>`apt_location`

Data type: `Stdlib::HTTPSUrl`

Specify the URL of the apt repository.

Default value: `'https://packages.redis.io/deb/'`

##### <a name="-redis--apt_repos"></a>`apt_repos`

Data type: `String[1]`

Specify the repository to use for apt. Defaults to 'main'.

Default value: `'main'`

##### <a name="-redis--apt_release"></a>`apt_release`

Data type: `Optional[String]`

Specify the os codename.

Default value: `undef`

##### <a name="-redis--apt_key_id"></a>`apt_key_id`

Data type: `String[1]`

Specify the PGP key id to use for apt.

Default value: `'54318FA4052D1E61A6B6F7BB5F4349D6BF53AA0C'`

##### <a name="-redis--apt_key_server"></a>`apt_key_server`

Data type: `String[1]`

Specify the PGP key server to use for apt.

Default value: `'hkp://keyserver.ubuntu.com/'`

##### <a name="-redis--apt_key_options"></a>`apt_key_options`

Data type: `Optional[String]`

Passes additional options to `apt-key adv --keyserver-options`.

Default value: `undef`

##### <a name="-redis--rdbcompression"></a>`rdbcompression`

Data type: `Boolean`

Enable/disable compression of string objects using LZF when dumping.

Default value: `true`

##### <a name="-redis--rename_commands"></a>`rename_commands`

Data type: `Hash[String,String]`

A list of Redis commands to rename or disable for security reasons

Default value: `{}`

##### <a name="-redis--repl_announce_ip"></a>`repl_announce_ip`

Data type: `Optional[Stdlib::Host]`

The specific IP or hostname a replica will report to its master

Default value: `undef`

##### <a name="-redis--repl_announce_port"></a>`repl_announce_port`

Data type: `Optional[Stdlib::Port]`

The specific port a replica will report to its master

Default value: `undef`

##### <a name="-redis--repl_backlog_size"></a>`repl_backlog_size`

Data type: `String[1]`

The replication backlog size

Default value: `'1mb'`

##### <a name="-redis--repl_backlog_ttl"></a>`repl_backlog_ttl`

Data type: `Integer[0]`

The number of seconds to elapse before freeing backlog buffer

Default value: `3600`

##### <a name="-redis--repl_disable_tcp_nodelay"></a>`repl_disable_tcp_nodelay`

Data type: `Boolean`

Enable/disable TCP_NODELAY on the slave socket after SYNC

Default value: `false`

##### <a name="-redis--repl_ping_slave_period"></a>`repl_ping_slave_period`

Data type: `Integer[1]`

Slaves send PINGs to server in a predefined interval. It's possible

Default value: `10`

##### <a name="-redis--repl_timeout"></a>`repl_timeout`

Data type: `Integer[1]`

Set the replication timeout for:

Default value: `60`

##### <a name="-redis--requirepass"></a>`requirepass`

Data type: `Optional[Variant[String, Sensitive[String[1]], Deferred]]`

Require clients to issue AUTH <PASSWORD> before processing any other commands.

Default value: `undef`

##### <a name="-redis--save_db_to_disk"></a>`save_db_to_disk`

Data type: `Boolean`

Set if save db to disk.

Default value: `true`

##### <a name="-redis--save_db_to_disk_interval"></a>`save_db_to_disk_interval`

Data type: `Hash`

save the dataset every N seconds if there are at least M changes in the dataset

Default value: `{ '900' => '1', '300' => '10', '60' => '10000' }`

##### <a name="-redis--service_manage"></a>`service_manage`

Data type: `Boolean`

Specify if the service should be part of the catalog.

Default value: `true`

##### <a name="-redis--service_enable"></a>`service_enable`

Data type: `Boolean`

Enable/disable daemon at boot.

Default value: `true`

##### <a name="-redis--service_ensure"></a>`service_ensure`

Data type: `Stdlib::Ensure::Service`

Specify if the server should be running.

Default value: `'running'`

##### <a name="-redis--service_group"></a>`service_group`

Data type: `String[1]`

Specify which group to run as.

Default value: `'redis'`

##### <a name="-redis--service_name"></a>`service_name`

Data type: `String[1]`

Specify the service name for Init or Systemd.

Default value: `$redis::params::service_name`

##### <a name="-redis--service_user"></a>`service_user`

Data type: `String[1]`

Specify which user to run as.

Default value: `'redis'`

##### <a name="-redis--service_timeout_start"></a>`service_timeout_start`

Data type: `Optional[Integer[0]]`

Specify the time after which a service startup should be considered as failed.

Default value: `undef`

##### <a name="-redis--service_timeout_stop"></a>`service_timeout_stop`

Data type: `Optional[Integer[0]]`

Specify the time after which a service stop should be considered as failed.

Default value: `undef`

##### <a name="-redis--set_max_intset_entries"></a>`set_max_intset_entries`

Data type: `Integer[0]`

The following configuration setting sets the limit in the size of the set
in order to use this special memory saving encoding.

Default value: `512`

##### <a name="-redis--slave_priority"></a>`slave_priority`

Data type: `Integer[0]`

The priority number for slave promotion by Sentinel

Default value: `100`

##### <a name="-redis--slave_read_only"></a>`slave_read_only`

Data type: `Boolean`

You can configure a slave instance to accept writes or not.

Default value: `true`

##### <a name="-redis--slave_serve_stale_data"></a>`slave_serve_stale_data`

Data type: `Boolean`

When a slave loses its connection with the master, or when the replication
is still in progress, the slave can act in two different ways:
1) if slave-serve-stale-data is set to 'yes' (the default) the slave will
   still reply to client requests, possibly with out of date data, or the
   data set may just be empty if this is the first synchronization.
2) if slave-serve-stale-data is set to 'no' the slave will reply with
   an error "SYNC with master in progress" to all the kind of commands
   but to INFO and SLAVEOF.

Default value: `true`

##### <a name="-redis--slaveof"></a>`slaveof`

Data type: `Optional[String[1]]`

Use slaveof to make a Redis instance a copy of another Redis server.

Default value: `undef`

##### <a name="-redis--replicaof"></a>`replicaof`

Data type: `Optional[String[1]]`

Use replicaof to make a Redis instance a copy of another Redis server.

Default value: `undef`

##### <a name="-redis--slowlog_log_slower_than"></a>`slowlog_log_slower_than`

Data type: `Integer[-1]`

Tells Redis what is the execution time, in microseconds, to exceed in order
for the command to get logged.

Default value: `10000`

##### <a name="-redis--slowlog_max_len"></a>`slowlog_max_len`

Data type: `Integer[0]`

Tells Redis what is the length to exceed in order for the command to get
logged.

Default value: `1024`

##### <a name="-redis--stop_writes_on_bgsave_error"></a>`stop_writes_on_bgsave_error`

Data type: `Boolean`

If false then Redis will continue to work as usual even if there are
problems with disk, permissions, and so forth.

Default value: `true`

##### <a name="-redis--syslog_enabled"></a>`syslog_enabled`

Data type: `Boolean`

Enable/disable logging to the system logger.

Default value: `false`

##### <a name="-redis--syslog_facility"></a>`syslog_facility`

Data type: `Optional[String[1]]`

Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7.

Default value: `undef`

##### <a name="-redis--tcp_backlog"></a>`tcp_backlog`

Data type: `Integer[0]`

Sets the TCP backlog

Default value: `511`

##### <a name="-redis--tcp_keepalive"></a>`tcp_keepalive`

Data type: `Integer[0]`

TCP keepalive.

Default value: `0`

##### <a name="-redis--timeout"></a>`timeout`

Data type: `Integer[0]`

Close the connection after a client is idle for N seconds (0 to disable).

Default value: `0`

##### <a name="-redis--tls_port"></a>`tls_port`

Data type: `Optional[Stdlib::Port]`

Configure which TLS port to listen on.

Default value: `undef`

##### <a name="-redis--tls_cert_file"></a>`tls_cert_file`

Data type: `Optional[Stdlib::Absolutepath]`

Specify which X.509 certificate file to use for TLS connections.

Default value: `undef`

##### <a name="-redis--tls_key_file"></a>`tls_key_file`

Data type: `Optional[Stdlib::Absolutepath]`

Specify which privaye key file to use for TLS connections.

Default value: `undef`

##### <a name="-redis--tls_ca_cert_file"></a>`tls_ca_cert_file`

Data type: `Optional[Stdlib::Absolutepath]`

Specify which X.509 CA certificate(s) bundle file to use.

Default value: `undef`

##### <a name="-redis--tls_ca_cert_dir"></a>`tls_ca_cert_dir`

Data type: `Optional[Stdlib::Absolutepath]`

Specify which X.509 CA certificate(s) bundle directory to use.

Default value: `undef`

##### <a name="-redis--tls_auth_clients"></a>`tls_auth_clients`

Data type: `Enum['yes', 'no', 'optional']`

Specify if clients and replicas are required to authenticate using valid client side certificates.

Default value: `'no'`

##### <a name="-redis--tls_replication"></a>`tls_replication`

Data type: `Boolean`

Specify if TLS should be enabled on replication links.

Default value: `false`

##### <a name="-redis--tls_cluster"></a>`tls_cluster`

Data type: `Boolean`

Specify if TLS should be used for the bus protocol.

Default value: `false`

##### <a name="-redis--tls_ciphers"></a>`tls_ciphers`

Data type: `Optional[String[1]]`

Configure allowed ciphers for TLS <= TLSv1.2.

Default value: `undef`

##### <a name="-redis--tls_ciphersuites"></a>`tls_ciphersuites`

Data type: `Optional[String[1]]`

Configure allowed TLSv1.3 ciphersuites.

Default value: `undef`

##### <a name="-redis--tls_protocols"></a>`tls_protocols`

Data type: `Optional[String[1]]`

Configure allowed TLS protocol versions.

Default value: `undef`

##### <a name="-redis--tls_prefer_server_ciphers"></a>`tls_prefer_server_ciphers`

Data type: `Boolean`

Specify if the server's preference should be used when choosing a cipher.

Default value: `false`

##### <a name="-redis--ulimit"></a>`ulimit`

Data type: `Integer[0]`

Limit the use of system-wide resources.

Default value: `65536`

##### <a name="-redis--ulimit_managed"></a>`ulimit_managed`

Data type: `Boolean`

Defines wheter the max number of open files for the
systemd service unit is explicitly managed.

Default value: `true`

##### <a name="-redis--unixsocket"></a>`unixsocket`

Data type: `Variant[Stdlib::Absolutepath, Enum['']]`

Define unix socket path

Default value: `'/var/run/redis/redis.sock'`

##### <a name="-redis--unixsocketperm"></a>`unixsocketperm`

Data type: `Variant[Stdlib::Filemode, Enum['']]`

Define unix socket file permissions

Default value: `'0755'`

##### <a name="-redis--workdir"></a>`workdir`

Data type: `Stdlib::Absolutepath`

The DB will be written inside this directory, with the filename specified
above using the 'dbfilename' configuration directive.

Default value: `$redis::params::workdir`

##### <a name="-redis--workdir_mode"></a>`workdir_mode`

Data type: `Stdlib::Filemode`

Adjust mode for data directory.

Default value: `'0750'`

##### <a name="-redis--workdir_group"></a>`workdir_group`

Data type: `Optional[String[1]]`

Adjust filesystem group for $workdir.

Default value: `undef`

##### <a name="-redis--workdir_owner"></a>`workdir_owner`

Data type: `Optional[String[1]]`

Adjust filesystem owner for $workdir.

Default value: `undef`

##### <a name="-redis--debdefault_group"></a>`debdefault_group`

Data type: `Optional[String[1]]`

group of /etc/defaults/redis on Debian systems
if undef, $redis::config_group is taken

Default value: `undef`

##### <a name="-redis--debdefault_file_mode"></a>`debdefault_file_mode`

Data type: `Optional[Stdlib::Filemode]`

filemode of /etc/defaults/redis on Debian systems
if undef, $redis::config_file_mode is taken

Default value: `undef`

##### <a name="-redis--debdefault_owner"></a>`debdefault_owner`

Data type: `Optional[String[1]]`

owner of /etc/defaults/redis on Debian systems
if undef, $redis::config_owner is taken

Default value: `undef`

##### <a name="-redis--zset_max_ziplist_entries"></a>`zset_max_ziplist_entries`

Data type: `Integer[0]`

Set max entries for sorted sets.

Default value: `128`

##### <a name="-redis--zset_max_ziplist_value"></a>`zset_max_ziplist_value`

Data type: `Integer[0]`

Set max values for sorted sets.

Default value: `64`

##### <a name="-redis--cluster_enabled"></a>`cluster_enabled`

Data type: `Boolean`

Enables redis 3.0 cluster functionality

Default value: `false`

##### <a name="-redis--cluster_config_file"></a>`cluster_config_file`

Data type: `String[1]`

Config file for saving cluster nodes configuration. This file is never
touched by humans. Only set if cluster_enabled is true

Default value: `'nodes.conf'`

##### <a name="-redis--cluster_node_timeout"></a>`cluster_node_timeout`

Data type: `Integer[1]`

Node timeout. Only set if cluster_enabled is true

Default value: `5000`

##### <a name="-redis--cluster_slave_validity_factor"></a>`cluster_slave_validity_factor`

Data type: `Integer[0]`

Control variable to disable promoting slave in case of disconnection from master
Only set if cluster_enabled is true

Default value: `0`

##### <a name="-redis--cluster_require_full_coverage"></a>`cluster_require_full_coverage`

Data type: `Boolean`

If false Redis Cluster will server queries even if requests about a subset of keys can be processed
Only set if cluster_enabled is true

Default value: `true`

##### <a name="-redis--cluster_migration_barrier"></a>`cluster_migration_barrier`

Data type: `Integer[0]`

Minimum number of slaves master will remain connected with, for another
slave to migrate to a master which is no longer covered by any slave.
Only set if cluster_enabled is true

Default value: `1`

##### <a name="-redis--instances"></a>`instances`

Data type: `Hash[String[1], Hash]`

Iterate through multiple instance configurations

Default value: `{}`

##### <a name="-redis--io_threads"></a>`io_threads`

Data type: `Optional[Integer[1]]`

Number of threads to handle IO operations in Redis

Default value: `undef`

##### <a name="-redis--io_threads_do_reads"></a>`io_threads_do_reads`

Data type: `Optional[Boolean]`

Enabled/disable io_threads to handle reads

Default value: `undef`

##### <a name="-redis--cluster_allow_reads_when_down"></a>`cluster_allow_reads_when_down`

Data type: `Optional[Boolean]`

Allows nodes to serve read data while cluster status is down

Default value: `undef`

##### <a name="-redis--cluster_replica_no_failover"></a>`cluster_replica_no_failover`

Data type: `Optional[Boolean]`

Disabled automatic failover for replica

Default value: `undef`

##### <a name="-redis--dynamic_hz"></a>`dynamic_hz`

Data type: `Optional[Boolean]`

When dynamic HZ is enabled, the actual configured HZ will be used
as a baseline, but multiples of the configured HZ value will be actually
used as needed once more clients are connected.

Default value: `undef`

##### <a name="-redis--activedefrag"></a>`activedefrag`

Data type: `Optional[Boolean]`

Enable/disable active defragmentation

Default value: `undef`

##### <a name="-redis--active_defrag_ignore_bytes"></a>`active_defrag_ignore_bytes`

Data type: `String[1]`

Minimum amount of fragmentation waste to start active defrag
Only set if activedefrag is true

Default value: `'100mb'`

##### <a name="-redis--active_defrag_threshold_lower"></a>`active_defrag_threshold_lower`

Data type: `Integer[1, 100]`

Minimum percentage of fragmentation to start active defrag
Only set if activedefrag is true

Default value: `10`

##### <a name="-redis--active_defrag_threshold_upper"></a>`active_defrag_threshold_upper`

Data type: `Integer[1, 100]`

Maximum percentage of fragmentation at which we use maximum effort
Only set if activedefrag is true

Default value: `100`

##### <a name="-redis--active_defrag_cycle_min"></a>`active_defrag_cycle_min`

Data type: `Integer[1, 100]`

Minimal effort for defrag in CPU percentage, to be used when the lower
threshold is reached
Only set if activedefrag is true

Default value: `1`

##### <a name="-redis--active_defrag_cycle_max"></a>`active_defrag_cycle_max`

Data type: `Integer[1, 100]`

Maximal effort for defrag in CPU percentage, to be used when the upper
threshold is reached
Only set if activedefrag is true

Default value: `100`

##### <a name="-redis--active_defrag_max_scan_fields"></a>`active_defrag_max_scan_fields`

Data type: `Integer[1]`

Maximum number of set/hash/zset/list fields that will be processed from
the main dictionary scan
Only set if activedefrag is true

Default value: `1000`

##### <a name="-redis--jemalloc_bg_thread"></a>`jemalloc_bg_thread`

Data type: `Optional[Boolean]`

Jemalloc background thread for purging will be enabled by default

Default value: `undef`

##### <a name="-redis--rdb_save_incremental_fsync"></a>`rdb_save_incremental_fsync`

Data type: `Optional[Boolean]`

When redis saves RDB file, if the following option is enabled
the file will be fsync-ed every 32 MB of data generated.

Default value: `undef`

##### <a name="-redis--dnf_module_stream"></a>`dnf_module_stream`

Data type: `Optional[String[1]]`

Manage the DNF module and set the version. This only makes sense on distributions
that use DNF package manager, such as EL8 or Fedora.

Default value: `undef`

##### <a name="-redis--acls"></a>`acls`

Data type: `Array[String[1]]`

This is a way to pass an array of raw ACLs to Redis. The ACLs must be
in the form of:

  user USERNAME [additional ACL options]

Default value: `[]`

##### <a name="-redis--manage_service_file"></a>`manage_service_file`

Data type: `Boolean`

Determine if the systemd service file should be managed

Default value: `false`

### <a name="redis--administration"></a>`redis::administration`

As documented in the FAQ and https://redis.io/topics/admin.
For disabling Transparent Huge Pages (THP), use separate module such as:
https://forge.puppet.com/modules/alexharvey/disable_transparent_hugepage

Note that this class requires the herculesteam/augeasproviders_sysctl module.

* **See also**
  * https://redis.io/topics/admin
  * https://forge.puppet.com/herculesteam/augeasproviders_sysctl

#### Examples

##### 

```puppet
include redis::administration
```

##### 

```puppet
class {'redis::administration':
  enable_overcommit_memory => false,
}
```

#### Parameters

The following parameters are available in the `redis::administration` class:

* [`enable_overcommit_memory`](#-redis--administration--enable_overcommit_memory)
* [`somaxconn`](#-redis--administration--somaxconn)

##### <a name="-redis--administration--enable_overcommit_memory"></a>`enable_overcommit_memory`

Data type: `Boolean`

Enable the overcommit memory setting

Default value: `true`

##### <a name="-redis--administration--somaxconn"></a>`somaxconn`

Data type: `Integer[0]`

Set somaxconn value

Default value: `65535`

### <a name="redis--sentinel"></a>`redis::sentinel`

Install redis-sentinel

#### Examples

##### Basic inclusion

```puppet
include redis::sentinel
```

##### Configuring options

```puppet
class {'redis::sentinel':
  down_after => 80000,
  log_file   => '/var/log/redis/sentinel.log',
}
```

#### Parameters

The following parameters are available in the `redis::sentinel` class:

* [`auth_pass`](#-redis--sentinel--auth_pass)
* [`config_file`](#-redis--sentinel--config_file)
* [`config_file_orig`](#-redis--sentinel--config_file_orig)
* [`config_file_mode`](#-redis--sentinel--config_file_mode)
* [`conf_template`](#-redis--sentinel--conf_template)
* [`daemonize`](#-redis--sentinel--daemonize)
* [`down_after`](#-redis--sentinel--down_after)
* [`failover_timeout`](#-redis--sentinel--failover_timeout)
* [`log_file`](#-redis--sentinel--log_file)
* [`log_level`](#-redis--sentinel--log_level)
* [`master_name`](#-redis--sentinel--master_name)
* [`redis_host`](#-redis--sentinel--redis_host)
* [`redis_port`](#-redis--sentinel--redis_port)
* [`requirepass`](#-redis--sentinel--requirepass)
* [`protected_mode`](#-redis--sentinel--protected_mode)
* [`package_name`](#-redis--sentinel--package_name)
* [`package_ensure`](#-redis--sentinel--package_ensure)
* [`parallel_sync`](#-redis--sentinel--parallel_sync)
* [`pid_file`](#-redis--sentinel--pid_file)
* [`quorum`](#-redis--sentinel--quorum)
* [`sentinel_announce_hostnames`](#-redis--sentinel--sentinel_announce_hostnames)
* [`sentinel_announce_ip`](#-redis--sentinel--sentinel_announce_ip)
* [`sentinel_bind`](#-redis--sentinel--sentinel_bind)
* [`sentinel_port`](#-redis--sentinel--sentinel_port)
* [`sentinel_resolve_hostnames`](#-redis--sentinel--sentinel_resolve_hostnames)
* [`sentinel_tls_port`](#-redis--sentinel--sentinel_tls_port)
* [`service_group`](#-redis--sentinel--service_group)
* [`service_name`](#-redis--sentinel--service_name)
* [`service_user`](#-redis--sentinel--service_user)
* [`service_enable`](#-redis--sentinel--service_enable)
* [`tls_cert_file`](#-redis--sentinel--tls_cert_file)
* [`tls_key_file`](#-redis--sentinel--tls_key_file)
* [`tls_ca_cert_file`](#-redis--sentinel--tls_ca_cert_file)
* [`tls_ca_cert_dir`](#-redis--sentinel--tls_ca_cert_dir)
* [`tls_auth_clients`](#-redis--sentinel--tls_auth_clients)
* [`tls_replication`](#-redis--sentinel--tls_replication)
* [`working_dir`](#-redis--sentinel--working_dir)
* [`notification_script`](#-redis--sentinel--notification_script)
* [`client_reconfig_script`](#-redis--sentinel--client_reconfig_script)
* [`acls`](#-redis--sentinel--acls)
* [`service_ensure`](#-redis--sentinel--service_ensure)

##### <a name="-redis--sentinel--auth_pass"></a>`auth_pass`

Data type: `Optional[Variant[String[1], Sensitive[String[1]]]]`

The password to use to authenticate with the master and slaves.

Default value: `undef`

##### <a name="-redis--sentinel--config_file"></a>`config_file`

Data type: `Stdlib::Absolutepath`

The location and name of the sentinel config file.

Default value: `$redis::params::sentinel_config_file`

##### <a name="-redis--sentinel--config_file_orig"></a>`config_file_orig`

Data type: `Stdlib::Absolutepath`

The location and name of a config file that provides the source
of the sentinel config file. Two different files are needed
because sentinel itself writes to its own config file and we do
not want override that when puppet is run unless there are
changes from the manifests.

Default value: `$redis::params::sentinel_config_file_orig`

##### <a name="-redis--sentinel--config_file_mode"></a>`config_file_mode`

Data type: `Stdlib::Filemode`

Permissions of config file.

Default value: `'0644'`

##### <a name="-redis--sentinel--conf_template"></a>`conf_template`

Data type: `String[1]`

Define which template to use.

Default value: `'redis/redis-sentinel.conf.erb'`

##### <a name="-redis--sentinel--daemonize"></a>`daemonize`

Data type: `Boolean`

Have Redis sentinel run as a daemon.

Default value: `$redis::params::sentinel_daemonize`

##### <a name="-redis--sentinel--down_after"></a>`down_after`

Data type: `Integer[1]`

Number of milliseconds the master (or any attached slave or sentinel)
should be unreachable (as in, not acceptable reply to PING, continuously,
for the specified period) in order to consider it in S_DOWN state.

Default value: `30000`

##### <a name="-redis--sentinel--failover_timeout"></a>`failover_timeout`

Data type: `Integer[1]`

Specify the failover timeout in milliseconds.

Default value: `180000`

##### <a name="-redis--sentinel--log_file"></a>`log_file`

Data type: `Stdlib::Absolutepath`

Specify where to write log entries.

Default value: `$redis::params::sentinel_log_file`

##### <a name="-redis--sentinel--log_level"></a>`log_level`

Data type: `Redis::LogLevel`

Specify how much we should log.

Default value: `'notice'`

##### <a name="-redis--sentinel--master_name"></a>`master_name`

Data type: `String[1]`

Specify the name of the master redis server.
The valid charset is A-z 0-9 and the three characters ".-_".

Default value: `'mymaster'`

##### <a name="-redis--sentinel--redis_host"></a>`redis_host`

Data type: `Stdlib::Host`

Specify the bound host of the master redis server.

Default value: `'127.0.0.1'`

##### <a name="-redis--sentinel--redis_port"></a>`redis_port`

Data type: `Stdlib::Port`

Specify the port of the master redis server.

Default value: `6379`

##### <a name="-redis--sentinel--requirepass"></a>`requirepass`

Data type: `Optional[String[1]]`

Specify the password to require client authentication via the AUTH command, however this feature is only available starting with Redis 5.0.1.

Default value: `undef`

##### <a name="-redis--sentinel--protected_mode"></a>`protected_mode`

Data type: `Boolean`

Whether protected mode is enabled or not. Only applicable when no bind is set.

Default value: `true`

##### <a name="-redis--sentinel--package_name"></a>`package_name`

Data type: `String[1]`

The name of the package that installs sentinel.

Default value: `$redis::params::sentinel_package_name`

##### <a name="-redis--sentinel--package_ensure"></a>`package_ensure`

Data type: `String[1]`

Do we ensure this package. This parameter takes effect only if
an independent package is required for sentinel.

Default value: `'installed'`

##### <a name="-redis--sentinel--parallel_sync"></a>`parallel_sync`

Data type: `Integer[0]`

How many slaves can be reconfigured at the same time to use a
new master after a failover.

Default value: `1`

##### <a name="-redis--sentinel--pid_file"></a>`pid_file`

Data type: `Stdlib::Absolutepath`

If sentinel is daemonized it will write its pid at this location.

Default value: `$redis::params::sentinel_pid_file`

##### <a name="-redis--sentinel--quorum"></a>`quorum`

Data type: `Integer[1]`

Number of sentinels that must agree that a master is down to
signal sdown state.

Default value: `2`

##### <a name="-redis--sentinel--sentinel_announce_hostnames"></a>`sentinel_announce_hostnames`

Data type: `Optional[Enum['yes', 'no']]`

Whether or not sentinels will announce hostnames instead of ip addresses
to clients.  This can be required for TLS.

Default value: `undef`

##### <a name="-redis--sentinel--sentinel_announce_ip"></a>`sentinel_announce_ip`

Data type: `Optional[Stdlib::Host]`

Specify the IP or hostname that Sentinel will announce

Default value: `undef`

##### <a name="-redis--sentinel--sentinel_bind"></a>`sentinel_bind`

Data type: `Variant[Undef, Stdlib::IP::Address, Array[Stdlib::IP::Address]]`

Allow optional sentinel server ip binding.  Can help overcome
issues arising from protect-mode added Redis 3.2

Default value: `undef`

##### <a name="-redis--sentinel--sentinel_port"></a>`sentinel_port`

Data type: `Stdlib::Port`

The port of sentinel server.

Default value: `26379`

##### <a name="-redis--sentinel--sentinel_resolve_hostnames"></a>`sentinel_resolve_hostnames`

Data type: `Optional[Enum['yes', 'no']]`

Whether or not sentinels can resolve hostnames to ip addresses.

Default value: `undef`

##### <a name="-redis--sentinel--sentinel_tls_port"></a>`sentinel_tls_port`

Data type: `Optional[Stdlib::Port::Unprivileged]`

Configure which TLS port to listen on.

Default value: `undef`

##### <a name="-redis--sentinel--service_group"></a>`service_group`

Data type: `String[1]`

The group of the config file.

Default value: `'redis'`

##### <a name="-redis--sentinel--service_name"></a>`service_name`

Data type: `String[1]`

The name of the service (for puppet to manage).

Default value: `$redis::params::sentinel_service_name`

##### <a name="-redis--sentinel--service_user"></a>`service_user`

Data type: `String[1]`

The owner of the config file.

Default value: `'redis'`

##### <a name="-redis--sentinel--service_enable"></a>`service_enable`

Data type: `Boolean`

Enable the service at boot time.

Default value: `true`

##### <a name="-redis--sentinel--tls_cert_file"></a>`tls_cert_file`

Data type: `Optional[Stdlib::Absolutepath]`

Specify which X.509 certificate file to use for TLS connections.

Default value: `undef`

##### <a name="-redis--sentinel--tls_key_file"></a>`tls_key_file`

Data type: `Optional[Stdlib::Absolutepath]`

Specify which privaye key file to use for TLS connections.

Default value: `undef`

##### <a name="-redis--sentinel--tls_ca_cert_file"></a>`tls_ca_cert_file`

Data type: `Optional[Stdlib::Absolutepath]`

Specify which X.509 CA certificate(s) bundle file to use.

Default value: `undef`

##### <a name="-redis--sentinel--tls_ca_cert_dir"></a>`tls_ca_cert_dir`

Data type: `Optional[Stdlib::Absolutepath]`

Specify which X.509 CA certificate(s) bundle directory to use.

Default value: `undef`

##### <a name="-redis--sentinel--tls_auth_clients"></a>`tls_auth_clients`

Data type: `Enum['yes', 'no', 'optional']`

Specify if clients and replicas are required to authenticate using valid client side certificates.

Default value: `'no'`

##### <a name="-redis--sentinel--tls_replication"></a>`tls_replication`

Data type: `Boolean`

Specify if TLS should be enabled on replication links.

Default value: `false`

##### <a name="-redis--sentinel--working_dir"></a>`working_dir`

Data type: `Stdlib::Absolutepath`

The directory into which sentinel will change to avoid mount
conflicts.

Default value: `$redis::params::sentinel_working_dir`

##### <a name="-redis--sentinel--notification_script"></a>`notification_script`

Data type: `Optional[Stdlib::Absolutepath]`

Path to the notification script

Default value: `undef`

##### <a name="-redis--sentinel--client_reconfig_script"></a>`client_reconfig_script`

Data type: `Optional[Stdlib::Absolutepath]`

Path to the client-reconfig script

Default value: `undef`

##### <a name="-redis--sentinel--acls"></a>`acls`

Data type: `Array[String[1]]`

This is a way to pass an array of raw ACLs to Sentinel. The ACLs must be
in the form of:

  user USERNAME [additional ACL options]

Default value: `[]`

##### <a name="-redis--sentinel--service_ensure"></a>`service_ensure`

Data type: `Stdlib::Ensure::Service`



Default value: `'running'`

## Defined types

### <a name="redis--instance"></a>`redis::instance`

This is an defined type to allow the configuration of
multiple redis instances on one machine without conflicts

#### Examples

##### 

```puppet
redis::instance {'6380':
  port => 6380,
}
```

#### Parameters

The following parameters are available in the `redis::instance` defined type:

* [`activerehashing`](#-redis--instance--activerehashing)
* [`aof_load_truncated`](#-redis--instance--aof_load_truncated)
* [`aof_rewrite_incremental_fsync`](#-redis--instance--aof_rewrite_incremental_fsync)
* [`appendfilename`](#-redis--instance--appendfilename)
* [`appendfsync`](#-redis--instance--appendfsync)
* [`appendonly`](#-redis--instance--appendonly)
* [`auto_aof_rewrite_min_size`](#-redis--instance--auto_aof_rewrite_min_size)
* [`auto_aof_rewrite_percentage`](#-redis--instance--auto_aof_rewrite_percentage)
* [`bind`](#-redis--instance--bind)
* [`config_file_orig`](#-redis--instance--config_file_orig)
* [`config_file`](#-redis--instance--config_file)
* [`config_file_mode`](#-redis--instance--config_file_mode)
* [`config_group`](#-redis--instance--config_group)
* [`config_owner`](#-redis--instance--config_owner)
* [`conf_template`](#-redis--instance--conf_template)
* [`daemonize`](#-redis--instance--daemonize)
* [`databases`](#-redis--instance--databases)
* [`dbfilename`](#-redis--instance--dbfilename)
* [`extra_config_file`](#-redis--instance--extra_config_file)
* [`hash_max_ziplist_entries`](#-redis--instance--hash_max_ziplist_entries)
* [`hash_max_ziplist_value`](#-redis--instance--hash_max_ziplist_value)
* [`hll_sparse_max_bytes`](#-redis--instance--hll_sparse_max_bytes)
* [`hz`](#-redis--instance--hz)
* [`latency_monitor_threshold`](#-redis--instance--latency_monitor_threshold)
* [`list_max_ziplist_entries`](#-redis--instance--list_max_ziplist_entries)
* [`list_max_ziplist_value`](#-redis--instance--list_max_ziplist_value)
* [`log_dir`](#-redis--instance--log_dir)
* [`log_dir_mode`](#-redis--instance--log_dir_mode)
* [`log_file`](#-redis--instance--log_file)
* [`log_level`](#-redis--instance--log_level)
* [`managed_by_cluster_manager`](#-redis--instance--managed_by_cluster_manager)
* [`manage_service_file`](#-redis--instance--manage_service_file)
* [`masterauth`](#-redis--instance--masterauth)
* [`maxclients`](#-redis--instance--maxclients)
* [`maxmemory`](#-redis--instance--maxmemory)
* [`maxmemory_policy`](#-redis--instance--maxmemory_policy)
* [`maxmemory_samples`](#-redis--instance--maxmemory_samples)
* [`min_slaves_max_lag`](#-redis--instance--min_slaves_max_lag)
* [`min_slaves_to_write`](#-redis--instance--min_slaves_to_write)
* [`modules`](#-redis--instance--modules)
* [`no_appendfsync_on_rewrite`](#-redis--instance--no_appendfsync_on_rewrite)
* [`notify_keyspace_events`](#-redis--instance--notify_keyspace_events)
* [`notify_service`](#-redis--instance--notify_service)
* [`pid_file`](#-redis--instance--pid_file)
* [`port`](#-redis--instance--port)
* [`protected_mode`](#-redis--instance--protected_mode)
* [`rdbcompression`](#-redis--instance--rdbcompression)
* [`rename_commands`](#-redis--instance--rename_commands)
* [`repl_announce_ip`](#-redis--instance--repl_announce_ip)
* [`repl_announce_port`](#-redis--instance--repl_announce_port)
* [`repl_backlog_size`](#-redis--instance--repl_backlog_size)
* [`repl_backlog_ttl`](#-redis--instance--repl_backlog_ttl)
* [`repl_disable_tcp_nodelay`](#-redis--instance--repl_disable_tcp_nodelay)
* [`repl_ping_slave_period`](#-redis--instance--repl_ping_slave_period)
* [`repl_timeout`](#-redis--instance--repl_timeout)
* [`requirepass`](#-redis--instance--requirepass)
* [`save_db_to_disk`](#-redis--instance--save_db_to_disk)
* [`save_db_to_disk_interval`](#-redis--instance--save_db_to_disk_interval)
* [`service_name`](#-redis--instance--service_name)
* [`service_enable`](#-redis--instance--service_enable)
* [`service_ensure`](#-redis--instance--service_ensure)
* [`service_group`](#-redis--instance--service_group)
* [`service_user`](#-redis--instance--service_user)
* [`service_timeout_start`](#-redis--instance--service_timeout_start)
* [`service_timeout_stop`](#-redis--instance--service_timeout_stop)
* [`set_max_intset_entries`](#-redis--instance--set_max_intset_entries)
* [`slave_priority`](#-redis--instance--slave_priority)
* [`slave_read_only`](#-redis--instance--slave_read_only)
* [`slave_serve_stale_data`](#-redis--instance--slave_serve_stale_data)
* [`slaveof`](#-redis--instance--slaveof)
* [`replicaof`](#-redis--instance--replicaof)
* [`slowlog_log_slower_than`](#-redis--instance--slowlog_log_slower_than)
* [`slowlog_max_len`](#-redis--instance--slowlog_max_len)
* [`stop_writes_on_bgsave_error`](#-redis--instance--stop_writes_on_bgsave_error)
* [`syslog_enabled`](#-redis--instance--syslog_enabled)
* [`syslog_facility`](#-redis--instance--syslog_facility)
* [`tcp_backlog`](#-redis--instance--tcp_backlog)
* [`tcp_keepalive`](#-redis--instance--tcp_keepalive)
* [`timeout`](#-redis--instance--timeout)
* [`tls_port`](#-redis--instance--tls_port)
* [`tls_cert_file`](#-redis--instance--tls_cert_file)
* [`tls_key_file`](#-redis--instance--tls_key_file)
* [`tls_ca_cert_file`](#-redis--instance--tls_ca_cert_file)
* [`tls_ca_cert_dir`](#-redis--instance--tls_ca_cert_dir)
* [`tls_auth_clients`](#-redis--instance--tls_auth_clients)
* [`tls_replication`](#-redis--instance--tls_replication)
* [`tls_cluster`](#-redis--instance--tls_cluster)
* [`tls_ciphers`](#-redis--instance--tls_ciphers)
* [`tls_ciphersuites`](#-redis--instance--tls_ciphersuites)
* [`tls_protocols`](#-redis--instance--tls_protocols)
* [`tls_prefer_server_ciphers`](#-redis--instance--tls_prefer_server_ciphers)
* [`ulimit`](#-redis--instance--ulimit)
* [`ulimit_managed`](#-redis--instance--ulimit_managed)
* [`unixsocket`](#-redis--instance--unixsocket)
* [`unixsocketperm`](#-redis--instance--unixsocketperm)
* [`workdir`](#-redis--instance--workdir)
* [`workdir_mode`](#-redis--instance--workdir_mode)
* [`zset_max_ziplist_entries`](#-redis--instance--zset_max_ziplist_entries)
* [`zset_max_ziplist_value`](#-redis--instance--zset_max_ziplist_value)
* [`cluster_enabled`](#-redis--instance--cluster_enabled)
* [`cluster_config_file`](#-redis--instance--cluster_config_file)
* [`cluster_node_timeout`](#-redis--instance--cluster_node_timeout)
* [`cluster_slave_validity_factor`](#-redis--instance--cluster_slave_validity_factor)
* [`cluster_require_full_coverage`](#-redis--instance--cluster_require_full_coverage)
* [`cluster_migration_barrier`](#-redis--instance--cluster_migration_barrier)
* [`io_threads`](#-redis--instance--io_threads)
* [`io_threads_do_reads`](#-redis--instance--io_threads_do_reads)
* [`cluster_allow_reads_when_down`](#-redis--instance--cluster_allow_reads_when_down)
* [`cluster_replica_no_failover`](#-redis--instance--cluster_replica_no_failover)
* [`dynamic_hz`](#-redis--instance--dynamic_hz)
* [`activedefrag`](#-redis--instance--activedefrag)
* [`active_defrag_ignore_bytes`](#-redis--instance--active_defrag_ignore_bytes)
* [`active_defrag_threshold_lower`](#-redis--instance--active_defrag_threshold_lower)
* [`active_defrag_threshold_upper`](#-redis--instance--active_defrag_threshold_upper)
* [`active_defrag_cycle_min`](#-redis--instance--active_defrag_cycle_min)
* [`active_defrag_cycle_max`](#-redis--instance--active_defrag_cycle_max)
* [`active_defrag_max_scan_fields`](#-redis--instance--active_defrag_max_scan_fields)
* [`jemalloc_bg_thread`](#-redis--instance--jemalloc_bg_thread)
* [`rdb_save_incremental_fsync`](#-redis--instance--rdb_save_incremental_fsync)
* [`acls`](#-redis--instance--acls)
* [`output_buffer_limit_slave`](#-redis--instance--output_buffer_limit_slave)
* [`output_buffer_limit_pubsub`](#-redis--instance--output_buffer_limit_pubsub)
* [`custom_options`](#-redis--instance--custom_options)

##### <a name="-redis--instance--activerehashing"></a>`activerehashing`

Data type: `Boolean`

Enable/disable active rehashing.

Default value: `$redis::activerehashing`

##### <a name="-redis--instance--aof_load_truncated"></a>`aof_load_truncated`

Data type: `Boolean`

Enable/disable loading truncated AOF file

Default value: `$redis::aof_load_truncated`

##### <a name="-redis--instance--aof_rewrite_incremental_fsync"></a>`aof_rewrite_incremental_fsync`

Data type: `Boolean`

Enable/disable fsync for AOF file

Default value: `$redis::aof_rewrite_incremental_fsync`

##### <a name="-redis--instance--appendfilename"></a>`appendfilename`

Data type: `String[1]`

The name of the append only file

Default value: `$redis::appendfilename`

##### <a name="-redis--instance--appendfsync"></a>`appendfsync`

Data type: `Enum['no', 'always', 'everysec']`

Adjust fsync mode. Valid options: always, everysec, no.

Default value: `$redis::appendfsync`

##### <a name="-redis--instance--appendonly"></a>`appendonly`

Data type: `Boolean`

Enable/disable appendonly mode.

Default value: `$redis::appendonly`

##### <a name="-redis--instance--auto_aof_rewrite_min_size"></a>`auto_aof_rewrite_min_size`

Data type: `String[1]`

Adjust minimum size for auto-aof-rewrite.

Default value: `$redis::auto_aof_rewrite_min_size`

##### <a name="-redis--instance--auto_aof_rewrite_percentage"></a>`auto_aof_rewrite_percentage`

Data type: `Integer[0]`

Adjust percentatge for auto-aof-rewrite.

Default value: `$redis::auto_aof_rewrite_percentage`

##### <a name="-redis--instance--bind"></a>`bind`

Data type: `Variant[Stdlib::IP::Address, Array[Stdlib::IP::Address]]`

Configure which IP address(es) to listen on. To bind on all interfaces, use an empty array.

Default value: `$redis::bind`

##### <a name="-redis--instance--config_file_orig"></a>`config_file_orig`

Data type: `Stdlib::Absolutepath`

The location and name of a config file that provides the source

Default value: `$redis::config_file_orig`

##### <a name="-redis--instance--config_file"></a>`config_file`

Data type: `Stdlib::Absolutepath`

Adjust main configuration file.

Default value: `$redis::config_file`

##### <a name="-redis--instance--config_file_mode"></a>`config_file_mode`

Data type: `Stdlib::Filemode`

Adjust permissions for configuration files.

Default value: `$redis::config_file_mode`

##### <a name="-redis--instance--config_group"></a>`config_group`

Data type: `String[1]`

Adjust filesystem group for config files.

Default value: `$redis::config_group`

##### <a name="-redis--instance--config_owner"></a>`config_owner`

Data type: `String[1]`

Adjust filesystem owner for config files.

Default value: `$redis::config_owner`

##### <a name="-redis--instance--conf_template"></a>`conf_template`

Data type: `String[1]`

Define which template to use.

Default value: `$redis::conf_template`

##### <a name="-redis--instance--daemonize"></a>`daemonize`

Data type: `Boolean`

Have Redis run as a daemon.

Default value: `true`

##### <a name="-redis--instance--databases"></a>`databases`

Data type: `Integer[1]`

Set the number of databases.

Default value: `$redis::databases`

##### <a name="-redis--instance--dbfilename"></a>`dbfilename`

Data type: `Variant[String[1], Boolean]`

The filename where to dump the DB

Default value: `$redis::dbfilename`

##### <a name="-redis--instance--extra_config_file"></a>`extra_config_file`

Data type: `Optional[String]`

Optional extra config file to include

Default value: `$redis::extra_config_file`

##### <a name="-redis--instance--hash_max_ziplist_entries"></a>`hash_max_ziplist_entries`

Data type: `Integer[0]`

Set max ziplist entries for hashes.

Default value: `$redis::hash_max_ziplist_entries`

##### <a name="-redis--instance--hash_max_ziplist_value"></a>`hash_max_ziplist_value`

Data type: `Integer[0]`

Set max ziplist values for hashes.

Default value: `$redis::hash_max_ziplist_value`

##### <a name="-redis--instance--hll_sparse_max_bytes"></a>`hll_sparse_max_bytes`

Data type: `Integer[0]`

HyperLogLog sparse representation bytes limit

Default value: `$redis::hll_sparse_max_bytes`

##### <a name="-redis--instance--hz"></a>`hz`

Data type: `Integer[1, 500]`

Set redis background tasks frequency

Default value: `$redis::hz`

##### <a name="-redis--instance--latency_monitor_threshold"></a>`latency_monitor_threshold`

Data type: `Integer[0]`

Latency monitoring threshold in milliseconds

Default value: `$redis::latency_monitor_threshold`

##### <a name="-redis--instance--list_max_ziplist_entries"></a>`list_max_ziplist_entries`

Data type: `Integer[0]`

Set max ziplist entries for lists.

Default value: `$redis::list_max_ziplist_entries`

##### <a name="-redis--instance--list_max_ziplist_value"></a>`list_max_ziplist_value`

Data type: `Integer[0]`

Set max ziplist values for lists.

Default value: `$redis::list_max_ziplist_value`

##### <a name="-redis--instance--log_dir"></a>`log_dir`

Data type: `Stdlib::Absolutepath`

Specify directory where to write log entries.

Default value: `$redis::log_dir`

##### <a name="-redis--instance--log_dir_mode"></a>`log_dir_mode`

Data type: `Stdlib::Filemode`

Adjust mode for directory containing log files.

Default value: `$redis::log_dir_mode`

##### <a name="-redis--instance--log_file"></a>`log_file`

Data type: `String`

Specify file where to write log entries. Relative paths will be prepended
with log_dir but absolute paths are also accepted.

Default value: `"redis-server-${name}.log"`

##### <a name="-redis--instance--log_level"></a>`log_level`

Data type: `Redis::LogLevel`

Specify the server verbosity level.

Default value: `$redis::log_level`

##### <a name="-redis--instance--managed_by_cluster_manager"></a>`managed_by_cluster_manager`

Data type: `Boolean`

Choose if redis will be managed by a cluster manager such as pacemaker or rgmanager

Default value: `$redis::managed_by_cluster_manager`

##### <a name="-redis--instance--manage_service_file"></a>`manage_service_file`

Data type: `Boolean`

Determine if the systemd service file should be managed

Default value: `true`

##### <a name="-redis--instance--masterauth"></a>`masterauth`

Data type: `Optional[Variant[String[1], Sensitive[String[1]], Deferred]]`

If the master is password protected (using the "requirepass" configuration

Default value: `$redis::masterauth`

##### <a name="-redis--instance--maxclients"></a>`maxclients`

Data type: `Integer[1]`

Set the max number of connected clients at the same time.

Default value: `$redis::maxclients`

##### <a name="-redis--instance--maxmemory"></a>`maxmemory`

Data type: `Optional[Variant[Integer, String]]`

Don't use more memory than the specified amount of bytes.

Default value: `$redis::maxmemory`

##### <a name="-redis--instance--maxmemory_policy"></a>`maxmemory_policy`

Data type: `Optional[Redis::MemoryPolicy]`

How Redis will select what to remove when maxmemory is reached.

Default value: `$redis::maxmemory_policy`

##### <a name="-redis--instance--maxmemory_samples"></a>`maxmemory_samples`

Data type: `Optional[Integer[1, 10]]`

Select as well the sample size to check.

Default value: `$redis::maxmemory_samples`

##### <a name="-redis--instance--min_slaves_max_lag"></a>`min_slaves_max_lag`

Data type: `Integer[0]`

The lag in seconds

Default value: `$redis::min_slaves_max_lag`

##### <a name="-redis--instance--min_slaves_to_write"></a>`min_slaves_to_write`

Data type: `Integer[0]`

Minimum number of slaves to be in "online" state

Default value: `$redis::min_slaves_to_write`

##### <a name="-redis--instance--modules"></a>`modules`

Data type: `Array[Stdlib::Absolutepath]`

Additional redis modules to load (.so path)

Default value: `$redis::modules`

##### <a name="-redis--instance--no_appendfsync_on_rewrite"></a>`no_appendfsync_on_rewrite`

Data type: `Boolean`

If you have latency problems turn this to 'true'. Otherwise leave it as

Default value: `$redis::no_appendfsync_on_rewrite`

##### <a name="-redis--instance--notify_keyspace_events"></a>`notify_keyspace_events`

Data type: `Optional[String[1]]`

Which events to notify Pub/Sub clients about events happening

Default value: `$redis::notify_keyspace_events`

##### <a name="-redis--instance--notify_service"></a>`notify_service`

Data type: `Boolean`

You may disable instance service reloads when config file changes

Default value: `true`

##### <a name="-redis--instance--pid_file"></a>`pid_file`

Data type: `Stdlib::Absolutepath`

Where to store the pid.

Default value: `"/var/run/${service_name}/redis.pid"`

##### <a name="-redis--instance--port"></a>`port`

Data type: `Stdlib::Port`

Configure which port to listen on.

Default value: `$redis::port`

##### <a name="-redis--instance--protected_mode"></a>`protected_mode`

Data type: `Boolean`

Whether protected mode is enabled or not.  Only applicable when no bind is set.

Default value: `$redis::protected_mode`

##### <a name="-redis--instance--rdbcompression"></a>`rdbcompression`

Data type: `Boolean`

Enable/disable compression of string objects using LZF when dumping.

Default value: `$redis::rdbcompression`

##### <a name="-redis--instance--rename_commands"></a>`rename_commands`

Data type: `Hash[String,String]`

A list of Redis commands to rename or disable for security reasons

Default value: `$redis::rename_commands`

##### <a name="-redis--instance--repl_announce_ip"></a>`repl_announce_ip`

Data type: `Optional[Stdlib::Host]`

The specific IP or hostname a replica will report to its master

Default value: `$redis::repl_announce_ip`

##### <a name="-redis--instance--repl_announce_port"></a>`repl_announce_port`

Data type: `Optional[Stdlib::Port]`

The specific port a replica will report to its master

Default value: `$redis::repl_announce_port`

##### <a name="-redis--instance--repl_backlog_size"></a>`repl_backlog_size`

Data type: `String[1]`

The replication backlog size

Default value: `$redis::repl_backlog_size`

##### <a name="-redis--instance--repl_backlog_ttl"></a>`repl_backlog_ttl`

Data type: `Integer[0]`

The number of seconds to elapse before freeing backlog buffer

Default value: `$redis::repl_backlog_ttl`

##### <a name="-redis--instance--repl_disable_tcp_nodelay"></a>`repl_disable_tcp_nodelay`

Data type: `Boolean`

Enable/disable TCP_NODELAY on the slave socket after SYNC

Default value: `$redis::repl_disable_tcp_nodelay`

##### <a name="-redis--instance--repl_ping_slave_period"></a>`repl_ping_slave_period`

Data type: `Integer[1]`

Slaves send PINGs to server in a predefined interval. It's possible

Default value: `$redis::repl_ping_slave_period`

##### <a name="-redis--instance--repl_timeout"></a>`repl_timeout`

Data type: `Integer[1]`

Set the replication timeout for:

Default value: `$redis::repl_timeout`

##### <a name="-redis--instance--requirepass"></a>`requirepass`

Data type: `Optional[Variant[String, Sensitive[String[1]], Deferred]]`

Require clients to issue AUTH <PASSWORD> before processing any other
commands.

Default value: `$redis::requirepass`

##### <a name="-redis--instance--save_db_to_disk"></a>`save_db_to_disk`

Data type: `Boolean`

Set if save db to disk.

Default value: `$redis::save_db_to_disk`

##### <a name="-redis--instance--save_db_to_disk_interval"></a>`save_db_to_disk_interval`

Data type: `Hash`

save the dataset every N seconds if there are at least M changes in the dataset

Default value: `$redis::save_db_to_disk_interval`

##### <a name="-redis--instance--service_name"></a>`service_name`

Data type: `String[1]`

The service name for this instance

Default value: `"redis-server-${name}"`

##### <a name="-redis--instance--service_enable"></a>`service_enable`

Data type: `Boolean`

Enable/disable daemon at boot.

Default value: `$redis::service_enable`

##### <a name="-redis--instance--service_ensure"></a>`service_ensure`

Data type: `Stdlib::Ensure::Service`

Specify if the server should be running.

Default value: `$redis::service_ensure`

##### <a name="-redis--instance--service_group"></a>`service_group`

Data type: `String[1]`

Specify which group to run as.

Default value: `$redis::service_group`

##### <a name="-redis--instance--service_user"></a>`service_user`

Data type: `String[1]`

Specify which user to run as.

Default value: `$redis::service_user`

##### <a name="-redis--instance--service_timeout_start"></a>`service_timeout_start`

Data type: `Optional[Integer[0]]`

Specify the time after which a service startup should be considered as failed.

Default value: `$redis::service_timeout_start`

##### <a name="-redis--instance--service_timeout_stop"></a>`service_timeout_stop`

Data type: `Optional[Integer[0]]`

Specify the time after which a service stop should be considered as failed.

Default value: `$redis::service_timeout_stop`

##### <a name="-redis--instance--set_max_intset_entries"></a>`set_max_intset_entries`

Data type: `Integer[0]`

The following configuration setting sets the limit in the size of the set
in order to use this special memory saving encoding.

Default value: `$redis::set_max_intset_entries`

##### <a name="-redis--instance--slave_priority"></a>`slave_priority`

Data type: `Integer[0]`

The priority number for slave promotion by Sentinel

Default value: `$redis::slave_priority`

##### <a name="-redis--instance--slave_read_only"></a>`slave_read_only`

Data type: `Boolean`

You can configure a slave instance to accept writes or not.

Default value: `$redis::slave_read_only`

##### <a name="-redis--instance--slave_serve_stale_data"></a>`slave_serve_stale_data`

Data type: `Boolean`

When a slave loses its connection with the master, or when the replication
is still in progress, the slave can act in two different ways:
1) if slave-serve-stale-data is set to 'yes' (the default) the slave will
   still reply to client requests, possibly with out of date data, or the
   data set may just be empty if this is the first synchronization.
2) if slave-serve-stale-data is set to 'no' the slave will reply with
   an error "SYNC with master in progress" to all the kind of commands
   but to INFO and SLAVEOF.

Default value: `$redis::slave_serve_stale_data`

##### <a name="-redis--instance--slaveof"></a>`slaveof`

Data type: `Optional[String[1]]`

Use slaveof to make a Redis instance a copy of another Redis server.

Default value: `$redis::slaveof`

##### <a name="-redis--instance--replicaof"></a>`replicaof`

Data type: `Optional[String[1]]`

Use replicaof to make a Redis instance a copy of another Redis server.

Default value: `$redis::replicaof`

##### <a name="-redis--instance--slowlog_log_slower_than"></a>`slowlog_log_slower_than`

Data type: `Integer[-1]`

Tells Redis what is the execution time, in microseconds, to exceed in order
for the command to get logged.

Default value: `$redis::slowlog_log_slower_than`

##### <a name="-redis--instance--slowlog_max_len"></a>`slowlog_max_len`

Data type: `Integer[0]`

Tells Redis what is the length to exceed in order for the command
to get logged.

Default value: `$redis::slowlog_max_len`

##### <a name="-redis--instance--stop_writes_on_bgsave_error"></a>`stop_writes_on_bgsave_error`

Data type: `Boolean`

If false then Redis will continue to work as usual even if there
are problems with disk, permissions, and so forth.

Default value: `$redis::stop_writes_on_bgsave_error`

##### <a name="-redis--instance--syslog_enabled"></a>`syslog_enabled`

Data type: `Boolean`

Enable/disable logging to the system logger.

Default value: `$redis::syslog_enabled`

##### <a name="-redis--instance--syslog_facility"></a>`syslog_facility`

Data type: `Optional[String[1]]`

Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7.

Default value: `$redis::syslog_facility`

##### <a name="-redis--instance--tcp_backlog"></a>`tcp_backlog`

Data type: `Integer[0]`

Sets the TCP backlog

Default value: `$redis::tcp_backlog`

##### <a name="-redis--instance--tcp_keepalive"></a>`tcp_keepalive`

Data type: `Integer[0]`

TCP keepalive.

Default value: `$redis::tcp_keepalive`

##### <a name="-redis--instance--timeout"></a>`timeout`

Data type: `Integer[0]`

Close the connection after a client is idle for N seconds (0 to disable).

Default value: `$redis::timeout`

##### <a name="-redis--instance--tls_port"></a>`tls_port`

Data type: `Optional[Stdlib::Port]`

Configure which TLS port to listen on.

Default value: `$redis::tls_port`

##### <a name="-redis--instance--tls_cert_file"></a>`tls_cert_file`

Data type: `Optional[Stdlib::Absolutepath]`

Specify which X.509 certificate file to use for TLS connections.

Default value: `$redis::tls_cert_file`

##### <a name="-redis--instance--tls_key_file"></a>`tls_key_file`

Data type: `Optional[Stdlib::Absolutepath]`

Specify which privaye key file to use for TLS connections.

Default value: `$redis::tls_key_file`

##### <a name="-redis--instance--tls_ca_cert_file"></a>`tls_ca_cert_file`

Data type: `Optional[Stdlib::Absolutepath]`

Specify which X.509 CA certificate(s) bundle file to use.

Default value: `$redis::tls_ca_cert_file`

##### <a name="-redis--instance--tls_ca_cert_dir"></a>`tls_ca_cert_dir`

Data type: `Optional[Stdlib::Absolutepath]`

Specify which X.509 CA certificate(s) bundle directory to use.

Default value: `$redis::tls_ca_cert_dir`

##### <a name="-redis--instance--tls_auth_clients"></a>`tls_auth_clients`

Data type: `Enum['yes', 'no', 'optional']`

Specify if clients and replicas are required to authenticate using valid client side certificates.

Default value: `$redis::tls_auth_clients`

##### <a name="-redis--instance--tls_replication"></a>`tls_replication`

Data type: `Boolean`

Specify if TLS should be enabled on replication links.

Default value: `$redis::tls_replication`

##### <a name="-redis--instance--tls_cluster"></a>`tls_cluster`

Data type: `Boolean`

Specify if TLS should be used for the bus protocol.

Default value: `$redis::tls_cluster`

##### <a name="-redis--instance--tls_ciphers"></a>`tls_ciphers`

Data type: `Optional[String[1]]`

Configure allowed ciphers for TLS <= TLSv1.2.

Default value: `$redis::tls_ciphers`

##### <a name="-redis--instance--tls_ciphersuites"></a>`tls_ciphersuites`

Data type: `Optional[String[1]]`

Configure allowed TLSv1.3 ciphersuites.

Default value: `$redis::tls_ciphersuites`

##### <a name="-redis--instance--tls_protocols"></a>`tls_protocols`

Data type: `Optional[String[1]]`

Configure allowed TLS protocol versions.

Default value: `$redis::tls_protocols`

##### <a name="-redis--instance--tls_prefer_server_ciphers"></a>`tls_prefer_server_ciphers`

Data type: `Optional[Boolean]`

Specify if the server's preference should be used when choosing a cipher.

Default value: `$redis::tls_prefer_server_ciphers`

##### <a name="-redis--instance--ulimit"></a>`ulimit`

Data type: `Integer[0]`

Limit the use of system-wide resources.

Default value: `$redis::ulimit`

##### <a name="-redis--instance--ulimit_managed"></a>`ulimit_managed`

Data type: `Boolean`

Defines wheter the max number of open files for the
systemd service unit is explicitly managed.

Default value: `$redis::ulimit_managed`

##### <a name="-redis--instance--unixsocket"></a>`unixsocket`

Data type: `Variant[Stdlib::Absolutepath, Enum['']]`

Define unix socket path

Default value: `"/var/run/${service_name}/redis.sock"`

##### <a name="-redis--instance--unixsocketperm"></a>`unixsocketperm`

Data type: `Variant[Stdlib::Filemode, Enum['']]`

Define unix socket file permissions

Default value: `$redis::unixsocketperm`

##### <a name="-redis--instance--workdir"></a>`workdir`

Data type: `Stdlib::Absolutepath`

The DB will be written inside this directory, with the filename specified
above using the 'dbfilename' configuration directive.

Default value: `"${redis::workdir}/redis-server-${name}"`

##### <a name="-redis--instance--workdir_mode"></a>`workdir_mode`

Data type: `Stdlib::Filemode`

Adjust mode for data directory.

Default value: `$redis::workdir_mode`

##### <a name="-redis--instance--zset_max_ziplist_entries"></a>`zset_max_ziplist_entries`

Data type: `Integer[0]`

Set max entries for sorted sets.

Default value: `$redis::zset_max_ziplist_entries`

##### <a name="-redis--instance--zset_max_ziplist_value"></a>`zset_max_ziplist_value`

Data type: `Integer[0]`

Set max values for sorted sets.

Default value: `$redis::zset_max_ziplist_value`

##### <a name="-redis--instance--cluster_enabled"></a>`cluster_enabled`

Data type: `Boolean`

Enables redis 3.0 cluster functionality

Default value: `$redis::cluster_enabled`

##### <a name="-redis--instance--cluster_config_file"></a>`cluster_config_file`

Data type: `String[1]`

Config file for saving cluster nodes configuration. This file is never
touched by humans.  Only set if cluster_enabled is true

Default value: `$redis::cluster_config_file`

##### <a name="-redis--instance--cluster_node_timeout"></a>`cluster_node_timeout`

Data type: `Integer[1]`

Node timeout. Only set if cluster_enabled is true

Default value: `$redis::cluster_node_timeout`

##### <a name="-redis--instance--cluster_slave_validity_factor"></a>`cluster_slave_validity_factor`

Data type: `Integer[0]`

Control variable to disable promoting slave in case of disconnection from
master Only set if cluster_enabled is true

Default value: `$redis::cluster_slave_validity_factor`

##### <a name="-redis--instance--cluster_require_full_coverage"></a>`cluster_require_full_coverage`

Data type: `Boolean`

If false Redis Cluster will server queries even if requests about a subset
of keys can be processed Only set if cluster_enabled is true

Default value: `$redis::cluster_require_full_coverage`

##### <a name="-redis--instance--cluster_migration_barrier"></a>`cluster_migration_barrier`

Data type: `Integer[0]`

Minimum number of slaves master will remain connected with, for another
slave to migrate to a  master which is no longer covered by any slave Only
set if cluster_enabled is true

Default value: `$redis::cluster_migration_barrier`

##### <a name="-redis--instance--io_threads"></a>`io_threads`

Data type: `Optional[Integer[1]]`

Number of threads to handle IO operations in Redis

Default value: `$redis::io_threads`

##### <a name="-redis--instance--io_threads_do_reads"></a>`io_threads_do_reads`

Data type: `Optional[Boolean]`

Enabled/disable io_threads to handle reads

Default value: `$redis::io_threads_do_reads`

##### <a name="-redis--instance--cluster_allow_reads_when_down"></a>`cluster_allow_reads_when_down`

Data type: `Optional[Boolean]`

Allows nodes to serve read data while cluster status is down

Default value: `$redis::cluster_allow_reads_when_down`

##### <a name="-redis--instance--cluster_replica_no_failover"></a>`cluster_replica_no_failover`

Data type: `Optional[Boolean]`

Disabled automatic failover for replica

Default value: `$redis::cluster_replica_no_failover`

##### <a name="-redis--instance--dynamic_hz"></a>`dynamic_hz`

Data type: `Optional[Boolean]`

When dynamic HZ is enabled, the actual configured HZ will be used
as a baseline, but multiples of the configured HZ value will be actually
used as needed once more clients are connected.

Default value: `$redis::dynamic_hz`

##### <a name="-redis--instance--activedefrag"></a>`activedefrag`

Data type: `Optional[Boolean]`

Enable/disable active defragmentation

Default value: `$redis::activedefrag`

##### <a name="-redis--instance--active_defrag_ignore_bytes"></a>`active_defrag_ignore_bytes`

Data type: `String[1]`

Minimum amount of fragmentation waste to start active defrag
Only set if activedefrag is true

Default value: `$redis::active_defrag_ignore_bytes`

##### <a name="-redis--instance--active_defrag_threshold_lower"></a>`active_defrag_threshold_lower`

Data type: `Integer[1, 100]`

Minimum percentage of fragmentation to start active defrag
Only set if activedefrag is true

Default value: `$redis::active_defrag_threshold_lower`

##### <a name="-redis--instance--active_defrag_threshold_upper"></a>`active_defrag_threshold_upper`

Data type: `Integer[1, 100]`

Maximum percentage of fragmentation at which we use maximum effort
Only set if activedefrag is true

Default value: `$redis::active_defrag_threshold_upper`

##### <a name="-redis--instance--active_defrag_cycle_min"></a>`active_defrag_cycle_min`

Data type: `Integer[1, 100]`

Minimal effort for defrag in CPU percentage, to be used when the lower
threshold is reached
Only set if activedefrag is true

Default value: `$redis::active_defrag_cycle_min`

##### <a name="-redis--instance--active_defrag_cycle_max"></a>`active_defrag_cycle_max`

Data type: `Integer[1, 100]`

Maximal effort for defrag in CPU percentage, to be used when the upper
threshold is reached
Only set if activedefrag is true

Default value: `$redis::active_defrag_cycle_max`

##### <a name="-redis--instance--active_defrag_max_scan_fields"></a>`active_defrag_max_scan_fields`

Data type: `Integer[1]`

Maximum number of set/hash/zset/list fields that will be processed from
the main dictionary scan
Only set if activedefrag is true

Default value: `$redis::active_defrag_max_scan_fields`

##### <a name="-redis--instance--jemalloc_bg_thread"></a>`jemalloc_bg_thread`

Data type: `Optional[Boolean]`

Jemalloc background thread for purging will be enabled by default

Default value: `$redis::jemalloc_bg_thread`

##### <a name="-redis--instance--rdb_save_incremental_fsync"></a>`rdb_save_incremental_fsync`

Data type: `Optional[Boolean]`

When redis saves RDB file, if the following option is enabled
the file will be fsync-ed every 32 MB of data generated.

Default value: `$redis::rdb_save_incremental_fsync`

##### <a name="-redis--instance--acls"></a>`acls`

Data type: `Array[String[1]]`

This is a way to pass an array of raw ACLs to Redis. The ACLs must be
in the form of:

  user USERNAME [additional ACL options]

Default value: `$redis::acls`

##### <a name="-redis--instance--output_buffer_limit_slave"></a>`output_buffer_limit_slave`

Data type: `String[1]`

Value of client-output-buffer-limit-slave in redis config

Default value: `$redis::output_buffer_limit_slave`

##### <a name="-redis--instance--output_buffer_limit_pubsub"></a>`output_buffer_limit_pubsub`

Data type: `String[1]`

Value of client-output-buffer-limit-pubsub in redis config

Default value: `$redis::output_buffer_limit_pubsub`

##### <a name="-redis--instance--custom_options"></a>`custom_options`

Data type: `Hash[String[1],Variant[String[1], Integer]]`

hash of custom options, not available as direct parameter.

Default value: `{}`

## Functions

### <a name="redis--get"></a>`redis::get`

Type: Ruby 4.x API

Returns the value of the key being looked up or `undef` if the key does not exist.

#### Examples

##### Get the version

```puppet
$version = redis::get('version.myapp', 'redis://redis.example.com:6379')
$version_with_default = redis::get('version.myapp', 'redis://redis.example.com:6379', $::myapp_version)
```

#### `redis::get(String[1] $key, Redis::RedisUrl $url, Optional[String] $default)`

The redis::get function.

Returns: `Optional[String]` Returns the value of the key from Redis

##### Examples

###### Get the version

```puppet
$version = redis::get('version.myapp', 'redis://redis.example.com:6379')
$version_with_default = redis::get('version.myapp', 'redis://redis.example.com:6379', $::myapp_version)
```

##### `key`

Data type: `String[1]`

The key to look up in redis

##### `url`

Data type: `Redis::RedisUrl`

The endpoint of the Redis instance

##### `default`

Data type: `Optional[String]`

The value to return if the key is not found or the connection to Redis fails

## Data types

### <a name="Redis--LogLevel"></a>`Redis::LogLevel`

This can be one of:
* debug (a lot of information, useful for development/testing)
* verbose (many rarely useful info, but not a mess like the debug level)
* notice (moderately verbose, what you want in production probably)
* warning (only very important / critical messages are logged)

Alias of `Enum['debug', 'verbose', 'notice', 'warning']`

### <a name="Redis--MemoryPolicy"></a>`Redis::MemoryPolicy`

This can be one of:
* volatile-lru (Evict using approximated LRU, only keys with an expire set)
* allkeys-lru (Evict any key using approximated LRU)
* volatile-lfu (Evict using approximated LFU, only keys with an expire set)
* allkeys-lfu (Evict any key using approximated LFU)
* volatile-random (Remove a random key having an expire set)
* allkeys-random (Remove a random key, any key)
* volatile-ttl (Remove the key with the nearest expire time (minor TTL)
* noeviction (Don't evict anything, just return an error on write operations)

Alias of `Enum['volatile-lru', 'allkeys-lru', 'volatile-lfu', 'allkeys-lfu', 'volatile-random', 'allkeys-random', 'volatile-ttl', 'noeviction']`

### <a name="Redis--RedisUrl"></a>`Redis::RedisUrl`

validate URL matches redis protocol

Alias of `Pattern[/(^redis:\/\/)/]`

## Tasks

### <a name="redis_cli"></a>`redis_cli`

Executes a redis-cli command on the target system

**Supports noop?** false

#### Parameters

##### `command`

Data type: `String[1]`

The command to run, including all arguments