From 382bc468080dfb271d8d27b3a16162c456311fcd Mon Sep 17 00:00:00 2001 From: "Drshen, Ahmad" Date: Wed, 17 Feb 2021 10:46:49 -0500 Subject: [PATCH] added slack client id secret for slack integration --- manifests/opsmanager.pp | 2 ++ templates/opsmanager/conf-mms.properties.epp | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/manifests/opsmanager.pp b/manifests/opsmanager.pp index 7844b5409..95171425a 100644 --- a/manifests/opsmanager.pp +++ b/manifests/opsmanager.pp @@ -54,6 +54,8 @@ Optional[Integer] $snapshot_weekly_retention = undef, # Default: 2 Optional[Integer] $snapshot_monthly_retention = undef, # Default: 1 Optional[Integer] $versions_directory = undef, # Linux default: /opt/mongodb/mms/mongodb-releases/ + Optional[String[1]] $slack_oauth2_clientId = undef, + Optional[String[1]] $slack_oauth2_clientSecret = undef, ) { case $package_ensure { 'absent': { diff --git a/templates/opsmanager/conf-mms.properties.epp b/templates/opsmanager/conf-mms.properties.epp index 9ea2aca61..7646baf4b 100644 --- a/templates/opsmanager/conf-mms.properties.epp +++ b/templates/opsmanager/conf-mms.properties.epp @@ -126,3 +126,11 @@ brs.snapshotSchedule.retention.monthly=<%=$mongodb::opsmanager::snapshot_monthly <% if $mongodb::opsmanager::versions_directory { -%> automation.versions.directory=<%=$mongodb::opsmanager::versions_directory -%> <% } -%> + +<% if $mongodb::opsmanager::slack_oauth2_clientId { -%> +brs.slack.oauth2.clientId=<%=$mongodb::opsmanager::slack_oauth2_clientId -%> +<% } -%> + +<% if $mongodb::opsmanager::slack_oauth2_clientSecret { -%> +brs.slack_oauth2.clientSecret=<%=$mongodb::opsmanager::slack_oauth2_clientSecret -%> +<% } -%>