mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-15 17:40:50 -07:00
parent
2f33c1a1a1
commit
5553b20828
206 changed files with 1853 additions and 1870 deletions
|
@ -74,12 +74,13 @@ ANSIBLE_ETCD_VERSION = 'v1'
|
|||
if os.getenv('ANSIBLE_ETCD_VERSION') is not None:
|
||||
ANSIBLE_ETCD_VERSION = os.environ['ANSIBLE_ETCD_VERSION']
|
||||
|
||||
|
||||
class Etcd:
|
||||
def __init__(self, url=ANSIBLE_ETCD_URL, version=ANSIBLE_ETCD_VERSION,
|
||||
validate_certs=True):
|
||||
self.url = url
|
||||
self.version = version
|
||||
self.baseurl = '%s/%s/keys' % (self.url,self.version)
|
||||
self.baseurl = '%s/%s/keys' % (self.url, self.version)
|
||||
self.validate_certs = validate_certs
|
||||
|
||||
def get(self, key):
|
||||
|
@ -111,6 +112,7 @@ class Etcd:
|
|||
|
||||
return value
|
||||
|
||||
|
||||
class LookupModule(LookupBase):
|
||||
|
||||
def run(self, terms, variables, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue