Skip to content

Commit ff83c8a

Browse files
authored
Merge pull request #17 from xenon8/fanny/fix-redis-ssl
add back redis ssl
2 parents e597dbf + 15f3280 commit ff83c8a

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

manifests/integrations/redis.pp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@
1414
# The main redis port.
1515
# $ports
1616
# Array of redis ports: overrides port (optional)
17+
# $ssl
18+
# Enable SSL/TLS encryption for the check (optional)
19+
# $ssl_keyfile
20+
# The path to the client-side private keyfile (optional)
21+
# $ssl_certfile
22+
# The path to the client-side certificate file (optional)
23+
# $ssl_ca_certs
24+
# The path to the ca_certs file (optional)
25+
# $ssl_cert_reqs
26+
# Specifies whether a certificate is required from the
27+
# other side of the connection, and whether it's validated if provided (optional)
28+
# * 0 for ssl.CERT_NONE (certificates ignored)
29+
# * 1 for ssl.CERT_OPTIONAL (not required, but validated if provided)
30+
# * 2 for ssl.CERT_REQUIRED (required and validated)
1731
# $slowlog_max_len
1832
# The max length of the slow-query log (optional)
1933
# $tags
@@ -48,6 +62,11 @@
4862
String $password = '',
4963
Variant[String, Integer] $port = '6379',
5064
Optional[Array] $ports = undef,
65+
Boolean $ssl = false,
66+
String $ssl_keyfile = '',
67+
String $ssl_certfile = '',
68+
String $ssl_ca_certs = '',
69+
Optional[Integer] $ssl_cert_reqs = undef,
5170
Variant[String, Integer] $slowlog_max_len = '',
5271
Array $tags = [],
5372
Array $keys = [],
@@ -69,6 +88,11 @@
6988
'host' => $host,
7089
'password' => $password,
7190
'port' => $instance_port,
91+
'ssl' => $ssl,
92+
'ssl_keyfile' => $ssl_keyfile,
93+
'ssl_certfile' => $ssl_certfile,
94+
'ssl_ca_certs' => $ssl_ca_certs,
95+
'ssl_cert_reqs' => $ssl_cert_reqs,
7296
'slowlog_max_len' => $slowlog_max_len,
7397
'tags' => $tags,
7498
'keys' => $keys,

0 commit comments

Comments
 (0)