ieisystem.inmanage.edit_kvm (1.1.1) — module

Set KVM

| "added in version" 1.0.0 of ieisystem.inmanage"

Authors: WangBaoshan (@ieisystem)

Install collection

Install with ansible-galaxy collection install ieisystem.inmanage:==1.1.1


Add to requirements.yml

  collections:
    - name: ieisystem.inmanage
      version: 1.1.1

Description

Set KVM on ieisystem Server.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: KVM test
  hosts: inmanage
  connection: local
  gather_facts: no
  vars:
    inmanage:
      host: "{{ ansible_ssh_host }}"
      username: "{{ username }}"
      password: "{{ password }}"

  tasks:

  - name: "Set KVM"
    ieisystem.inmanage.edit_kvm:
      kvm_encryption: "enable"
      media_attach: "auto"
      keyboard_language: "AD"
      retry_count: 13
      retry_time_interval: 10
      local_monitor_off: "enable"
      automatic_off: "enable"
      provider: "{{ inmanage }}"

Inputs

    
host:
    description:
    - Specifies the DNS host name or address for connecting to the remote device over
      the specified transport.  The value of host is used as the destination address for
      the transport.
    type: str

ssh_vnc:
    choices:
    - enable
    - disable
    description:
    - Enable/disable VNC over SSH in BMC.
    - Only the M6 model supports this parameter.
    - Required when I(client_type=vnc).
    type: str

password:
    description:
    - Specifies the password to use to authenticate the connection to the remote device.
      If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_PASSWORD)
      will be used instead.
    type: str

provider:
    description:
    - A dict object containing connection details.
    suboptions:
      host:
        description:
        - Specifies the DNS host name or address for connecting to the remote device over
          the specified transport.  The value of host is used as the destination address
          for the transport.
        type: str
      password:
        description:
        - Specifies the password to use to authenticate the connection to the remote device.
          If the value is not specified in the task, the value of environment variable
          C(ANSIBLE_NET_PASSWORD) will be used instead.
        type: str
      username:
        description:
        - Configures the username to use to authenticate the connection to the remote
          device. If the value is not specified in the task, the value of environment
          variable C(ANSIBLE_NET_USERNAME) will be used instead.
        type: str
    type: dict

username:
    description:
    - Configures the username to use to authenticate the connection to the remote device.
      If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_USERNAME)
      will be used instead.
    type: str

non_secure:
    choices:
    - enable
    - disable
    description:
    - Enable/disable Non Secure Connection Type.
    - Only the M6 model supports this parameter.
    - Required when I(client_type=vnc).
    type: str

client_type:
    choices:
    - vnc
    - viewer
    description:
    - Client Type.
    - Only the M6 model supports this parameter.
    type: str

retry_count:
    description:
    - Number of times to be retried in case a KVM failure occurs.Retry count ranges from
      1 to 20.
    - Only the M5 model supports this parameter.
    type: int

stunnel_vnc:
    choices:
    - enable
    - disable
    description:
    - Enable/disable VNC over Stunnel in BMC.
    - Only the M6 model supports this parameter.
    - Required when I(client_type=vnc).
    type: str

media_attach:
    choices:
    - attach
    - auto
    description:
    - Two types of VM attach mode are available.
    - Attach is Immediately attaches Virtual Media to the server upon bootup.
    - Auto is Attaches Virtual Media to the server only when a virtual media session is
      started.
    - Only the M5 model supports this parameter.
    type: str

automatic_off:
    choices:
    - enable
    - disable
    description:
    - Automatically OFF Server Monitor, When KVM Launches.
    type: str

kvm_encryption:
    choices:
    - enable
    - disable
    description:
    - Encrypt KVM packets.
    type: str

keyboard_language:
    choices:
    - AD
    - DA
    - NL-BE
    - NL-NL
    - GB
    - US
    - FI
    - FR-BE
    - FR
    - DE
    - DE-CH
    - IT
    - JP
    - 'ON'
    - PT
    - EC
    - SV
    - TR_F
    - TR_Q
    description:
    - Select the Keyboard Language.
    - AD is Auto Detect, DA is Danish, NL-BE is Dutch Belgium, NL-NL is Dutch Netherland.
    - GB is English UK , US is English US, FI is Finnish, FR-BE is French Belgium, FR
      is French France.
    - DE is German Germany, DE-CH is German Switzerland, IT is Italian, JP is Japanese.
    - NO is Norwegian, PT is Portuguese, ES is Spanish, SV is Swedish, TR_F is Turkish
      F, TR_Q is Turkish Q.
    type: str

local_monitor_off:
    choices:
    - enable
    - disable
    description:
    - Server Monitor OFF Feature Status.
    type: str

retry_time_interval:
    description:
    - The Identification for retry time interval configuration (5-30) seconds.
    - Only the M5 model supports this parameter.
    type: int

Outputs

changed:
  description: Check to see if a change was made on the device.
  returned: always
  type: bool
message:
  description: Messages returned after module execution.
  returned: always
  type: str
state:
  description: Status after module execution.
  returned: always
  type: str