[Agent][Deploy] - cmii update
This commit is contained in:
42
agent-deploy/b_middle/DeployMiddleware.go
Normal file → Executable file
42
agent-deploy/b_middle/DeployMiddleware.go
Normal file → Executable file
@@ -6,57 +6,31 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
EmqxApplyFilePath = ""
|
||||
MongoApplyFilePath = ""
|
||||
RabbitMQApplyFilePath = ""
|
||||
RedisApplyFilePath = ""
|
||||
MySQLApplyFilePath = ""
|
||||
NacosApplyFilePath = ""
|
||||
PVCApplyFilePath = ""
|
||||
log = logger.Log
|
||||
log = logger.Log
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
EmqxApplyFilePath = z_dep.ApplyFilePrefix + "k8s-emqx.yaml"
|
||||
MongoApplyFilePath = z_dep.ApplyFilePrefix + "k8s-mongo.yaml"
|
||||
RabbitMQApplyFilePath = z_dep.ApplyFilePrefix + "k8s-rabbitmq.yaml"
|
||||
RedisApplyFilePath = z_dep.ApplyFilePrefix + "k8s-redis.yaml"
|
||||
MySQLApplyFilePath = z_dep.ApplyFilePrefix + "k8s-mysql.yaml"
|
||||
NacosApplyFilePath = z_dep.ApplyFilePrefix + "k8s-nacos.yaml"
|
||||
PVCApplyFilePath = z_dep.ApplyFilePrefix + "k8s-pvc.yaml"
|
||||
|
||||
log.DebugF("EmqxApplyFilePath: %s", EmqxApplyFilePath)
|
||||
log.DebugF("MongoApplyFilePath: %s", MongoApplyFilePath)
|
||||
log.DebugF("RabbitMQApplyFilePath: %s", RabbitMQApplyFilePath)
|
||||
log.DebugF("RedisApplyFilePath: %s", RedisApplyFilePath)
|
||||
log.DebugF("MySQLApplyFilePath: %s", MySQLApplyFilePath)
|
||||
log.DebugF("NacosApplyFilePath: %s", NacosApplyFilePath)
|
||||
log.DebugF("PVCApplyFilePath: %s", PVCApplyFilePath)
|
||||
}
|
||||
|
||||
func MidEmqxDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiEmqxTemplate, EmqxApplyFilePath)
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiEmqxTemplate, z_dep.EmqxApplyFilePath)
|
||||
}
|
||||
|
||||
func MidMongoDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiMongoTemplate, MongoApplyFilePath)
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiMongoTemplate, z_dep.MongoApplyFilePath)
|
||||
}
|
||||
func MidRabbitMQDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiRabbitMQTemplate, RabbitMQApplyFilePath)
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiRabbitMQTemplate, z_dep.RabbitMQApplyFilePath)
|
||||
}
|
||||
func MidRedisDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiRedisTemplate, RedisApplyFilePath)
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiRedisTemplate, z_dep.RedisApplyFilePath)
|
||||
}
|
||||
|
||||
func MidMySQlDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiMySQLTemplate, MySQLApplyFilePath)
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiMySQLTemplate, z_dep.MySQLApplyFilePath)
|
||||
}
|
||||
|
||||
func MidNacosDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiNacosTemplate, NacosApplyFilePath)
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiNacosTemplate, z_dep.NacosApplyFilePath)
|
||||
}
|
||||
|
||||
func PVCDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiPVCTemplate, PVCApplyFilePath)
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiPVCTemplate, z_dep.PVCApplyFilePath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user