forked from ncorrare/reportslack
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sebastien Varrette <[email protected]>
- Loading branch information
Sebastien Varrette
authored and
Sebastien Varrette
committed
May 27, 2017
1 parent
4165ce1
commit 473a68d
Showing
4 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -*- mode: puppet; -*- | ||
# Time-stamp: <Sat 2017-05-27 16:54 svarrette> | ||
# Time-stamp: <Sat 2017-05-27 18:27 svarrette> | ||
# ------------------------------------------------------------------------------ | ||
# Class reportslack | ||
# | ||
|
@@ -14,8 +14,12 @@ | |
# @param puppetconsole [String] | ||
# @param username [String] Default: 'Puppet' | ||
# Username that this integration will post as. | ||
# @param icon_url [String] Default: wikipedia logo | ||
# @param icon_url [String] | ||
# Icon that is used for messages from this integration. | ||
# @param icon_emoji [String] Default | ||
# EMoji that is used for messages from this integration. | ||
# @param puppetboard [String] | ||
# base hostname of the puppetboard, typically "<fqdn>:<port>" | ||
# | ||
# @author Nicolas Corrarello <[email protected]>, | ||
# Sebastien Varrette aka Falkor <[email protected]> | ||
|
@@ -35,7 +39,8 @@ | |
String $puppetconsole = $settings::ca_server, | ||
String $username = $reportslack::params::username, | ||
String $icon_url = $reportslack::params::icon_url, | ||
String $icon_emoji = $reportslack::params::icon_emoji | ||
String $icon_emoji = $reportslack::params::icon_emoji, | ||
String $puppetboard = $reportslack::params::puppetboard | ||
) | ||
inherits reportslack::params | ||
{ | ||
|
@@ -51,14 +56,6 @@ | |
name => $reportslack::params::gemname, | ||
provider => 'puppetserver_gem' | ||
} | ||
$reportslack::params::extra_gems.each |String $gem| { | ||
if (!defined(Package[$gem])) { | ||
package { $gem: | ||
ensure => 'present', | ||
provider => 'puppetserver_gem' | ||
} | ||
} | ||
} | ||
|
||
ini_setting { 'enable_reports': | ||
ensure => present, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters