示例#1
0
 def __init__(self):
     nginx_conf_path = __nginx__['nginx.conf']
     CnfController.__init__(self, BEHAVIOUR, nginx_conf_path, 'nginx', {
         "on": '1',
         "'off'": '0',
         'off': '0'
     })
示例#2
0
	def __init__(self):
		self._init_script = initdv2.lookup(__mysql__['behavior'])
		definitions = {'ON':'1', 'TRUE':'1','OFF':'0','FALSE':'0'}
		CnfController.__init__(self, 
				__mysql__['behavior'], 
				mysql_svc.MYCNF_PATH, 
				'mysql', 
				definitions) #TRUE,FALSE
示例#3
0
 def __init__(self):
     self._init_script = initdv2.lookup(__mysql__['behavior'])
     self.sendline = ''
     definitions = {'ON': '1', 'TRUE': '1', 'OFF' :'0', 'FALSE': '0'}
     CnfController.__init__(self,
                     __mysql__['behavior'],
                     mysql_svc.MYCNF_PATH,
                     'mysql',
                     definitions) #TRUE,FALSE
示例#4
0
 def get_system_variables(self):
     vars_ = CnfController.get_system_variables(self)
     LOG.debug('Variables from config: %s' % str(vars_))
     if self._init_script.running:
         cli_vars = self.root_client.show_global_variables()
         vars_.update(cli_vars)
     return vars_
示例#5
0
	def __init__(self):
		cnf_path = redis.get_redis_conf_path()
		CnfController.__init__(self, BEHAVIOUR, cnf_path, 'redis', {'1':'yes', '0':'no'})
示例#6
0
 def __init__(self):
     nginx_conf_path = os.path.join(os.path.dirname(__nginx__['app_include_path']), 'nginx.conf')
     CnfController.__init__(self, BEHAVIOUR, nginx_conf_path, 'nginx', {"on":'1',"'off'":'0','off':'0'})
示例#7
0
	def __init__(self):
		cnf = bus.cnf; ini = cnf.rawini
		CnfController.__init__(self, BEHAVIOUR, ini.get(CNF_SECTION, OPT_STORAGE_CNF_PATH), 'xml')
示例#8
0
 def __init__(self):
     cnf_path = redis.get_redis_conf_path()
     CnfController.__init__(self, BEHAVIOUR, cnf_path, 'redis', {'1':'yes', '0':'no'})
示例#9
0
 def __init__(self):
     self._logger = logging.getLogger(__name__)
     CnfController.__init__(self, BEHAVIOUR, mcd_conf_path, 'memcached')
示例#10
0
    def apply_preset(self, preset):

        CnfController.apply_preset(self, preset)
示例#11
0
 def __init__(self):
     nginx_conf_path = __nginx__['nginx.conf']
     CnfController.__init__(self, BEHAVIOUR, nginx_conf_path, 'nginx', {"on":'1',"'off'":'0','off':'0'})
示例#12
0
 def __init__(self):
     self._logger = logging.getLogger(__name__)
     CnfController.__init__(self, BEHAVIOUR, mcd_conf_path, 'memcached')
示例#13
0
 def __init__(self):
     cnf = bus.cnf; ini = cnf.rawini
     CnfController.__init__(self, BEHAVIOUR, ini.get(CNF_SECTION, OPT_STORAGE_CNF_PATH), 'xml')