diff --git a/gradle.properties b/gradle.properties index faf99dac..3f810130 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,4 +16,4 @@ group=com.nike artifactId=cerberus-lifecycle-cli -version=1.7.0 +version=2.0.0 diff --git a/src/main/java/com/nike/cerberus/command/core/RollingRebootWithHealthCheckCommand.java b/src/main/java/com/nike/cerberus/command/core/RollingRebootWithHealthCheckCommand.java index 1db261a4..a0b2bbab 100644 --- a/src/main/java/com/nike/cerberus/command/core/RollingRebootWithHealthCheckCommand.java +++ b/src/main/java/com/nike/cerberus/command/core/RollingRebootWithHealthCheckCommand.java @@ -19,7 +19,7 @@ ) public class RollingRebootWithHealthCheckCommand implements Command { - public static final String COMMAND_NAME = "rolling-reboot-with-health-check"; + public static final String COMMAND_NAME = "rolling-reboot"; @Parameter(names = {"--stack-name"}, required = true, description = "The stack name to reboot.") private StackName stackName = StackName.CMS; diff --git a/src/main/java/com/nike/cerberus/operation/core/RollingRebootWithHealthCheckOperation.java b/src/main/java/com/nike/cerberus/operation/core/RollingRebootWithHealthCheckOperation.java index c879aadd..94904631 100644 --- a/src/main/java/com/nike/cerberus/operation/core/RollingRebootWithHealthCheckOperation.java +++ b/src/main/java/com/nike/cerberus/operation/core/RollingRebootWithHealthCheckOperation.java @@ -41,10 +41,10 @@ public class RollingRebootWithHealthCheckOperation implements Operation HEALTH_CHECK_MAP = ImmutableMap.of( StackName.CMS.getName(), "http://%s:8080/healthcheck", - StackName.GATEWAY.getName(), "https://%s:443/sys/health" - // TODO: Test that command works with remaining stacks -// StackName.VAULT.getName(), "https://%s:8200/v1/sys/health?standbyok", -// StackName.CONSUL.getName(), "https://%s:8500/v1/sys/health" + StackName.GATEWAY.getName(), "https://%s:443/sys/health", + StackName.VAULT.getName(), "https://%s:8200/v1/sys/health?standbyok" + // TODO: upgrade Consul and use new healthcheck +// StackName.CONSUL.getName(), "http://%s:8580/v1/status/peers" ); private final static int DEFAULT_HTTP_TIMEOUT = 15; @@ -57,6 +57,8 @@ public class RollingRebootWithHealthCheckOperation implements Operation