import os
from os.path import dirname, join
from socket import gethostname

from os.path import realpath

top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__),
                                       os.pardir))
PROJECT_DIR = join(dirname(dirname(realpath(__file__))))
# todo: get the IP from the ENV or a flag
HARDCODED_INTERNAL_IP = 'fc63:2207:6b22:91e5:5b0b:ef32:4786:c262'
JOBBOARD_CONF = {
    'board': 'redis',
    'host': HARDCODED_INTERNAL_IP
}
PERSISTENCE_CONF = {
    "connection": "mysql://taskflow:taskflow@[{}]"
                  "/taskflow".format(HARDCODED_INTERNAL_IP),
}
LOGBOOK_NAME = 'jobrunner'
SHOW_POLLERS = 20
JOBS = dict()
CAPABILITIES = dict()

CONDUCTOR_NAME = gethostname()

@@ -319,72 +319,78 @@
 lag%0A
-HARDCODED_INTERNAL_IP = 'fc63:2207:6b22:91e5:5b0b:ef32:4786:c262
+REDIS_HOST = 'redis.service.consul'%0AMYSQL_HOST = 'mysql.service.consul
 '%0AJO
@@ -439,37 +439,26 @@
 'host': 
-HARDCODED_INTERNAL_IP
+REDIS_HOST
 %0A%7D%0APERSI
@@ -565,29 +565,18 @@
 mat(
-HARDCODED_INTERNAL_IP
+MYSQL_HOST
 ),%0A%7D

use consul dns hosts