nttmcp.mcp.os_info (1.0.9) — module

Get NTT LTD Supported Operating System Information

| "added in version" 2.10.0 of nttmcp.mcp"

Authors: Ken Sinfield (@kensinfield)

preview | supported by NTT Ltd.

Install collection

Install with ansible-galaxy collection install nttmcp.mcp:==1.0.9


Add to requirements.yml

  collections:
    - name: nttmcp.mcp
      version: 1.0.9

Description

Get NTT LTD Supported Operating System Information


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- hosts: 127.0.0.1
  connection: local
  collections:
    - nttmcp.mcp
  tasks:

  - name: Get a list of all Operating Systems in a region
    os_info:
      region: na

  - name: Get a list of Windows Operating Systems
    os_info:
      region: na
      family: WINDOWS

  - name: Get a list of all CENTOS Operating Systems using wildcard
    os_info:
      region: na
      name: "*Centos*"

  - name: Get a specific OS
    os_info:
      region: na
      id: "CENTOSX32"

Inputs

    
id:
    description:
    - The id of the infrastructure entity, supports wildcard matching with "*" e.g. "*Centos*"
    required: false
    type: str

auth:
    description:
    - Optional dictionary containing the authentication and API information for Cloud
      Control
    required: false
    suboptions:
      api:
        description:
        - The Cloud Control API endpoint e.g. api-na.mcp-services.net
        required: false
        type: str
      api_version:
        description:
        - The Cloud Control API version e.g. 2.11
        required: false
        type: str
      password:
        description:
        - The Cloud Control API user password
        required: false
        type: str
      username:
        description:
        - The Cloud Control API username
        required: false
        type: str
    type: dict

name:
    description:
    - The name of the infrastructure entity, supports wildcard matching with "*" e.g.
      "*Centos*"
    required: false
    type: str

family:
    choices:
    - UNIX
    - WINDOWS
    description:
    - The OS family name of the infrastructure entity
    required: false
    type: str

region:
    default: na
    description:
    - The geographical region
    required: false
    type: str

Outputs

data:
  contains:
    count:
      description: The total count of found/returned objects
      returned: success
      sample: 5
      type: int
    os:
      contains:
        displayName:
          description: The common name for the OS
          sample: CENTOS7/64
          type: str
        family:
          description: OS family
          sample: UNIX
          type: str
        id:
          description: OS ID
          sample: CENTOS764
          type: str
        networkAdapter:
          contains:
            default:
              description: Is this the default adapter type for the OS
              sample: false
              type: bool
            name:
              description: The adapter name
              sample: VMXNET3
              type: str
          description: List of supported network adapters
          type: complex
        osUnitsGroupId:
          description: The OS billing group
          sample: CENTOS
          type: str
        scsiAdapterType:
          contains:
            adapterType:
              description: The name of the adapter
              sample: LSI_LOGIC_SAS
              type: str
            default:
              description: Is this the default adapter type for the OS
              sample: false
              type: bool
          description: List of supported SCSI adapter types for this OS
          type: complex
        supportsBackup:
          description: Does this OS support NTTC-CIS Backup as a Service
          sample: true
          type: bool
        supportsGuestOsCustomization:
          description: Does this OS support guest OS cusomtizations
          sample: true
          type: bool
        supportsOvfImport:
          description: Does this OS support OVF importing via NTTC-CIS Cloud Control
          sample: true
          type: bool
      description: A list of operating systems
      returned: success
      type: complex
  description: dict of returned Objects
  returned: success
  type: complex