Skip to content

Commit

Permalink
Merge pull request #257 from asgolding/master
Browse files Browse the repository at this point in the history
adding ability to define the inital status of consul checks
  • Loading branch information
solarkennedy committed May 28, 2016
2 parents 18743db + db6627f commit 60166ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/check.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
# [*token*]
# ACL token for interacting with the catalog (must be 'management' type)
#
# [*status*]
# The default state of the check when it is registered against a consul
# agent. Should be either "critical" or "passing"
#
define consul::check(
$ensure = present,
$id = $title,
Expand All @@ -54,6 +58,7 @@
$timeout = undef,
$notes = undef,
$token = undef,
$status = undef,
) {
include consul

Expand All @@ -69,6 +74,7 @@
'service_id' => $service_id,
'notes' => $notes,
'token' => $token,
'status' => $status,
}

$check_hash = {
Expand Down

0 comments on commit 60166ba

Please sign in to comment.