Skip to content

Commit

Permalink
delete cloud section & add allowConnectionsWithoutCertificates option…
Browse files Browse the repository at this point in the history
… to config
  • Loading branch information
sysolyakin committed Jan 28, 2025
1 parent 004ebb9 commit f2c3290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ mongodb_net_port: 27017 # Specify port number
mongodb_net_ssl: disabled # Enable or disable ssl connections
mongodb_net_ssl_mode: "" # Set the ssl mode (RequireSSL / preferSSL / AllowSSL / disabled)
mongodb_net_ssl_pemfile: "" # Location of the pemfile to use for ssl
mongodb_net_ssl_conn_without_certs: "false"
mongodb_net_ssl_host: "" # Valid ssl hostname

## processManagement Options
Expand Down
13 changes: 1 addition & 12 deletions templates/mongod.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ net:
ssl:
mode: {{ mongodb_net_ssl_mode }}
PEMKeyFile: {{ mongodb_net_ssl_pemfile }}
allowConnectionsWithoutCertificates: {{ mongodb_net_ssl_conn_without_certs }}
{% endif -%}
{% if mongodb_config['net'] is defined and mongodb_config['net'] is iterable -%}
{% for item in mongodb_config['net'] -%}
Expand Down Expand Up @@ -102,18 +103,6 @@ operationProfiling:
{% endfor %}
{% endif %}

{% if mongodb_major_version is version("4.0", ">=") -%}
cloud:
monitoring:
free:
state: {{ mongodb_cloud_monitoring_free_state }}
{% if mongodb_config['cloud'] is defined and mongodb_config['cloud'] is iterable -%}
{% for item in mongodb_config['cloud'] -%}
{{ item }}
{% endfor %}
{% endif %}
{% endif %}

{% if mongodb_set_parameters -%}
setParameter:
{% for key, value in mongodb_set_parameters.items() -%}
Expand Down

0 comments on commit f2c3290

Please sign in to comment.