cisco.intersight.intersight_server_pool_qualification_policy module – Server Pool Qualification Policy configuration for Cisco Intersight
Note
This module is part of the cisco.intersight collection (version 2.12.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install cisco.intersight.
To use it in a playbook, specify: cisco.intersight.intersight_server_pool_qualification_policy.
Synopsis
Manages Server Pool Qualification Policy configuration on Cisco Intersight.
A Server Pool Qualification Policy defines conditions to qualify servers for resource pools based on various hardware and configuration attributes.
Supports multiple qualifier types including Domain, Rack Server, Blade, Tag, Memory, GPU, Processor, and Network Adaptor qualifiers.
For more information see Cisco Intersight.
Parameters
Parameter |
Comments |
|---|---|
Public API Key ID associated with the private key. If not set, the value of the INTERSIGHT_API_KEY_ID environment variable is used. |
|
Filename (absolute path) or string of PEM formatted private key data to be used for Intersight API authentication. If a string is used, Ansible vault should be used to encrypt string data. Ex. ansible-vault encrypt_string --vault-id tme@/Users/dsoper/Documents/vault_password_file ‘-----BEGIN EC PRIVATE KEY----- <your private key data> -----END EC PRIVATE KEY-----’ If not set, the value of the INTERSIGHT_API_PRIVATE_KEY environment variable is used. |
|
URI used to access the Intersight API. If not set, the value of the INTERSIGHT_API_URI environment variable is used. Default: |
|
Blade qualifier for qualifying blade-based servers. |
|
List of asset tags to qualify blade servers. Qualifies servers based on the AssetTag property. |
|
List of chassis PIDs to qualify (maximum 20). Qualifies blade servers based on chassis PID. |
|
List of chassis and slot ID ranges to qualify blade servers. |
|
Chassis ID range specification. |
|
Maximum chassis ID value (min_value-40). |
|
Minimum chassis ID value (1-40). |
|
List of slot ID ranges within the chassis. Can only be specified if chassis_id_range is provided. |
|
Maximum slot ID value (min_value-8). |
|
Minimum slot ID value (1-8). |
|
List of blade server PIDs to qualify (maximum 20). Qualifies blade servers based on their PID. |
|
List of user labels to qualify blade servers. Qualifies servers based on the UserLabel property. |
|
The user-defined description for the Server Pool Qualification Policy. Description can contain letters(a-z, A-Z), numbers(0-9), hyphen(-), period(.), colon(:), or an underscore(_). |
|
Domain qualifier for Fabric Interconnect and domain-based qualification. |
|
List of domain names to qualify resources. Qualifies resources based on the DomainName property. |
|
List of Fabric Interconnect PIDs to qualify resources. Qualifies resources based on the PID property of Fabric Interconnects. |
|
GPU qualifier for qualifying servers based on GPU specifications. If not specified, a default GPU qualifier with |
|
GPU evaluation type for server qualification.
Choices:
|
|
GPU count range (only applicable when evaluation_type is servers_with_gpu). |
|
Maximum number of GPUs (min_value-16). |
|
Minimum number of GPUs (1-16). |
|
List of GPU PIDs to qualify (maximum 20, only for servers_with_gpu). |
|
GPU vendor (only applicable when evaluation_type is servers_with_gpu). Choices:
|
|
Memory qualifier for qualifying servers based on memory specifications. |
|
Memory capacity range in GiB. |
|
Maximum memory capacity in GiB (min_value-999999). |
|
Minimum memory capacity in GiB (1-999999). |
|
Number of memory units range. |
|
Maximum number of memory units (min_value-99999). |
|
Minimum number of memory units (1-99999). |
|
The name assigned to the Server Pool Qualification Policy. The name must be between 1 and 62 alphanumeric characters, allowing special characters :-_. |
|
Network adaptor qualifier for qualifying servers based on network adaptor count. |
|
Number of network adaptors range. |
|
Maximum number of network adaptors (min_value-16). |
|
Minimum number of network adaptors (1-16). |
|
The name of the Organization this resource is assigned to. Profiles and Policies that are created within a Custom Organization are applicable only to devices in the same Organization. Default: |
|
Processor qualifier for qualifying servers based on CPU specifications. |
|
CPU cores range. |
|
Maximum number of CPU cores (min_value-9999). |
|
Minimum number of CPU cores (1-9999). |
|
List of processor PIDs to qualify (maximum 100). |
|
CPU speed range in GHz. |
|
Maximum CPU speed in GHz (min_value-99). |
|
Minimum CPU speed in GHz (1-99). |
|
Processor vendor. Choices:
|
|
Rack server qualifier for qualifying rack-based servers. |
|
List of asset tags to qualify servers. Qualifies servers based on the AssetTag property. |
|
List of rack server PIDs to qualify (maximum 20). Qualifies rack servers based on their PID. |
|
List of rack ID ranges to qualify servers. Each range specifies min_value and max_value for rack IDs. |
|
Maximum rack ID value (min_value-256). |
|
Minimum rack ID value (1-256). |
|
List of user labels to qualify servers. Qualifies servers based on the UserLabel property. |
|
If If Choices:
|
|
Tag qualifier for qualifying resources based on tags. |
|
List of chassis tags in key-value format. |
|
Tag key. |
|
Tag value. |
|
List of domain profile tags in key-value format. |
|
Tag key. |
|
Tag value. |
|
List of server tags in key-value format. |
|
Tag key. |
|
Tag value. |
|
List of tags in Key:<user-defined key> Value:<user-defined value> format. |
|
If Choices:
|
|
Boolean control for verifying the api_uri TLS certificate Choices:
|
Examples
- name: Create minimal Server Pool Qualification Policy
cisco.intersight.intersight_server_pool_qualification_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
organization: "default"
name: "ServerPool-Minimal-Policy"
description: "Minimal policy - GPU qualifier automatically added with servers_without_gpu"
state: present
- name: Create Server Pool Qualification Policy with domain and rack qualifiers
cisco.intersight.intersight_server_pool_qualification_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
organization: "default"
name: "ServerPool-Qual-Policy-01"
description: "Server pool qualification with domain and rack filters"
domain_qualifier:
fabric_interconnect_pids:
- ucs-fi-6454
- ucs-fi-64108
domain_names:
- "AC08-6454"
rack_server_qualifier:
rack_id_ranges:
- min_value: 2
max_value: 4
- min_value: 5
max_value: 8
pids:
- "UCSC-C245-M8SX"
- "UCSC-C220-M8S"
asset_tags:
- "production"
user_labels:
- "datacenter-a"
state: present
- name: Create Server Pool Qualification Policy with blade and memory qualifiers
cisco.intersight.intersight_server_pool_qualification_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
name: "ServerPool-Blade-Policy"
blade_qualifier:
pids:
- "UCSB-B480-M5"
- "UCSB-B200-M5"
chassis_pids:
- "N20-C6508"
chassis_slot_ranges:
- chassis_id_range:
min_value: 2
max_value: 10
slot_id_ranges:
- min_value: 4
max_value: 6
memory_qualifier:
capacity_range:
min_value: 64
max_value: 512
units_range:
min_value: 10
max_value: 20
state: present
- name: Create Server Pool Qualification Policy with GPU requirements
cisco.intersight.intersight_server_pool_qualification_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
name: "ServerPool-GPU-Policy"
description: "Policy for servers with NVIDIA GPUs"
gpu_qualifier:
evaluation_type: servers_with_gpu
gpu_count_range:
min_value: 2
max_value: 4
vendor: nvidia
processor_qualifier:
cores_range:
min_value: 16
max_value: 64
vendor: intel
state: present
- name: Create Server Pool Qualification Policy with tag qualifiers
cisco.intersight.intersight_server_pool_qualification_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
name: "ServerPool-Tag-Policy"
tag_qualifier:
server_tags:
- key: "environment"
value: "production"
- key: "tier"
value: "1"
chassis_tags:
- key: "location"
value: "datacenter-a"
network_adaptor_qualifier:
adaptors_range:
min_value: 2
max_value: 8
state: present
- name: Create comprehensive Server Pool Qualification Policy
cisco.intersight.intersight_server_pool_qualification_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
organization: "Production"
name: "ServerPool-Comprehensive-Policy"
description: "Comprehensive qualification policy with multiple qualifiers"
domain_qualifier:
fabric_interconnect_pids:
- ucs-fi-6454
rack_server_qualifier:
pids:
- "UCSC-C220-M6S"
- "UCSC-C240-M6S"
blade_qualifier:
pids:
- "UCSX-210C-M7"
- "UCSX-410C-M7"
memory_qualifier:
capacity_range:
min_value: 128
max_value: 1024
processor_qualifier:
cores_range:
min_value: 32
max_value: 128
vendor: intel
gpu_qualifier:
evaluation_type: servers_without_gpu
network_adaptor_qualifier:
adaptors_range:
min_value: 2
max_value: 4
tags:
- Key: "Environment"
Value: "Production"
state: present
- name: Delete Server Pool Qualification Policy
cisco.intersight.intersight_server_pool_qualification_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
name: "ServerPool-Qual-Policy-01"
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The API response output returned by the specified resource. Returned: always Sample: |