From 9342c16e788274ad7dc68e50365fb8d1ea611395 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Thu, 17 Sep 2015 12:01:48 +0200 Subject: [PATCH 1/2] Add github ID to author field in sensu_check As proposed by @gregdek in #983 --- monitoring/sensu_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoring/sensu_check.py b/monitoring/sensu_check.py index c73fafdcd62..72b0b8d8c6a 100644 --- a/monitoring/sensu_check.py +++ b/monitoring/sensu_check.py @@ -148,7 +148,7 @@ options: required: false default: null requirements: [ ] -author: Anders Ingemann +author: "Anders Ingemann (@andsens)" ''' EXAMPLES = ''' From e0f513a9033c3f7b513e79768f6724c9dad7e2b5 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Thu, 17 Sep 2015 12:12:54 +0200 Subject: [PATCH 2/2] Fix state & metric description Also: add state=absent to last example --- monitoring/sensu_check.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/monitoring/sensu_check.py b/monitoring/sensu_check.py index 72b0b8d8c6a..9a004d372e0 100644 --- a/monitoring/sensu_check.py +++ b/monitoring/sensu_check.py @@ -36,7 +36,8 @@ options: - This is the key that is used to determine whether a check exists required: true state: - description: Whether the check should be present or not + description: + - Whether the check should be present or not choices: [ 'present', 'absent' ] required: false default: present @@ -102,7 +103,8 @@ options: required: false default: [] metric: - description: Whether the check is a metric + description: + - Whether the check is a metric choices: [ 'yes', 'no' ] required: false default: no @@ -169,7 +171,7 @@ EXAMPLES = ''' # Note that the check will still show up in the sensu dashboard, # to remove it completely you need to issue a DELETE request to the sensu api. - name: check disk - sensu_check: name=check_disk_capacity + sensu_check: name=check_disk_capacity state=absent '''