From b2c7d28f410c2a59a1d47bb99f4c667968113e58 Mon Sep 17 00:00:00 2001 From: Chris Tooley Date: Wed, 23 Mar 2016 13:23:30 +0000 Subject: [PATCH] Modify consul certificate validation bypass keyword from 'verify' to 'validate_certs' --- lib/ansible/modules/extras/clustering/consul.py | 6 +++--- lib/ansible/modules/extras/clustering/consul_acl.py | 6 +++--- lib/ansible/modules/extras/clustering/consul_kv.py | 6 +++--- lib/ansible/modules/extras/clustering/consul_session.py | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/ansible/modules/extras/clustering/consul.py b/lib/ansible/modules/extras/clustering/consul.py index e24279586e..f0df2368b5 100644 --- a/lib/ansible/modules/extras/clustering/consul.py +++ b/lib/ansible/modules/extras/clustering/consul.py @@ -77,7 +77,7 @@ options: required: false default: http version_added: "2.1" - verify: + validate_certs: description: - whether to verify the tls certificate of the consul agent required: false @@ -321,7 +321,7 @@ 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'), + validate_certs=module.params.get('validate_certs'), token=module.params.get('token')) @@ -518,7 +518,7 @@ def main(): host=dict(default='localhost'), port=dict(default=8500, type='int'), scheme=dict(required=False, default='http'), - verify=dict(required=False, default=True, type='bool'), + validate_certs=dict(required=False, default=True, type='bool'), check_id=dict(required=False), check_name=dict(required=False), check_node=dict(required=False), diff --git a/lib/ansible/modules/extras/clustering/consul_acl.py b/lib/ansible/modules/extras/clustering/consul_acl.py index e07db83232..b1c7763a55 100644 --- a/lib/ansible/modules/extras/clustering/consul_acl.py +++ b/lib/ansible/modules/extras/clustering/consul_acl.py @@ -75,7 +75,7 @@ options: required: false default: http version_added: "2.1" - verify: + validate_certs: description: - whether to verify the tls certificate of the consul agent required: false @@ -313,7 +313,7 @@ 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'), + validate_certs=module.params.get('validate_certs'), token=token) def test_dependencies(module): @@ -330,7 +330,7 @@ def main(): mgmt_token=dict(required=True, no_log=True), host=dict(default='localhost'), scheme=dict(required=False, default='http'), - verify=dict(required=False, default=True), + validate_certs=dict(required=False, default=True), name=dict(required=False), port=dict(default=8500, type='int'), rules=dict(default=None, required=False, type='list'), diff --git a/lib/ansible/modules/extras/clustering/consul_kv.py b/lib/ansible/modules/extras/clustering/consul_kv.py index 45c93d672a..9358b79749 100644 --- a/lib/ansible/modules/extras/clustering/consul_kv.py +++ b/lib/ansible/modules/extras/clustering/consul_kv.py @@ -105,7 +105,7 @@ options: required: false default: http version_added: "2.1" - verify: + validate_certs: description: - whether to verify the tls certificate of the consul agent required: false @@ -231,7 +231,7 @@ 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'), + validate_certs=module.params.get('validate_certs'), token=module.params.get('token')) def test_dependencies(module): @@ -247,7 +247,7 @@ def main(): key=dict(required=True), host=dict(default='localhost'), scheme=dict(required=False, default='http'), - verify=dict(required=False, default=True), + validate_certs=dict(required=False, default=True), port=dict(default=8500, type='int'), recurse=dict(required=False, type='bool'), retrieve=dict(required=False, default=True), diff --git a/lib/ansible/modules/extras/clustering/consul_session.py b/lib/ansible/modules/extras/clustering/consul_session.py index 0cf4d9a843..f0ebd11b3b 100644 --- a/lib/ansible/modules/extras/clustering/consul_session.py +++ b/lib/ansible/modules/extras/clustering/consul_session.py @@ -94,7 +94,7 @@ options: required: false default: http version_added: "2.1" - verify: + validate_certs: description: - whether to verify the tls certificate of the consul agent required: false @@ -252,7 +252,7 @@ def main(): host=dict(default='localhost'), port=dict(default=8500, type='int'), scheme=dict(required=False, default='http'), - verify=dict(required=False, default=True), + validate_certs=dict(required=False, default=True), id=dict(required=False), name=dict(required=False), node=dict(required=False),