|
|
@ -99,6 +99,18 @@ options:
|
|
|
|
- the port on which the consul agent is running
|
|
|
|
- the port on which the consul agent is running
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: 8500
|
|
|
|
default: 8500
|
|
|
|
|
|
|
|
scheme:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- the protocol scheme on which the consul agent is running
|
|
|
|
|
|
|
|
required: false
|
|
|
|
|
|
|
|
default: http
|
|
|
|
|
|
|
|
version_added: "2.1"
|
|
|
|
|
|
|
|
validate_certs:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- whether to verify the tls certificate of the consul agent
|
|
|
|
|
|
|
|
required: false
|
|
|
|
|
|
|
|
default: True
|
|
|
|
|
|
|
|
version_added: "2.1"
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -218,6 +230,8 @@ def remove_value(module):
|
|
|
|
def get_consul_api(module, token=None):
|
|
|
|
def get_consul_api(module, token=None):
|
|
|
|
return consul.Consul(host=module.params.get('host'),
|
|
|
|
return consul.Consul(host=module.params.get('host'),
|
|
|
|
port=module.params.get('port'),
|
|
|
|
port=module.params.get('port'),
|
|
|
|
|
|
|
|
scheme=module.params.get('scheme'),
|
|
|
|
|
|
|
|
validate_certs=module.params.get('validate_certs'),
|
|
|
|
token=module.params.get('token'))
|
|
|
|
token=module.params.get('token'))
|
|
|
|
|
|
|
|
|
|
|
|
def test_dependencies(module):
|
|
|
|
def test_dependencies(module):
|
|
|
@ -232,6 +246,8 @@ def main():
|
|
|
|
flags=dict(required=False),
|
|
|
|
flags=dict(required=False),
|
|
|
|
key=dict(required=True),
|
|
|
|
key=dict(required=True),
|
|
|
|
host=dict(default='localhost'),
|
|
|
|
host=dict(default='localhost'),
|
|
|
|
|
|
|
|
scheme=dict(required=False, default='http'),
|
|
|
|
|
|
|
|
validate_certs=dict(required=False, default=True),
|
|
|
|
port=dict(default=8500, type='int'),
|
|
|
|
port=dict(default=8500, type='int'),
|
|
|
|
recurse=dict(required=False, type='bool'),
|
|
|
|
recurse=dict(required=False, type='bool'),
|
|
|
|
retrieve=dict(required=False, default=True),
|
|
|
|
retrieve=dict(required=False, default=True),
|
|
|
|