예제 #1
0
 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)
예제 #2
0
 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
예제 #3
0
 def __init__(self):
     service = initdv2.lookup(SERVICE_NAME)
     config_mapping = {PRESET_FNAME: MySQLConf(MYCNF_PATH)}
     PresetProvider.__init__(self, service, config_mapping)
예제 #4
0
    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)
예제 #5
0
파일: mysql.py 프로젝트: chenleji/scalarizr
 def __init__(self):
     service = initdv2.lookup(SERVICE_NAME)
     config_mapping = {PRESET_FNAME:MySQLConf(MYCNF_PATH)}
     PresetProvider.__init__(self, service, config_mapping)
예제 #6
0
 def __init__(self):
     service = initdv2.lookup(SERVICE_NAME)
     config_mapping = {'memcached.conf':MemcachedConf(mcd_conf_path)}
     PresetProvider.__init__(self, service, config_mapping)
예제 #7
0
    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)
예제 #8
0
 def __init__(self, config_object):
     service = initdv2.lookup(SERVICE_NAME)
     config_mapping = {'postgresql.conf': config_object}
     PresetProvider.__init__(self, service, config_mapping)
예제 #9
0
 def __init__(self):
     api = apache.ApacheAPI()
     config_mapping = {"apache.conf": ApacheConf(apache)}
     PresetProvider.__init__(self, api.service, config_mapping)
예제 #10
0
 def __init__(self, config_object):
     service = initdv2.lookup(SERVICE_NAME)
     config_mapping = {'postgresql.conf':config_object}
     PresetProvider.__init__(self, service, config_mapping)
예제 #11
0
파일: nginx.py 프로젝트: chenleji/scalarizr
    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)