Define Resource Placement
The Workload Manager has ability to deploy enterprise applications over public, private, or hybrid clouds by configuring user-specified cloud settings in the Workload Manager UI > Environments > Edit Deployment Environment > Define Default Cloud Settings page.
The Resource Placement integration features extends the Workload Manager capabilities by allowing users to define cloud settings based on third-party infrastructure tools or quota management tools using automated scripts instead of manually-selected settings.
You can configure these integrations using an automation callout script.
Resource Placement Flow
To use the resource placement script, specify a URL to the script that you want to run. The resource placement script runs inside a Docker container in the CloudCenter Suite cluster (or Cloud Remote, if installed). You cannot pass in any custom values. Your script must output the values specified in this section.
The Resource Placement feature is only supported for AWS, VMware, and OpenStack clouds.
This script is executed for each Node launch (called for each VM). For example, if you have a single-tier application with the minimum number of nodes set to 2, then this script is executed twice – 1 tier x 2 nodes = 2 executions. However, the Workload Manager passes variables such as service types which allows you to decide where to place it in the VM.
Toggle the switch to YES in the Resource Placement section, as shown in the following screenshot.
If this feature is enabled, the Cloud Settings form in the Deployment Environments > Cloud Defaults page will be disabled.
Identify the script location and the specific script for the Resource Placement Configuration.
Be aware of the customizable options for AWS, OpenStack, and VMware:
- AWS Options
The following table describes AWS-specific cloud settings for the resource placement callout script.
AWS Setting Description vpcId The VPC for the node to be deployed. subnetId The subnet where the node should be deployed in the above VPC. securityGroupList The security groups where the node should be associated in the above VPC. vmTagsList The AWS tags to associate with the node. assignPublicIp Identifies if the node should be assigned with a public IP. nodeInfo Customizable node Information detail that is displayed in the Workload Manager UI Job Details Page for each node. If not provided, the Workload Manager generates the default nodeInfo based on the provided values.
- OpenStack Options
The following table describes OpenStack-specific cloud settings for the resource placement callout script.
OpenStack Setting Description TenantName The name of OpenStack tenant. zone The availability zone as described in Availability Sets and Zones > OpenStack. nicInfo The OpenStack network interface information. privateIPAllocationMode The private IP allocation strategy (DHCP or PREALLOCATE_IP). networkID The OpenStack Network ID. publicIpAllocate A flag to allocate the public IP address (Boolean: true/false). nodeInfo Customizable node Information detail that is displayed in the Workload Manager UI Job Details Page for each node. If not provided, the Workload Manager generates the default nodeInfo.
- vCenter Options
The following table describes vCenter-specific cloud settings for the resource placement callout script:
VMware Setting Description vmTagsList The AWS tags to associate with the node. UserDataCenterName The datacenter to deploy the node. UserClusterName The cluster to deploy the node in the above datacenter. UserResourcePoolName The resource pool used to deploy the node. UserDatastoreCluster The datastore cluster to associate with the node. UserFolderName The user folder used for the node deployment. RootDiskResizable
Identifies if the root disk is resizable (Boolean: true/false).
The Root Disk setting is available as a separate field and you can only select the Root Disk size if the Cloning Mode is set to Full Clone (Enable Full Clone = Selected). See VMware Network Settings for additional context.
FullClone Identifies if the node to be launched is with full clone (Boolean: true/false). SystemFolderName The folder from which the template is selected. networkList
The list of networks to attach to the node. The following table describes the format that various network types require. See vCenter Configurations > Resource Placement for additional context.
VMware Network Format Required DVS and ACI networks
UserHost The ESX host to which the node is launched. nodeInfo
- vCenter Media Related Attributes
You can specify media attributes for deployed VMs in vCenter for the following applications:
1. Single Root I/O Virtualization (SR-IOV)
2. PCI passthrough
3. Shared PCI passthrough(vGPU)
4. Available USB license dongles
5. CPU pinning(CPU affinity)
The following are sample callout scripts.
The following table describes available environment variables for the Resource Placement script.
Environment Variable Description Cloud eNV_cliqrAppTierName The tier name. All clouds, except Container Clouds and Cisco UCSD. CliqrTier_<tierName>_instanceType The Instance Type of the tier. eNV_imageName The image Name (for example: CentOS 6.x). serviceName The service name to identify settings like private subnet for a database service. eNV_parentJobName
The unique Job Name for the deployment.
CliqrCloudAccountId The cloud account ID. CliqrCloudAccountPwd The cloud account password (for AWS, access key). CliqrCloudAccountName The cloud account username (for AWS, account email ID). Cloud_Setting_CloudFamily The cloud family of the region in the Workload Manager. CliqrCloud_AccessSecretKey The AWS account secret key AWS
The SDK URL for VMware. VMware
The default OpenStack domain ID. OpenStack
The OpenStack Keystone authentication endpoint.
The OpenStack default tenant name.
The OpenStack default domain name.
The OpenStack password.
The OpenStack region.
The OpenStack user name for this account.
The OpenStack default tenant ID.
- No labels