cisco.intersight.intersight_ai_storage_policy module – AI-optimized storage policy for Cisco Intersight
Note
This module is part of the cisco.intersight collection (version 2.18.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_ai_storage_policy.
Synopsis
Creates storage policies optimized for AI workloads including inference model storage, training data, and telemetry caches.
Provides named storage presets that configure NVMe tiering, drive groups, and virtual drive layouts for common AI deployment patterns.
Builds on the Intersight storage policy API with AI-specific defaults for high-throughput, low-latency access to model weights and datasets.
For full storage configuration control, use cisco.intersight.intersight_storage_policy instead.
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: |
|
The user-defined description of the storage policy. |
|
Override whether to enable M.2 RAID boot drive. When true, configures M.2 MSTOR-RAID-1 as the boot virtual drive. Choices:
|
|
The name assigned to the storage policy. The name must be between 1 and 62 alphanumeric characters, allowing special characters :-_. |
|
Override the NVMe attachment mode.
Choices:
|
|
NVMe drive slots to configure in the selected mode. Overrides the default slot configuration from the storage profile. Allowed slots are 1-9, 21-24, 101-104. Slot format examples: “1,4,5”, “2”, “1-5”, “1,2,6-8” |
|
The name of the Organization this resource is assigned to. Default: |
|
Override the RAID level for data drive groups. Only applicable for training_data profile. Choices:
|
|
Override the read cache policy for virtual drives. Choices:
|
|
If If Choices:
|
|
The AI storage preset profile to apply.
Choices:
|
|
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:
|
|
Override the write cache policy for virtual drives. Choices:
|
Examples
- name: Create inference-optimized storage policy
cisco.intersight.intersight_ai_storage_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
organization: AI-Factory
name: storage-ai-inference
description: NVMe direct-attach for model weight storage
storage_profile: inference_optimized
- name: Create training data storage policy with RAID6
cisco.intersight.intersight_ai_storage_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
name: storage-ai-training
description: Protected storage for training datasets
storage_profile: training_data
raid_level: Raid6
write_policy: AlwaysWriteBack
- name: Create model cache storage for inference servers
cisco.intersight.intersight_ai_storage_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
name: storage-model-cache
description: M.2 boot with NVMe model cache
storage_profile: model_cache
nvme_slots: "1-4"
- name: Create edge storage policy
cisco.intersight.intersight_ai_storage_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
name: storage-edge-inference
storage_profile: edge_compact
- name: Delete AI storage policy
cisco.intersight.intersight_ai_storage_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
name: storage-ai-inference
storage_profile: inference_optimized
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: |
|
The storage settings applied by the profile and any overrides. Returned: when state is present |