Skip to content

Commit 5d46e1c

Browse files
Isabella SiuIsabella Siu
authored andcommitted
DOCS-11983 add outputConfig option for mongod and mongos
1 parent b71d091 commit 5d46e1c

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

source/includes/options-mongod.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2893,6 +2893,22 @@ inherit:
28932893
file: options-shared.yaml
28942894
---
28952895
program: mongod
2896+
name: outputConfig
2897+
args: null
2898+
directive: option
2899+
description: |
2900+
2901+
.. versionadded:: 4.2
2902+
2903+
Outputs the resolved YAML configuration document for the {{program}} to ``stdout``
2904+
and halts the server instance. For configuration options using externally
2905+
sourced values, {{role}} returns the resolved value for those options. This
2906+
may include any configured passwords or secrets previously obfuscated through
2907+
the external source.
2908+
2909+
optional: true
2910+
---
2911+
program: mongod
28962912
name: enableFreeMonitoring
28972913
args: <runtime|on|off>
28982914
directive: option

source/includes/options-mongos.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,13 @@ inherit:
185185
file: options-mongod.yaml
186186
---
187187
program: mongos
188+
name: outputConfig
189+
inherit:
190+
name: outputConfig
191+
program: mongod
192+
file: options-mongod.yaml
193+
---
194+
program: mongos
188195
name: configdb
189196
args: "<replicasetName>/<config1>,<config2>..."
190197
directive: option

source/reference/program/mongod.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ Core Options
132132

133133
.. include:: /includes/option/option-mongod-serviceExecutor.rst
134134

135+
.. include:: /includes/option/option-mongod-outputConfig.rst
136+
135137
Free Monitoring
136138
~~~~~~~~~~~~~~~
137139

source/reference/program/mongos.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ Core Options
102102

103103
.. include:: /includes/option/option-mongos-timeZoneInfo.rst
104104

105+
.. include:: /includes/option/option-mongos-outputConfig.rst
106+
105107
Sharded Cluster Options
106108
~~~~~~~~~~~~~~~~~~~~~~~
107109

0 commit comments

Comments
 (0)