forked from electrical/puppet-beaver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
15 additions
and
10 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 |
---|---|---|
|
@@ -107,15 +107,16 @@ | |
# * Richard Pijnenburg <mailto:[email protected]> | ||
# | ||
class beaver( | ||
$ensure = $beaver::params::ensure, | ||
$autoupgrade = $beaver::params::autoupgrade, | ||
$status = $beaver::params::status, | ||
$version = false, | ||
$format = 'json', | ||
$respawn_delay = 3, | ||
$max_failure = 7, | ||
$hostname = $::fqdn, | ||
$transport = 'redis' | ||
$ensure = $beaver::params::ensure, | ||
$autoupgrade = $beaver::params::autoupgrade, | ||
$status = $beaver::params::status, | ||
$version = false, | ||
$format = 'json', | ||
$respawn_delay = 3, | ||
$max_failure = 7, | ||
$hostname = $::fqdn, | ||
$transport = 'redis', | ||
$logstash_version = '0' | ||
) inherits beaver::params { | ||
|
||
#### Validate parameters | ||
|
@@ -137,6 +138,10 @@ | |
fail("\"${format}\" is not a valid format parameter value") | ||
} | ||
|
||
if ! ($logstash_version in [ '0', '1' ]) { | ||
fail("\"${logstash_version}\" is not a valid logstash_version parameter value") | ||
} | ||
|
||
if ! is_numeric($respawn_delay) { | ||
fail("\"${respawn_delay}\" is not a valid respawn_delay parameter value") | ||
} | ||
|