Skip to content
Draft
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
27 changes: 27 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ The following parameters are available in the `mongodb::opsmanager` class:
* [`snapshot_weekly_retention`](#-mongodb--opsmanager--snapshot_weekly_retention)
* [`snapshot_monthly_retention`](#-mongodb--opsmanager--snapshot_monthly_retention)
* [`versions_directory`](#-mongodb--opsmanager--versions_directory)
* [`versions_source`](#-mongodb--opsmanager--versions_source)
* [`release_autodownload`](#-mongodb--opsmanager--release_autodownload)
* [`release_autodownload_enterprise`](#-mongodb--opsmanager--release_autodownload_enterprise)
* [`user`](#-mongodb--opsmanager--user)
* [`group`](#-mongodb--opsmanager--group)
* [`ensure`](#-mongodb--opsmanager--ensure)
Expand Down Expand Up @@ -571,6 +574,30 @@ The directory where to store the snapshot versions

Default value: `undef`

##### <a name="-mongodb--opsmanager--versions_source"></a>`versions_source`

Data type: `Enum['remote', 'hybrid', 'local']`

Indicates the source of MongoDB installer binaries.

Default value: `'remote'`

##### <a name="-mongodb--opsmanager--release_autodownload"></a>`release_autodownload`

Data type: `Boolean`

Flag indicating whether the Backup Daemons automatically install the versions of MongoDB that the Backup Daemons need.

Default value: `true`

##### <a name="-mongodb--opsmanager--release_autodownload_enterprise"></a>`release_autodownload_enterprise`

Data type: `Boolean`

Flag indicating whether the Backup Daemons automatically install the Enterprise editions of the versions of MongoDB that the Backup Daemons need.

Default value: `true`

##### <a name="-mongodb--opsmanager--user"></a>`user`

Data type: `String[1]`
Expand Down
12 changes: 12 additions & 0 deletions manifests/opsmanager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@
# @param versions_directory
# The directory where to store the snapshot versions
#
# @param versions_source
# Indicates the source of MongoDB installer binaries.
#
# @param release_autodownload
# Flag indicating whether the Backup Daemons automatically install the versions of MongoDB that the Backup Daemons need.
#
# @param release_autodownload_enterprise
# Flag indicating whether the Backup Daemons automatically install the Enterprise editions of the versions of MongoDB that the Backup Daemons need.
#
class mongodb::opsmanager (
String[1] $user = 'mongodb-mms',
String[1] $group = 'mongodb-mms',
Expand All @@ -130,6 +139,9 @@
Stdlib::Port $smtp_server_port = 25,
Boolean $ssl = false,
Boolean $ignore_ui_setup = true,
Enum['remote', 'hybrid', 'local'] $versions_source = 'remote',
Boolean $release_autodownload = true,
Boolean $release_autodownload_enterprise = true,
#optional settings
Optional[String[1]] $ca_file = undef,
Optional[String[1]] $pem_key_file = undef,
Expand Down
4 changes: 4 additions & 0 deletions templates/opsmanager/conf-mms.properties.epp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ mms.mail.transport=<%=$mongodb::opsmanager::mail_transport %>
mms.mail.hostname=<%=$mongodb::opsmanager::smtp_server_hostname %>
mms.mail.port=<%=$mongodb::opsmanager::smtp_server_port %>

automation.versions.source=<%=$mongodb::opsmanager::versions_source -%>
mongodb.release.autoDownload=<%=$mongodb::opsmanager::release_autodownload -%>
mongodb.release.autoDownload.enterprise=<%=$mongodb::opsmanager::release_autodownload_enterprise -%>

<% if $mongodb::opsmanager::user_svc_class { -%>
mms.userSvcClass=<%=$mongodb::opsmanager::user_svc_class -%>
<% } -%>
Expand Down
Loading