def _get_param_map(self, fn=None): #this dictionary will be used for parameter replacement #in pre-install and post-install sections out = dict() out['PASSWORD'] = self.cfg.getpw("passwords", "sql") out['BOOT_START'] = str(True).lower() out['USER'] = self.cfg.get("db", "sql_user") hostip = get_host_ip(self.cfg) out['SERVICE_HOST'] = hostip out['HOST_IP'] = hostip return out
def _get_param_map(self, fn=None): #these be used to fill in the configuration/cmds + #params with actual values mp = dict() mp['DEST'] = self.appdir mp['SQL_CONN'] = self.cfg.get_dbdsn(DB_NAME) mp['ADMIN_PASSWORD'] = self.cfg.getpw('passwords', 'horizon_keystone_admin') mp['HOST_IP'] = get_host_ip(self.cfg) mp['SERVICE_TOKEN'] = self.cfg.getpw("passwords", "service_token") mp['BIN_DIR'] = self.bindir mp['CONFIG_FILE'] = joinpths(self.cfgdir, ROOT_CONF) return mp
def _get_param_map(self, fn=None): #this dict will be used to fill in the configuration #params with actual values mp = dict() mp['DEST'] = self.appdir mp['SYSLOG'] = self.cfg.getboolean("default", "syslog") mp['SERVICE_TOKEN'] = self.cfg.getpw("passwords", "service_token") mp['SQL_CONN'] = self.cfg.get_dbdsn(DB_NAME) hostip = get_host_ip(self.cfg) mp['SERVICE_HOST'] = hostip mp['HOST_IP'] = hostip return mp
def _get_param_map(self, fn=None): # this dict will be used to fill in the configuration # params with actual values mp = dict() mp["DEST"] = self.appdir mp["SYSLOG"] = self.cfg.getboolean("default", "syslog") mp["SERVICE_TOKEN"] = self.cfg.getpw("passwords", "service_token") mp["SQL_CONN"] = self.cfg.get_dbdsn(DB_NAME) hostip = get_host_ip(self.cfg) mp["SERVICE_HOST"] = hostip mp["HOST_IP"] = hostip return mp