cisco.intersight.intersight_domain module – Manage UCS Domain Profiles in Cisco Intersight
Note
This module is part of the cisco.intersight collection (version 2.23.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_domain.
Synopsis
Create, update, and delete UCS Domain Profiles (SwitchClusterProfiles) on Cisco Intersight.
Manages the associated SwitchProfiles (A and B), Fabric Interconnect assignments, and policy buckets.
Policies are attached to SwitchProfiles via the Intersight bulk API.
Supports deployment of both associated SwitchProfiles, with optional waiting for completion.
For more information see Cisco Intersight.
Parameters
Parameter |
Comments |
|---|---|
Deploy both SwitchProfiles after configuration. With no configuration options, deploy an existing domain without modifying its policies or assignments. Already associated SwitchProfiles are skipped unless configuration changed. Check mode reports whether deployment is needed without submitting or waiting for an action. Choices:
|
|
Seconds between deployment status polls. Default: |
|
Maximum seconds to wait for each SwitchProfile deployment. Default: |
|
Bearer token for OAuth2 authentication with the Intersight API. When provided, api_key_id and api_private_key are not required and the If not set, the value of the INTERSIGHT_API_BEARER_TOKEN environment variable is used. |
|
Public API Key ID associated with the private key. If not set, the value of the INTERSIGHT_API_KEY_ID environment variable is used. Required if api_bearer_token is not provided. |
|
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. Required if api_bearer_token is not provided. |
|
URI used to access the Intersight API. If not set, the value of the INTERSIGHT_API_URI environment variable is used. Default: |
|
The serial number of the Fabric Interconnect to assign to SwitchProfile A. Resolved via the |
|
The serial number of the Fabric Interconnect to assign to SwitchProfile B. Resolved via the |
|
Name of the Audit Log Policy to associate with both Fabric Interconnects. |
|
Name of the Certificate Management Policy to associate with both Fabric Interconnects. |
|
The user-defined description of the UCS Domain Profile. |
|
Name of the LDAP Policy to associate with both Fabric Interconnects. |
|
The name assigned to the UCS Domain Profile. The name must be between 1 and 64 alphanumeric characters, allowing special characters :-_. SwitchProfiles are automatically named |
|
Name of the Network Connectivity (DNS) Policy to associate with both Fabric Interconnects. |
|
Name of the NTP Policy to associate with both Fabric Interconnects. |
|
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: |
|
Name of the Port Policy to associate with Fabric Interconnect A. |
|
Name of the Port Policy to associate with Fabric Interconnect B. |
|
Name of the SNMP Policy to associate with both Fabric Interconnects. |
|
If If Choices:
|
|
Name of the Switch Control Policy to associate with both Fabric Interconnects. |
|
Name of the Syslog Policy to associate with both Fabric Interconnects. |
|
Name of the System QoS Policy to associate with both Fabric Interconnects. Required when creating or configuring a domain; optional for deployment of an existing domain. |
|
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:
|
|
Name of the VLAN Policy to associate with Fabric Interconnect A. |
|
Name of the VLAN Policy to associate with Fabric Interconnect B. |
|
Name of the VSAN Policy to associate with Fabric Interconnect A. |
|
Name of the VSAN Policy to associate with Fabric Interconnect B. |
|
Wait for deployment of both SwitchProfiles to complete. Choices:
|
Examples
- name: Create a basic UCS Domain Profile
cisco.intersight.intersight_domain:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
organization: "default"
name: "Domain-01"
description: "Basic domain profile"
system_qos_policy: "Default-QoS"
state: present
- name: Create a UCS Domain Profile with switch assignments and policies
cisco.intersight.intersight_domain:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
organization: "default"
name: "Domain-01"
description: "Full domain profile"
assigned_switch_a_serial: "FDO23456ABC"
assigned_switch_b_serial: "FDO23456DEF"
vlan_policy_fi_a: "VLAN-Policy-A"
vlan_policy_fi_b: "VLAN-Policy-B"
vsan_policy_fi_a: "VSAN-Policy-A"
vsan_policy_fi_b: "VSAN-Policy-B"
port_policy_fi_a: "Port-Policy-A"
port_policy_fi_b: "Port-Policy-B"
ntp_policy: "NTP-Corp"
syslog_policy: "Syslog-Corp"
snmp_policy: "SNMP-Monitor"
system_qos_policy: "QoS-Default"
switch_control_policy: "Switch-Control"
state: present
- name: Preview deployment of an existing UCS Domain Profile
cisco.intersight.intersight_domain:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
organization: "default"
name: "Domain-01"
action: Deploy
check_mode: true
- name: Delete a UCS Domain Profile
cisco.intersight.intersight_domain:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
name: "Domain-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 SwitchClusterProfile resource. Returned: always Sample: |
|
Current or final A/B SwitchProfile responses when deployment is requested. Returned: when action is Deploy |