Creating policies
You can also create any of these policy types and map tenants to the resources. This enables you to control which resources are used when provisioning a service instance requested by the user of a specific tenant. Policies based on tenant tags are useful only when two or more tenants share a network container but require different resource pools.
Before you begin
Create tag groups and tags, as described in Creating-tag-groups-and-tags.
Tag objects in BMC Cloud Lifecycle Management, as described in Assigning-a-tag-to-an-object.
To create a policy
- From the BMC Cloud Lifecycle Management Administration console, click the vertical Workspaces menu on the left side of the window and select Service Governor.
The Service Governor workspace is displayed: - Under Quick Links on the left, click a policy type under Policies.
- In the Edit Condition workarea, select an item from the
list:
- Match All — Must match all of the tags specified in all of the conditions:
- Match Any — Match any of the tags specified in any of conditions:
- Create a condition:
A condition is satisfied if any of the tags from the selected Tag Source are in the selected Tag Group and match a tag of a resource.- Click Add condition
.
- Under Tag Source, select an item from the
list:
- Service Blueprint — Indicates that you want to match tags applied to service blueprints
- Tenant — Indicates that you want to match tags applied to tenants
- Under Tag Group, using the
list, select a tag group to which the tag source must belong.
- Click Add condition
- Continue adding conditions as needed to the policy by clicking Add condition and creating a condition.
You can remove a condition by clicking the delete condition iconnext to the condition that you want to delete.
- Click Save.
You must click Save before switching to a different policy type under Quick Links on the left.
The policy is now active.
Example
A company named XYZ, Inc. has the following network containers mapped:
- Container A is tagged as Gold from the SLA tag group.
- Container B is tagged as Silver from the SLA tag group.
Company XYZ has the following compute resource pools and each pool is mapped to network containers A and B:
- Pool Alpha is tagged as Gold from the SLA tag group.
- Pool Omega is tagged as Silver from the SLA tag group.
Company XYZ has created the following service blueprints:
- Windows 2003 Gold is tagged as Gold from the SLA tag group.
- Windows 2003 Silver is tagged as Silver from the SLA tag group.
Company XYZ wants to create policies to ensure that:
- Services created using the service blueprint tagged as Gold are created in the Gold network container and use resources from the Gold resource pool.
- Services created using the service blueprint tagged Silver are created in the Silver network container and use resources from the Silver resource pool.
To assign the correct resources for network containers, company XYZ creates the following network container policy:
To assign the correct resources for compute resource pools, the company also creates the following compute pool policy:
Related topics