Back to index
Summary
Maps a resource to a rolling deploy phase.projectNameStringrequiredThe name for the project that must be unique among all projects. environmentNameStringrequiredThe name of the environment. environmentTierNameStringrequiredName for the environment tier; must be unique among all tiers for the environment. resourceNameArrayoptionalList of resources to be mapped to a rolling deploy phase. resourcePhaseMappingArrayoptionalA map of resource and rolling deploy phase. resourcePoolNameArrayoptionalList of resource pools to be mapped to a rolling deploy phase. resourcePoolPhaseMappingArrayoptionalA map of resource pool and rolling deploy phase. rollingDeployPhaseNameStringoptionalName for the rolling deploy phase to be associated with the resource. |
Usage
Perl
$cmdr->setTierResourcePhase( "test-projectName", # projectName "test-environmentName", # environmentName "test-environmentTierName" # environmentTierName # optionals );
ectool
ectool setTierResourcePhase \ "test-projectName" `# projectName` \ "test-environmentName" `# environmentName` \ "test-environmentTierName" `# environmentTierName` \ # optionals
Examples
Perl
To map three resources to a rolling deploy phase:
$cmdr->setTierResourcePhase("Default", "PROD", "Web servers", {resourceNames => Webserver-resource1 Webserver-resource2 Webserver-resource3, rollingDeployPhaseName => Phase1});
To map three resource pools to a rolling deploy phase:
$cmdr->setTierResourcePhase("Default", "PROD", "Web servers", {resourceNames => Webserver-pool1 Webserver-pool2 Webserver-pool3, rollingDeployPhaseName => Phase1});
To map specific resources to specific rolling deploy phases:
$cmdr->setTierResourcePhase("Default", "PROD", "Web servers", {resourcePhaseMappings => Webserver-resource1=Phase1 Webserver-resource2=Phase2 Webserver-resource3=Phase1});
To map specific resource pools to specific rolling deploy phases:
$cmdr->setTierResourcePhase("Default", "PROD", "Web servers", {resourcePhaseMappings => Webserver-pool1=Phase1 Webserver-pool2=Phase2 Webserver-pool3=Phase1});
ectool
To map three resources to a rolling deploy phase:
ectool setTierResourcePhase "Default" "PROD" "Web servers" --resourceNames Webserver-resource1 Webserver-resource2 Webserver-resource3 --rollingDeployPhaseName Phase1
To map three resource pools to a rolling deploy phase:
ectool setTierResourcePhase "Default" "PROD" "Web servers" --resourcePoolNames Webserver-pool1 Webserver-pool2 Webserver-Pool3 --rollingDeployPhaseName Phase1
To map specific resources to specific rolling deploy phases:
ectool setTierResourcePhase "Default" "PROD" "Web servers" --resourcePhaseMappings Webserver-resource1=Phase1 Webserver-resource2=Phase2 Webserver-resource3=Phase1
To map specific resource pools to specific rolling deploy phases:
ectool setTierResourcePhase "Default" "PROD" "Web servers" --resourcePhaseMappings Webserver-pool1=Phase1 Webserver-pool2=Phase2 Webserver-pool3=Phase1