ansible.builtin.ucs_uuid_pool (v2.9.0) — module

Configures server UUID pools on Cisco UCS Manager

| "added in version" 2.7 of ansible.builtin"

Authors: David Soper (@dsoper2), CiscoUcs (@CiscoUcs)

preview | supported by certified

Install Ansible via pip

Install with pip install ansible==2.9.0

Description

Configures server UUID pools and UUID blocks on Cisco UCS Manager.

Examples can be used with the L(UCS Platform Emulator,https://communities.cisco.com/ucspe).


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Configure UUID address pool
  ucs_uuid_pool:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: UUID-Pool
    order: sequential
    first_uuid: 0000-000000000001
    last_uuid: 0000-000000000078
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove UUID address pool
  ucs_uuid_pool:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: UUID-Pool
    state: absent

Inputs

    
name:
    description:
    - The name of the UUID pool.
    - This name can be between 1 and 32 alphanumeric characters.
    - 'You cannot use spaces or any special characters other than - (hyphen), "_" (underscore),
      : (colon), and . (period).'
    - You cannot change this name after the UUID pool is created.
    required: true

port:
    description:
    - Port number to be used during connection (by default uses 443 for https and 80 for
      http connection).
    type: int

order:
    choices:
    - default
    - sequential
    default: default
    description:
    - The Assignment Order field.
    - 'This can be one of the following:'
    - default - Cisco UCS Manager selects a random identity from the pool.
    - sequential - Cisco UCS Manager selects the lowest available identity from the pool.

proxy:
    description:
    - If use_proxy is no, specfies proxy to be used for connection. e.g. 'http://proxy.xy.z:8080'
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - If C(present), will verify UUID pool is present and will create if needed.
    - If C(absent), will verify UUID pool is absent and will delete if needed.

org_dn:
    default: org-root
    description:
    - The distinguished name (dn) of the organization where the resource is assigned.

prefix:
    description:
    - UUID prefix used for the range of server UUIDs.
    - If no value is provided, the system derived prefix will be used (equivalent to selecting
      'derived' option in UI).
    - If the user provides a value, the user provided prefix will be used (equivalent
      to selecting 'other' option in UI).
    - A user provided value should be in the format XXXXXXXX-XXXX-XXXX.

use_ssl:
    default: true
    description:
    - If C(no), an HTTP connection will be used instead of the default HTTPS connection.
    type: bool

hostname:
    description:
    - IP address or hostname of Cisco UCS Manager.
    - Modules can be used with the UCS Platform Emulator U(https://cs.co/ucspe)
    required: true
    type: str

password:
    description:
    - Password for Cisco UCS Manager authentication.
    required: true
    type: str

username:
    default: admin
    description:
    - Username for Cisco UCS Manager authentication.
    type: str

last_uuid:
    description:
    - The last UUID in the block of UUIDs.
    - This is the To field in the UCS Manager Add UUID Blocks menu.

use_proxy:
    default: true
    description:
    - If C(no), will not use the proxy as defined by system environment variable.
    type: bool

first_uuid:
    description:
    - The first UUID in the block of UUIDs.
    - This is the From field in the UCS Manager UUID Blocks menu.

description:
    aliases:
    - descr
    description:
    - The user-defined description of the UUID pool.
    - 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).'