Skip to content

Commit 0dfde6e

Browse files
author
Trent Nadeau
committed
Make ssl_ca optional when using SSL
1 parent 0fa1bb6 commit 0dfde6e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ For Red Hat family systems, the client can be installed in a similar fashion:
6767
class {'::mongodb::client':}
6868
```
6969

70-
Note that for Debian/Ubuntu family systems the client is installed with the
70+
Note that for Debian/Ubuntu family systems the client is installed with the
7171
server. Using the client class will by default install the server.
7272

7373
If one plans to configure sharding for a Mongo deployment, the module offer
@@ -427,11 +427,11 @@ class mongodb::server {
427427
Set to true to enable a simple REST interface. Default: false
428428

429429
#####`quiet`
430-
Runs the mongod or mongos instance in a quiet mode that attempts to limit the
430+
Runs the mongod or mongos instance in a quiet mode that attempts to limit the
431431
amount of output. This option suppresses : "output from database commands, including drop, dropIndexes, diagLogging, validate, and clean", "replication activity", "connection accepted events" and "connection closed events".
432432
Default: false
433433

434-
> For production systems this option is **not** recommended as it may make tracking
434+
> For production systems this option is **not** recommended as it may make tracking
435435
problems during particular connections much more difficult.
436436

437437
#####`slowms`
@@ -476,8 +476,9 @@ this slave instance will replicate. Default: <>
476476

477477
#####`ssl`
478478
Set to true to enable ssl. Default: <>
479-
*Important*: You need to have ssl_key and ssl_ca set as well and files
480-
need to pre-exist on node.
479+
*Important*: You need to have ssl_key set as well, and the file needs to
480+
pre-exist on node. If you wish to use certificate validation, ssl_ca must also
481+
be set.
481482

482483
#####`ssl_key`
483484
Default: <>

templates/mongodb.conf.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,7 @@ quiet = <%= @quiet %>
186186
<% if @ssl -%>
187187
sslOnNormalPorts = true
188188
sslPEMKeyFile = <%= @ssl_key %>
189+
<% if @ssl_ca -%>
189190
sslCAFile = <%= @ssl_ca %>
190191
<% end -%>
192+
<% end -%>

0 commit comments

Comments
 (0)