add code to extract all resolving domains from the containers

This commit is contained in:
2016-04-07 08:03:13 +02:00
parent a57fa08340
commit 27ba704ee6
4 changed files with 81 additions and 5 deletions

View File

@@ -12,6 +12,9 @@ pid_file='/haproxy.pid'
def hash_cert_file():
"""Creates the sha256 hash of the certifcate file for haproxy. If the file
does not exist, an empty string is returned.
"""
if not os.path.isfile(cert_file):
return ''
aFile = open(cert_file, 'rb')
@@ -109,5 +112,3 @@ if __name__ == '__main__':
start_haproxy()
logging.info('SSL -> NON SSL')
SSL_RUNNING=False
# logging.info('haproxy is running: %s', str(is_haproxy_running()))
# logging.info('haproxy is running with SSL: %s', str(SSL_RUNNING))