ucs_storage_profile – Configures storage profiles on Cisco UCS Manager — Ansible Documentation

- AnsibleFest
- Products
- Community
- Webinars & Training
- Blog

Documentation

# ucs_storage_profile – Configures storage profiles on Cisco UCS Manager

New in version 2.7.

- Synopsis
- Requirements
- Parameters
- Examples
- Status

## Synopsis

- Configures storage profiles on Cisco UCS Manager.
- Examples can be used with the UCS Platform Emulator.

## 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 string / required |  | IP address or hostname of Cisco UCS Manager.
local_luns - |  | List of Local LUNs used by the storage profile.
| auto_deploy - | Choices: auto-deploy ← no-auto-deploy | Whether the local LUN should be automatically deployed or not.
| disk_policy_name - |  | The disk group configuration policy to be applied to this local LUN.
| expand_to_avail boolean | 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.
| fractional_size - | Default: "0" | Fractional size of this LUN in MB.
| name - / required |  | The name of the local LUN.
| size - | Default: "1" | Size of this LUN in GB. The size can range from 1 to 10240 GB.
| state - | Choices: absent present ← | If `present`, will verify local LUN is present on profile. If `absent`, will verify local LUN is absent on profile.
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 string / required |  | Password for Cisco UCS Manager authentication.
port integer |  | Port number to be used during connection (by default uses 443 for https and 80 for http connection).
proxy string |  | 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 boolean | Choices: no yes ← | If `no`, will not use the proxy as defined by system environment variable.
use_ssl boolean | Choices: no yes ← | If `no`, an HTTP connection will be used instead of the default HTTPS connection.
username string | 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 not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by an Ansible Partner. [certified]

### Authors

- 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.