ucs_storage_profile - Configures storage profiles on Cisco UCS Manager

New in version 2.7.

Synopsis

Requirements

The below requirements are needed on the host that executes this module.

  • ucsmsdk

Parameters

Parameter Choices/Defaults Comments
description
The user-defined description of the storage profile.
Enter up to 256 characters.
You can use any characters or spaces except the following:
` (accent mark), (backslash), ^ (carat), " (double quote), = (equal sign), > (greater than), < (less than), or ' (single quote).

aliases: descr
hostname
str

required
IP address or hostname of Cisco UCS Manager.
local_luns
List of Local LUNs used by the storage profile.
disk_policy_name
The disk group configuration policy to be applied to this local LUN.
expand_to_avail
bool
    Choices:
  • no ←
  • yes
Specifies that this LUN can be expanded to use the entire available disk group.
For each service profile, only one LUN can use this option.
Expand To Available option is not supported for already deployed LUN.
name
required
The name of the local LUN.
state
    Choices:
  • absent
  • present ←
If present, will verify local LUN is present on profile. If absent, will verify local LUN is absent on profile.
fractional_size Default:
0
Fractional size of this LUN in MB.
auto_deploy
    Choices:
  • auto-deploy ←
  • no-auto-deploy
Whether the local LUN should be automatically deployed or not.
size Default:
1
Size of this LUN in GB.
The size can range from 1 to 10240 GB.
name
required
The name of the storage profile.
This name can be between 1 and 16 alphanumeric characters.
You cannot use spaces or any special characters other than - (hyphen), "_" (underscore), : (colon), and . (period).
You cannot change this name after profile is created.
org_dn Default:
org-root
The distinguished name (dn) of the organization where the resource is assigned.
password
str

required
Password for Cisco UCS Manager authentication.
port
int
Port number to be used during connection (by default uses 443 for https and 80 for http connection).
proxy
str
If use_proxy is no, specfies proxy to be used for connection. e.g. 'http://proxy.xy.z:8080'
state
    Choices:
  • absent
  • present ←
If present, will verify that the storage profile is present and will create if needed.
If absent, will verify that the storage profile is absent and will delete if needed.
use_proxy
bool
    Choices:
  • no
  • yes ←
If no, will not use the proxy as defined by system environment variable.
use_ssl
bool
    Choices:
  • no
  • yes ←
If no, an HTTP connection will be used instead of the default HTTPS connection.
username
str
Default:
admin
Username for Cisco UCS Manager authentication.

Examples

- name: Configure Storage Profile
  ucs_storage_profile:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: DEE-StgProf
    local_luns:
    - name: Boot-LUN
      size: '60'
      disk_policy_name: DEE-DG
    - name: Data-LUN
      size: '200'
      disk_policy_name: DEE-DG

- name: Remove Storage Profile
  ucs_storage_profile:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: DEE-StgProf
    state: absent

- name: Remove Local LUN from Storage Profile
  ucs_storage_profile:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: DEE-StgProf
    local_luns:
    - name: Data-LUN
      state: absent

Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

Maintenance

This module is flagged as certified which means that it is maintained by an Ansible Partner. See Module Maintenance & Support for more info.

For a list of other modules that are also maintained by an Ansible Partner, see here.

Author

  • Sindhu Sudhir (@sisudhir)
  • David Soper (@dsoper2)
  • CiscoUcs (@CiscoUcs)

Hint

If you notice any issues in this documentation you can edit this document to improve it.