Skip to content

SSL options deprecated in mongo 4.2.X  #567

@tonythomas01

Description

@tonythomas01

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.11.1
  • Ruby: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
  • Distribution:"Ubuntu 18.04.3 LTS" with mongo 4.2.0
  • Module version: 3.0.0

How to reproduce (e.g Puppet code you use)

Running a puppet apply (vagrant provision with puppet in my case) with ssl configurations. The library seems to still lack (?) options to support tls ?

What are you seeing

==> development: Error: Could not prefetch mongodb_replset provider 'mongo': 765: unexpected token at '-12-05T11:38:01.460+0000 W  CONTROL  [main] Option: ssl is deprecated. Please use tls instead.
==> development: 2019-12-05T11:38:01.460+0000 W  CONTROL  [main] Option: sslPEMKeyFile is deprecated. Please use tlsCertificateKeyFile instead.
==> development: 2019-12-05T11:38:01.460+0000 W  CONTROL  [main] Option: sslCAFile is deprecated. Please use tlsCAFile instead.

Any additional information you'd like to impart

https://docs.mongodb.com/manual/release-notes/4.2/#deprecated-ssl-options says:

MongoDB 4.2 deprecates the SSL options for the mongod, the mongos, and the mongo shell as well as the corresponding net.ssl Options configuration file options.

Use the new TLS options instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions