# -*- coding: utf-8 -*- import os # user and group for atomic file (linux) writes (moves); can be set to "nobody" or any other linux file user name FILE_USER = None FILE_GROUP = None def get_file_user(): """Indirection for testing and settings""" return FILE_USER def get_file_group(): """Indirection for testing and settings""" return FILE_GROUP ZK_HOSTS = os.getenv("ZK_HOSTS", '127.0.0.1:2181') GD_ZKRUN_VIRTUALENV_PATH = os.getenv("GD_ZKRUN_VIRTUALENV_PATH") GD_ZKRUN_COMMAND = os.getenv("GD_ZKRUN_COMMAND") GD_ZKRUN_NAME = os.getenv("GD_ZKRUN_NAME") GD_ZKRUN_HOSTS = os.getenv("GD_ZKRUN_HOSTS", ZK_HOSTS) GD_ZKRUN_SERVICE_TYPE = os.getenv("GD_ZKRUN_SERVICE_TYPE") GD_ZKRUN_PORT = os.getenv("GD_ZKRUN_PORT") GD_ZKRUN_SSL_PORT = os.getenv("GD_ZKRUN_SSL_PORT") GD_ZKRUN_LOCATIONS = os.getenv("GD_ZKRUN_LOCATIONS") # NB: these are HFS-y, but I'm leaving them in since they are overridable. For now. -EA SSL_PRIVATE_KEY = os.getenv("SSL_PRIVATE_KEY", '/opt/hfs/ssl/server.key') SSL_CERTIFICATE = os.getenv("SSL_CERTIFICATE", '/opt/hfs/ssl/server.crt') SSL_CA_LIST = os.getenv("SSL_CA_LIST", '/opt/hfs/ssl/client-trust-chain.crt') try: from local_settings import * # pylint: disable=W0401 except ImportError: pass