W3cubDocs

/Ansible

cisco.ucs.ucs_storage_profile – Configures storage profiles on Cisco UCS Manager

Note

This plugin is part of the cisco.ucs collection (version 1.6.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.ucs.

To use it in a playbook, specify: cisco.ucs.ucs_storage_profile.

New in version 2.7: of cisco.ucs

Synopsis

  • Configures storage profiles on Cisco UCS Manager.

Requirements

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

  • ucsmsdk

Parameters

Parameter Choices/Defaults Comments
description
string
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.
Modules can be used with the UCS Platform Emulator https://cs.co/ucspe
local_luns
string
List of Local LUNs used by the storage profile.
auto_deploy
string
    Choices:
  • auto-deploy
  • no-auto-deploy
Whether the local LUN should be automatically deployed or not.
disk_policy_name
string
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
string
Default:
"0"
Fractional size of this LUN in MB.
name
string / required
The name of the local LUN.
size
string
Default:
"1"
Size of this LUN in GB.
The size can range from 1 to 10240 GB.
state
string
    Choices:
  • absent
  • present
If present, will verify local LUN is present on profile. If absent, will verify local LUN is absent on profile.
name
string / 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
string
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
string
    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
  cisco.ucs.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
  cisco.ucs.ucs_storage_profile:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: DEE-StgProf
    state: absent

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

Authors

  • Sindhu Sudhir (@sisudhir)
  • David Soper (@dsoper2)
  • John McDonough (@movinalot)
  • CiscoUcs (@CiscoUcs)

© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/cisco/ucs/ucs_storage_profile_module.html