[ Cmii ] [ Octopus ] - reformat agent-go - 3
This commit is contained in:
@@ -9,7 +9,7 @@ spring:
|
||||
allow-circular-references: true
|
||||
allow-bean-definition-overriding: true
|
||||
rabbitmq:
|
||||
host: 10.250.0.100
|
||||
host: 42.192.52.227
|
||||
port: 20672
|
||||
username: boge
|
||||
password: boge8tingH
|
||||
@@ -24,7 +24,7 @@ spring:
|
||||
max-interval: 65000
|
||||
initial-interval: 65000
|
||||
redis:
|
||||
host: 10.250.0.100
|
||||
host: 42.192.52.227
|
||||
port: 21370
|
||||
database: 0
|
||||
password: boge8tingH
|
||||
@@ -47,7 +47,7 @@ spring:
|
||||
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://10.250.0.100:21306/octopus_server?autoReconnect=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
||||
url: jdbc:mysql://42.192.52.227:21306/octopus_server?autoReconnect=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
||||
username: boge
|
||||
password: boge8tingH
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
|
||||
@@ -48,14 +48,17 @@ public class TestBaseFuncScheduler {
|
||||
// Long projectServerId = 1722453318596550657L;// lappro
|
||||
// Long projectServerId = 1752602668144975873L;// cqlyj
|
||||
// Long projectServerId = 1764575895186030593L;// 上海雷视联动
|
||||
Long projectServerId = 1765290465066692610L;// 吉林移动
|
||||
// Long projectServerId = 1765290465066692610L;// 吉林移动
|
||||
// Long projectServerId = 1765654823726669826L;// 资阳公安
|
||||
Long projectServerId = 1773619219367120898L; // 内网35-71项目
|
||||
|
||||
|
||||
projectDeployContext.setProjectId(projectServerId);
|
||||
|
||||
|
||||
// String masterNodeServerName = "Shanghai-amd64-09"; // cgga
|
||||
String masterNodeServerName = "Chengdu-amd64-51"; // 吉林移动
|
||||
// String masterNodeServerName = "Chengdu-amd64-51"; // 吉林移动
|
||||
String masterNodeServerName = "Chengdu-amd64-71"; // 吉林移动
|
||||
// String masterNodeServerName = "Ziyang-amd64-61"; // 资阳公安
|
||||
|
||||
ProjectServerVO projectServerVO = coreProjectServerService.projectServerOne(projectServerId);
|
||||
@@ -76,24 +79,24 @@ public class TestBaseFuncScheduler {
|
||||
|
||||
|
||||
List<BaseFunctionEnum> masterNodeProcedure = List.of(
|
||||
// BaseFunctionEnum.DISABLE_SWAP,
|
||||
// BaseFunctionEnum.DISABLE_SELINUX,
|
||||
// BaseFunctionEnum.SHUTDOWN_FIREWALL,
|
||||
// BaseFunctionEnum.INSTALL_DOCKER,
|
||||
BaseFunctionEnum.DISABLE_SWAP,
|
||||
BaseFunctionEnum.DISABLE_SELINUX,
|
||||
BaseFunctionEnum.SHUTDOWN_FIREWALL,
|
||||
BaseFunctionEnum.INSTALL_DOCKER,
|
||||
// BaseFunctionEnum.INSTALL_DEFAULT_SSH_KEY,
|
||||
// BaseFunctionEnum.INSTALL_DOCKER_COMPOSE,
|
||||
BaseFunctionEnum.INSTALL_DOCKER_COMPOSE
|
||||
// BaseFunctionEnum.MODIFY_DOCKER_CONFIG
|
||||
// BaseFunctionEnum.INSTALL_HARBOR
|
||||
);
|
||||
|
||||
List<BaseFunctionEnum> agentNodeProcedure = List.of(
|
||||
BaseFunctionEnum.DISABLE_SWAP,
|
||||
BaseFunctionEnum.INSTALL_DEFAULT_SSH_KEY,
|
||||
BaseFunctionEnum.DISABLE_SELINUX,
|
||||
BaseFunctionEnum.SHUTDOWN_FIREWALL,
|
||||
BaseFunctionEnum.INSTALL_DOCKER,
|
||||
BaseFunctionEnum.INSTALL_DOCKER_COMPOSE,
|
||||
BaseFunctionEnum.MODIFY_DOCKER_CONFIG
|
||||
// BaseFunctionEnum.DISABLE_SWAP,
|
||||
// BaseFunctionEnum.INSTALL_DEFAULT_SSH_KEY,
|
||||
// BaseFunctionEnum.DISABLE_SELINUX,
|
||||
// BaseFunctionEnum.SHUTDOWN_FIREWALL,
|
||||
// BaseFunctionEnum.INSTALL_DOCKER,
|
||||
// BaseFunctionEnum.INSTALL_DOCKER_COMPOSE,
|
||||
// BaseFunctionEnum.MODIFY_DOCKER_CONFIG
|
||||
);
|
||||
|
||||
projectDeployContext.setMasterNodeBaseProcedure(masterNodeProcedure);
|
||||
@@ -111,7 +114,7 @@ public class TestBaseFuncScheduler {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
// baseFuncScheduler.runProcedure(projectDeployContext);
|
||||
baseFuncScheduler.runProcedure(projectDeployContext);
|
||||
|
||||
|
||||
// harborFuncScheduler.runProcedure(projectDeployContext);
|
||||
@@ -136,7 +139,7 @@ public class TestBaseFuncScheduler {
|
||||
);
|
||||
projectDeployContext.setMasterAppProcedure(appFunctionEnumList);
|
||||
|
||||
appFuncScheduler.runProcedure(projectDeployContext);
|
||||
// appFuncScheduler.runProcedure(projectDeployContext);
|
||||
|
||||
|
||||
masterNodeProcedure = List.of(BaseFunctionEnum.CHRONY_TO_MASTER);
|
||||
|
||||
Reference in New Issue
Block a user