|
@@ -27,30 +27,25 @@ from resource_management.libraries.functions import StackFeature
|
|
|
|
|
|
from metadata import metadata
|
|
|
|
|
|
-# todo: support rolling upgrade
|
|
|
+
|
|
|
class AtlasClient(Script):
|
|
|
|
|
|
def get_component_name(self):
|
|
|
return "atlas-client"
|
|
|
|
|
|
- # ToDo: currently <stack-selector-tool> doesn't contain atlas-client, uncomment this block when
|
|
|
- # ToDo: atlas-client will be available
|
|
|
- # def pre_upgrade_restart(self, env, upgrade_type=None):
|
|
|
- # import params
|
|
|
- # env.set_params(params)
|
|
|
- #
|
|
|
- # TODO: Add ATLAS_CONFIG_VERSIONING stack feature and uncomment this code when config versioning for Atlas is supported
|
|
|
- # if params.version and check_stack_feature(StackFeature.ATLAS_CONFIG_VERSIONING, params.version):
|
|
|
- # conf_select.select(params.stack_name, "atlas", params.version)
|
|
|
- # TODO: Add ATLAS_CLIENT_ROLLING_UPGRADE stack feature and uncomment this code when rolling upgrade for Atlas client is supported
|
|
|
- # if params.version and check_stack_feature(StackFeature.ATLAS_CLIENT_ROLLING_UPGRADE, params.version):
|
|
|
- # stack_select.select("atlas-client", params.version)
|
|
|
+ def pre_upgrade_restart(self, env, upgrade_type=None):
|
|
|
+ import params
|
|
|
+ env.set_params(params)
|
|
|
+
|
|
|
+ if check_stack_feature(StackFeature.ATLAS_UPGRADE_SUPPORT, params.version):
|
|
|
+ conf_select.select(params.stack_name, "atlas", params.version)
|
|
|
+ stack_select.select("atlas-client", params.version)
|
|
|
|
|
|
def install(self, env):
|
|
|
self.install_packages(env)
|
|
|
self.configure(env)
|
|
|
|
|
|
- def configure(self, env):
|
|
|
+ def configure(self, env, upgrade_type=None, config_dir=None):
|
|
|
import params
|
|
|
env.set_params(params)
|
|
|
metadata('client')
|