def __init__(self): self.postgresql = PostgreSql() conf_path = os.path.join(self.postgresql.unified_etc_path, 'postgresql.conf') config_object = PostgresqlConf(conf_path) service = initdv2.lookup(SERVICE_NAME) config_mapping = {'postgresql.conf': config_object} PresetProvider.__init__(self, service, config_mapping) LOG.debug("Presets got config: %s" % conf_path)
def providers(self): providers = [] LOG.debug('Getting list of redis preset providers') for port in get_busy_ports(): service = Redisd(get_redis_conf_path(port), int(port)) config_mapping = {__redis__['preset_filename']: service.redis_conf} providers.append(PresetProvider(service, config_mapping)) return providers
def __init__(self): service = initdv2.lookup(SERVICE_NAME) config_mapping = {PRESET_FNAME: MySQLConf(MYCNF_PATH)} PresetProvider.__init__(self, service, config_mapping)
def __init__(self): nginx_conf_path = os.path.join(os.path.dirname(__nginx__['app_include_path']), 'nginx.conf') config_mapping = {'nginx.conf':NginxConf(nginx_conf_path)} service = initdv2.lookup('nginx') PresetProvider.__init__(self, service, config_mapping)
def __init__(self): service = initdv2.lookup(SERVICE_NAME) config_mapping = {PRESET_FNAME:MySQLConf(MYCNF_PATH)} PresetProvider.__init__(self, service, config_mapping)
def __init__(self): service = initdv2.lookup(SERVICE_NAME) config_mapping = {'memcached.conf':MemcachedConf(mcd_conf_path)} PresetProvider.__init__(self, service, config_mapping)
def __init__(self): nginx_conf_path = __nginx__['nginx.conf'] config_mapping = {'nginx.conf': NginxConf(nginx_conf_path)} service = initdv2.lookup('nginx') PresetProvider.__init__(self, service, config_mapping)
def __init__(self, config_object): service = initdv2.lookup(SERVICE_NAME) config_mapping = {'postgresql.conf': config_object} PresetProvider.__init__(self, service, config_mapping)
def __init__(self): api = apache.ApacheAPI() config_mapping = {"apache.conf": ApacheConf(apache)} PresetProvider.__init__(self, api.service, config_mapping)
def __init__(self, config_object): service = initdv2.lookup(SERVICE_NAME) config_mapping = {'postgresql.conf':config_object} PresetProvider.__init__(self, service, config_mapping)
def __init__(self): nginx_conf_path = __nginx__['nginx.conf'] config_mapping = {'nginx.conf':NginxConf(nginx_conf_path)} service = initdv2.lookup('nginx') PresetProvider.__init__(self, service, config_mapping)