opentelekomcloud.cloud.deh_server_info (0.14.2) — module

Get info about ECSs on a Dedicated host

| "added in version" 0.1.2 of opentelekomcloud.cloud"

Authors: Tino Schreiber (@tischrei)

Install collection

Install with ansible-galaxy collection install opentelekomcloud.cloud:==0.14.2


Add to requirements.yml

  collections:
    - name: opentelekomcloud.cloud
      version: 0.14.2

Description

Get info about ECSs on a Dedicated host


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Query all ECSs on DeH host
- opentelekomcloud.cloud.deh_server_info:
    dedicated_host: 123456-host-id
  register: server

Inputs

    
auth:
    description:
    - Dictionary containing auth information as needed by the cloud's auth plugin strategy.
      For the default I(password) plugin, this would contain I(auth_url), I(username),
      I(password), I(project_name) and any information about domains (for example, I(os_user_domain_name)
      or I(os_project_domain_name)) if the cloud supports them. For other plugins, this
      param will need to contain whatever parameters that auth plugin requires. This parameter
      is not needed if a named cloud is provided or OpenStack OS_* environment variables
      are present.
    type: dict

wait:
    default: true
    description:
    - Should ansible wait until the requested resource is complete.
    type: bool

cloud:
    description:
    - Named cloud or cloud config to operate against. If I(cloud) is a string, it references
      a named cloud config as defined in an OpenStack clouds.yaml file. Provides default
      values for I(auth) and I(auth_type). This parameter is not needed if I(auth) is
      provided or if OpenStack OS_* environment variables are present. If I(cloud) is
      a dict, it contains a complete cloud configuration like would be in a section of
      clouds.yaml.
    type: raw

ca_cert:
    aliases:
    - cacert
    description:
    - A path to a CA Cert bundle that can be used as part of verifying SSL API requests.
    type: str

timeout:
    default: 180
    description:
    - How long should ansible wait for the requested resource.
    type: int

auth_type:
    description:
    - Name of the auth plugin to use. If the cloud uses something other than password
      authentication, the name of the plugin should be indicated here and the contents
      of the I(auth) parameter should be updated accordingly.
    type: str

interface:
    aliases:
    - endpoint_type
    choices:
    - admin
    - internal
    - public
    default: public
    description:
    - Endpoint URL type to fetch from the service catalog.
    type: str

client_key:
    aliases:
    - key
    description:
    - A path to a client key to use as part of the SSL transaction.
    type: str

api_timeout:
    description:
    - How long should the socket layer wait before timing out for API calls. If this is
      omitted, nothing will be passed to the requests library.
    type: int

client_cert:
    aliases:
    - cert
    description:
    - A path to a client certificate to use as part of the SSL transaction.
    type: str

region_name:
    description:
    - Name of the region.
    type: str

sdk_log_path:
    description:
    - Path to the logfile of the OpenStackSDK. If empty no log is written
    type: str

sdk_log_level:
    choices:
    - ERROR
    - WARN
    - INFO
    - DEBUG
    default: WARN
    description: Log level of the OpenStackSDK
    type: str

dedicated_host:
    description:
    - ID of a Dedicated Host
    required: true
    type: str

validate_certs:
    aliases:
    - verify
    description:
    - Whether or not SSL API requests should be verified.
    - Before Ansible 2.3 this defaulted to C(yes).
    type: bool

Outputs

deh_servers:
  description: Dictionary of ECSs on a Dedicated host
  returned: changed
  sample:
  - addresses:
      26ca2783-dc40-4e3a-95b1-5a0756441123:
      - OS-EXT-IPS-MAC:mac_addr: fa:16:3e:3d:b0:d3
        OS-EXT-IPS:type: fixed
        addr: 192.168.0.16
        version: 4
      - OS-EXT-IPS-MAC:mac_addr: fa:16:3e:3d:b0:d3
        OS-EXT-IPS:type: floating
        addr: 100.74.198.155
        version: 4
    created_at: '2020-09-30T09:59:01Z'
    flavor:
      disk: 0
      ephemeral: 0
      extra_specs:
        cond:compute: autorecovery
        cond:operation:az: az01(normal),az02(normal),az03(normal)
        cond:operation:status: abandon
        ecs:generation: s3
        ecs:performancetype: normal
        ecs:virtualization_env_types: CloudCompute
        hw:cpu_cores: '1'
        hw:cpu_sockets: '1'
        hw:cpu_threads: '1'
        hw:numa_nodes: '1'
        quota:conn_limit_total: '1000000'
        quota:disk_max_num: '60'
        quota:max_pps: '50000'
        quota:max_rate: '500'
        quota:min_rate: '100'
        quota:physics_max_rate: '13500'
        quota:scsi_disk_max_num: '60'
        quota:vbd_disk_max_num: '24'
        quota:vif_max_num: '12'
        quota:vif_multiqueue_num: '1'
        resource_type: IOoptimizedS2
        sched:policy: flat_balance
      id: s2.medium.1
      original_name: s2.medium.1
      ram: 1024
      swap: 0
      vcpus: 1
    id: a0c4d7d6-a2ae-4519-92d9-f0780e6f1123
    metadata:
      cascaded.instance_extrainfo: pcibridge:1
      charging_mode: '0'
      image_name: Standard_Ubuntu_20.04_latest
      metering.cloudServiceType: sys.service.type.ec2
      metering.image_id: c8983e9e-1dda-479a-9a95-b41fe325a123
      metering.imagetype: gold
      metering.resourcespeccode: deh.linux
      metering.resourcetype: '1'
      os_bit: '64'
      os_type: Linux
      vpc_id: 26ca2783-dc40-4e3a-95b1-5a0756441123
    name: my-ecs-on-deh
    status: ACTIVE
    tenant_id: 16d53a84a13b49529d2e2c3646691123
    updated_at: '2020-09-30T09:59:15Z'
    user_id: 18569c6d589c4be3a300b6401c74d123
  type: list