Example #1
0
    def generateValues(self):
        self.AppInfo['MetaSearchImage'] = replaceDockerRepo(self.AppInfo['MetaSearchImage'], self.AppInfo['HarborAddr'])
        self.AppInfo['NFSProvisionerImage'] =replaceDockerRepo(self.AppInfo['NFSProvisionerImage'],
                                                               self.AppInfo['HarborAddr'])

        if not self.AppInfo['MetaSearchPrimaryDBPassword']:
            self.AppInfo['MetaSearchPrimaryDBPassword'] = crypto_tools.generateRandomAlphaNumericString(lenght=10)
Example #2
0
 def generateValues(self):
     self.AppInfo['MongodbImage'] = replaceDockerRepo(
         self.AppInfo['MongodbImage'], self.AppInfo['HarborAddr'])
     self.AppInfo['NFSProvisionerImage'] = replaceDockerRepo(
         self.AppInfo['NFSProvisionerImage'], self.AppInfo['HarborAddr'])
     self.AppInfo['MongoPassword'] = crypto_tools.EncodeBase64(
         crypto_tools.generateRandomAlphaNumericString(lenght=10))
Example #3
0
 def generateValues(self):
     self.AppInfo['RedisImage'] = replaceDockerRepo(
         self.AppInfo['RedisImage'], self.AppInfo['HarborAddr'])
     self.AppInfo['NFSProvisionerImage'] = replaceDockerRepo(
         self.AppInfo['NFSProvisionerImage'], self.AppInfo['HarborAddr'])
     self.AppInfo[
         'RedisStandAlonePassword'] = crypto_tools.generateRandomAlphaNumericString(
             10)
Example #4
0
 def generateValues(self):
     self.AppInfo['MCNAdminImage'] = replaceDockerRepo(
         self.AppInfo['MCNAdminImage'], self.AppInfo['HarborAddr'])
     self.AppInfo['NFSProvisionerImage'] = replaceDockerRepo(
         self.AppInfo['NFSProvisionerImage'], self.AppInfo['HarborAddr'])
     if not self.AppInfo['UPCAdminDBPassword']:
         self.AppInfo[
             'UPCAdminDBPassword'] = crypto_tools.generateRandomAlphaNumericString(
                 lenght=10)
     '''if not self.AppInfo['UPC_MtyDBPassword']:
Example #5
0
    def generateValues(self):
        self.AppInfo['NacosImage'] = replaceDockerRepo(
            self.AppInfo['NacosImage'], self.AppInfo['HarborAddr'])
        self.AppInfo['MysqlImage'] = replaceDockerRepo(
            self.AppInfo['MysqlImage'], self.AppInfo['HarborAddr'])
        self.AppInfo['NacosPeerFinderImage'] = replaceDockerRepo(
            self.AppInfo['NacosPeerFinderImage'], self.AppInfo['HarborAddr'])
        self.AppInfo['NFSProvisionerImage'] = replaceDockerRepo(
            self.AppInfo['NFSProvisionerImage'], self.AppInfo['HarborAddr'])
        self.AppInfo[
            'MysqlPassword'] = crypto_tools.generateRandomAlphaNumericString(
                lenght=10)

        if not self.AppInfo['MysqlHostIP']:
            TmpIP = raw_input('input k8s node IP  Address for Nacos Mysql:')
            self.AppInfo['MysqlHostIP'] = TmpIP.strip()

            print('Please make sure Naocs Mysql data folder %s@%s  exists!!!' %
                  (self.AppInfo['MysqlDataPath'], self.AppInfo['MysqlHostIP']))
            TmpChoice = raw_input('press any key to continue:')
Example #6
0
    def generateValues(self):
        self.AppInfo['MariaDBImage'] = replaceDockerRepo(
            self.AppInfo['MariaDBImage'], self.AppInfo['HarborAddr'])
        self.AppInfo['NFSProvisionerImage'] = replaceDockerRepo(
            self.AppInfo['NFSProvisionerImage'], self.AppInfo['HarborAddr'])

        if not hasattr(storagenode, 'externalMariadbnode'):
            self.AppInfo[
                'MariaDBPassword'] = crypto_tools.generateRandomAlphaNumericString(
                    lenght=10)
        else:
            installMysqlDriver4Python()

            from storagenode import externalMariadbnode
            TmpMysqlCheckResult = checkMysqlConnection(**externalMariadbnode)
            if TmpMysqlCheckResult['ret_code'] != 0:
                print(TmpMysqlCheckResult['result'])
                print('Fatal Error, Quit....')
                raise Exception('External Mysql  check result bad')

            self.AppInfo['MariaDBHostIP'] = str(
                externalMariadbnode['mysqlhost']).strip()
            self.AppInfo['MariaDBHostPort'] = str(
                externalMariadbnode['mysqlport']).strip()
            self.AppInfo['MariaDBUser'] = str(
                externalMariadbnode['mysqluser']).strip()
            self.AppInfo['MariaDBPassword'] = str(
                externalMariadbnode['mysqlpassword'])

        if not self.AppInfo['MariaDBHostIP']:
            TmpIP = raw_input('input k8s node IP  Address for MariaDB:')
            self.AppInfo['MariaDBHostIP'] = TmpIP.strip()

            print('Please make sure MariaDB data folder %s@%s  exists!!!' %
                  (self.AppInfo['MariaDBDataPath'],
                   self.AppInfo['MariaDBHostIP']))
            TmpChoice = raw_input('press any key to continue:')
 def generateValues(self):
     self.AppInfo['ScreenDataAccessImage'] = replaceDockerRepo(self.AppInfo['ScreenDataAccessImage'], self.AppInfo['HarborAddr'])
     self.AppInfo['NFSProvisionerImage'] =replaceDockerRepo(self.AppInfo['NFSProvisionerImage'],
                                                            self.AppInfo['HarborAddr'])
     if not self.AppInfo['ScreenDataAccessSecondDBPassword']:
         self.AppInfo['ScreenDataAccessSecondDBPassword'] = crypto_tools.generateRandomAlphaNumericString(lenght=10)