2019-09-07 10:55:12 +00:00
|
|
|
import logging
|
|
|
|
|
|
|
|
from etcd3_wrapper import Etcd3Wrapper
|
|
|
|
from decouple import config
|
|
|
|
|
|
|
|
BASE_PATH = config("BASE_DIR", "/var/www")
|
|
|
|
WITHOUT_CEPH = config("WITHOUT_CEPH", False, cast=bool)
|
|
|
|
ETCD_URL = config("ETCD_URL")
|
2019-09-13 11:43:07 +00:00
|
|
|
IMAGE_PREFIX = config("IMAGE_PREFIX")
|
2019-09-07 10:55:12 +00:00
|
|
|
|
|
|
|
logging.basicConfig(
|
|
|
|
level=logging.DEBUG,
|
|
|
|
filename="log.txt",
|
|
|
|
filemode="a",
|
|
|
|
format="%(asctime)s: %(levelname)s - %(message)s",
|
|
|
|
datefmt="%d-%b-%y %H:%M:%S",
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
client = Etcd3Wrapper(host=ETCD_URL)
|