diff options
author | Chris Tooley <ctooley@rgare.com> | 2016-03-05 00:37:41 +0000 |
---|---|---|
committer | Chris Tooley <ctooley@rgare.com> | 2016-03-05 00:37:41 +0000 |
commit | b5390824c25912f8909345710ef6aa5ce7b7081f (patch) | |
tree | cd4b489d56389f681d911e2ce43f8a18a97294d7 /clustering/consul.py | |
parent | 9835b6a47733ca69e7230cce73188bde62c3868f (diff) | |
download | ansible-modules-extras-b5390824c25912f8909345710ef6aa5ce7b7081f.tar.gz |
Add https support for consul clustering modules
Diffstat (limited to 'clustering/consul.py')
-rw-r--r-- | clustering/consul.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clustering/consul.py b/clustering/consul.py index 627f7fb6..8929a0e7 100644 --- a/clustering/consul.py +++ b/clustering/consul.py @@ -71,6 +71,16 @@ options: - the port on which the consul agent is running required: false default: 8500 + scheme: + description: + - the protocol scheme on which the consul agent is running + required: false + default: http + verify: + description: + - whether to verify the tls certificate of the consul agent + required: false + default: True notes: description: - Notes to attach to check when registering it. @@ -308,6 +318,8 @@ def remove_service(module, service_id): def get_consul_api(module, token=None): return consul.Consul(host=module.params.get('host'), port=module.params.get('port'), + scheme=module.params.get('scheme'), + verify=module.params.get('verify'), token=module.params.get('token')) @@ -503,6 +515,8 @@ def main(): argument_spec=dict( host=dict(default='localhost'), port=dict(default=8500, type='int'), + scheme=dict(required=False, default='http'), + verify=dict(required=False, default=True, type='bool'), check_id=dict(required=False), check_name=dict(required=False), check_node=dict(required=False), |