File tree Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 2
2
3
3
net:
4
4
bindIp: {{ mongodb_net_bindip }}
5
+ {% if mongodb_major_version | version_compare ("3.6" , "<" ) -%}
5
6
http:
6
7
enabled: {{ mongodb_net_http_enabled | to_nice_json }}
8
+ {% endif -%}
7
9
ipv6: {{ mongodb_net_ipv6 | to_nice_json }}
8
10
maxIncomingConnections: {{ mongodb_net_maxconns }}
9
11
port: {{ mongodb_net_port }}
@@ -31,7 +33,7 @@ security:
31
33
32
34
storage:
33
35
dbPath: {{ mongodb_storage_dbpath }}
34
- {% if mongodb_major_version | float >= 3.0 -%}
36
+ {% if mongodb_major_version | version_compare ( " 3.0" , ">=" ) -%}
35
37
engine: {{ mongodb_storage_engine }}
36
38
{% endif -%}
37
39
journal:
@@ -42,13 +44,6 @@ storage:
42
44
enforced: {{ mongodb_storage_quota_enforced | to_nice_json }}
43
45
maxFilesPerDB: {{ mongodb_storage_quota_maxfiles }}
44
46
smallFiles: {{ mongodb_storage_smallfiles | to_nice_json }}
45
- {% endif -%}
46
- {% if mongodb_major_version == '2.6' -%}
47
- quota:
48
- enforced: {{ mongodb_storage_quota_enforced | to_nice_json }}
49
- maxFilesPerDB: {{ mongodb_storage_quota_maxfiles }}
50
- preallocDataFiles: {{ mongodb_storage_prealloc | to_nice_json }}
51
- smallFiles: {{ mongodb_storage_smallfiles | to_nice_json }}
52
47
{% endif %}
53
48
54
49
systemLog:
Original file line number Diff line number Diff line change 2
2
3
3
net:
4
4
bindIp: '127.0.0.1'
5
+ {% if mongodb_major_version | version_compare ("3.6" , "<" ) -%}
5
6
http:
6
7
enabled: {{ mongodb_net_http_enabled | to_nice_json }}
8
+ {% endif -%}
7
9
ipv6: {{ mongodb_net_ipv6 | to_nice_json }}
8
10
maxIncomingConnections: {{ mongodb_net_maxconns }}
9
11
port: {{ mongodb_net_port }}
@@ -13,13 +15,13 @@ processManagement:
13
15
{% if mongodb_pidfile_path is defined and mongodb_pidfile_path != '' -%}
14
16
pidFilePath: {{ mongodb_pidfile_path }}
15
17
{% endif %}
16
-
18
+
17
19
security:
18
20
authorization: 'disabled'
19
21
20
22
storage:
21
23
dbPath: {{ mongodb_storage_dbpath }}
22
- {% if mongodb_major_version | float >= 3.0 -%}
24
+ {% if mongodb_major_version | version_compare ( " 3.0" , ">=" ) -%}
23
25
engine: {{ mongodb_storage_engine }}
24
26
{% endif -%}
25
27
journal:
@@ -30,13 +32,6 @@ storage:
30
32
enforced: {{ mongodb_storage_quota_enforced | to_nice_json }}
31
33
maxFilesPerDB: {{ mongodb_storage_quota_maxfiles }}
32
34
smallFiles: {{ mongodb_storage_smallfiles | to_nice_json }}
33
- {% endif -%}
34
- {% if mongodb_major_version == '2.6' -%}
35
- quota:
36
- enforced: {{ mongodb_storage_quota_enforced | to_nice_json }}
37
- maxFilesPerDB: {{ mongodb_storage_quota_maxfiles }}
38
- preallocDataFiles: {{ mongodb_storage_prealloc | to_nice_json }}
39
- smallFiles: {{ mongodb_storage_smallfiles | to_nice_json }}
40
35
{% endif %}
41
36
42
37
systemLog:
You can’t perform that action at this time.
0 commit comments