Deploy ingress, lego and dashboard

This commit is contained in:
Paul-Henri Froidmont 2018-09-26 04:40:24 +02:00
parent bf83e675f2
commit f468fd3e34
43 changed files with 1321 additions and 142 deletions

View file

@ -21,7 +21,7 @@ class SCWInventory(object):
"""
response: Dict[str, Any]
def __init__(self):
self.inventory = None
self.auth_token = None
@ -78,7 +78,8 @@ class SCWInventory(object):
for host, variables in self.response['_meta']['hostvars'].items():
if host != 'proxy1':
variables['ansible_ssh_common_args'] = '-o ProxyCommand="ssh -W %h:%p -q root@' + \
self.response['_meta']['hostvars']['proxy1']['public_ip'] + '"'
self.response['_meta']['hostvars']['proxy1'][
'public_ip'] + ' -o StrictHostKeyChecking=no"'
def _add_to_response(self, group, hostname):
"""