Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack Integration Config #607

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
added slack client id secret for slack integration
  • Loading branch information
Drshen, Ahmad committed Feb 17, 2021
commit 382bc468080dfb271d8d27b3a16162c456311fcd
2 changes: 2 additions & 0 deletions manifests/opsmanager.pp
Original file line number Diff line number Diff line change
@@ -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': {
8 changes: 8 additions & 0 deletions templates/opsmanager/conf-mms.properties.epp
Original file line number Diff line number Diff line change
@@ -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 -%>
<% } -%>