...
|
...
|
@@ -156,7 +156,7 @@ public class CloudToolServiceImpl implements CloudToolService { |
|
|
response.setMessage("参数不全");
|
|
|
return response;
|
|
|
}
|
|
|
String commond = "ssh master@172.31.16.167 sh /home/master/auto_deploy/deploy/update-ips.sh -a%s -e%s -i%s";
|
|
|
String commond = "ssh master@10.66.80.23 sh /home/master/auto_deploy/deploy/update-ips.sh -a%s -e%s -i%s";
|
|
|
|
|
|
try{
|
|
|
List<String> ips = new ArrayList<String>();
|
...
|
...
|
@@ -207,7 +207,7 @@ public class CloudToolServiceImpl implements CloudToolService { |
|
|
response.setMessage("参数不全");
|
|
|
return response;
|
|
|
}
|
|
|
String commond = "ssh master@172.31.16.167 sh /home/master/auto_deploy/deploy/update-upstream.sh";
|
|
|
String commond = "ssh master@10.66.80.23 sh /home/master/auto_deploy/deploy/update-upstream.sh";
|
|
|
try{
|
|
|
String message = CommodUtil.exe(commond+" "+operate+" "+cloudTypeStr+" "+ip);
|
|
|
response.setMessage(message);
|
...
|
...
|
@@ -229,7 +229,7 @@ public class CloudToolServiceImpl implements CloudToolService { |
|
|
response.setMessage("参数不全");
|
|
|
return response;
|
|
|
}
|
|
|
String commond = "ssh master@172.31.16.167 sh /home/master/ansible_deploy/update-ip2.sh";
|
|
|
String commond = "ssh master@10.66.80.23 sh /home/master/ansible_deploy/update-ip2.sh";
|
|
|
try{
|
|
|
String message = CommodUtil.exe(commond+" "+operate+" "+cloudTypeStr+" "+ip);
|
|
|
response.setMessage(message);
|
...
|
...
|
@@ -572,9 +572,9 @@ public class CloudToolServiceImpl implements CloudToolService { |
|
|
|
|
|
public BaseResponse updateNginxConfig(AutoScalingInfoReq infoReq){
|
|
|
BaseResponse response=new BaseResponse();
|
|
|
String commond = "ssh master@172.31.16.167 sh /home/master/nginx-sync/update-java-nginx.sh";
|
|
|
String commond = "ssh master@10.66.80.23 sh /home/master/nginx-sync/update-java-nginx.sh";
|
|
|
if(!"java".equalsIgnoreCase(infoReq.getNginxType())){
|
|
|
commond = "ssh master@172.31.16.167 sh /home/master/nginx-sync/update-pch5-nginx.sh";
|
|
|
commond = "ssh master@10.66.80.23 sh /home/master/nginx-sync/update-pch5-nginx.sh";
|
|
|
}
|
|
|
String cloud = "aws";
|
|
|
if(2==infoReq.getCloudType()){
|
...
|
...
|
|