in deploy/ansible/action_plugins/public_api.py [0:0]
def __init__(self, params):
self.input_params = params
method = params.get("method")
scenario = params.get("availabilityScenario")
self.infrastructureParameterSet = params.get("infrastructureParameterSet")
self.installationParameterSets = params.get("installationParameterSets")
webdisp_type = self.installationParameterSets.get(
"webDispatcherDeployment"
).get("installationType")
if method == "deployment":
self.props = self.get_nonha_deployment_params()
if scenario == "hana-system-replication":
self.props.get("installationParameterSets").update(
self.get_ha_deployment_params()
)
elif scenario == "clustering":
self.props.get("installationParameterSets").update(
self.get_ha_deployment_params()
)
self.props.get("installationParameterSets").update(
self.get_cluster_deployment_params()
)
if webdisp_type != "No":
if webdisp_type == "Standalone":
self.props["installationParameterSets"]["webDispatcherDeployment"][
"parameters"
] += self.get_webdisp_deployment_standalone_params().get(
"parameters"
)
self.props["installationParameterSets"]["webDispatcherDeployment"][
"parameters"
] += self.get_webdisp_deployment_params().get("parameters")
if scenario != "NON_HA":
self.props["installationParameterSets"][
"webDispatcherDeployment"
]["parameters"] += self.get_webdisp_ha_deployment_params().get(
"parameters"
)
else:
self.props["installationParameterSets"]["webDispatcherDeployment"][
"parameters"
] += self.get_webdisp_deployment_params().get("parameters")
elif method == "software_provisioning":
self.props = self.get_nonha_provisioning_params()
if scenario == "hana-system-replication":
self.props.get("deploymentParameterSets").update(
self.get_ha_provisioning_params()
)
elif scenario == "clustering":
self.props.get("deploymentParameterSets").update(
self.get_ha_provisioning_params()
)