Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions source/includes/options-mongod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2888,6 +2888,22 @@ inherit:
file: options-shared.yaml
---
program: mongod
name: outputConfig
args: null
directive: option
description: |

.. versionadded:: 4.2

Outputs the resolved YAML configuration document for the {{program}} to ``stdout``
and halts the server instance. For configuration options using externally
sourced values, {{role}} returns the resolved value for those options. This
may include any configured passwords or secrets previously obfuscated through
the external source.

optional: true
---
program: mongod
name: enableFreeMonitoring
args: <runtime|on|off>
directive: option
Expand Down
7 changes: 7 additions & 0 deletions source/includes/options-mongos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,13 @@ inherit:
file: options-mongod.yaml
---
program: mongos
name: outputConfig
inherit:
name: outputConfig
program: mongod
file: options-mongod.yaml
---
program: mongos
name: configdb
args: "<replicasetName>/<config1>,<config2>..."
directive: option
Expand Down
2 changes: 2 additions & 0 deletions source/reference/program/mongod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ Core Options

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

.. include:: /includes/option/option-mongod-outputConfig.rst

Free Monitoring
~~~~~~~~~~~~~~~

Expand Down
2 changes: 2 additions & 0 deletions source/reference/program/mongos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ Core Options

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

.. include:: /includes/option/option-mongos-outputConfig.rst

Sharded Cluster Options
~~~~~~~~~~~~~~~~~~~~~~~

Expand Down