dellemc.openmanage.ome_application_network_settings module – This module allows you to configure the session inactivity timeout settings

Note

This module is part of the dellemc.openmanage collection (version 4.4.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 dellemc.openmanage.

To use it in a playbook, specify: dellemc.openmanage.ome_application_network_settings.

New in version 4.4.0: of dellemc.openmanage

Synopsis

  • This module allows you to configure the session inactivity timeout settings on OpenManage Enterprise and OpenManage Enterprise Modular.

Parameters

Parameter

Comments

hostname

string / required

OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.

password

string / required

OpenManage Enterprise or OpenManage Enterprise Modular password.

port

integer

OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.

Default: 443

session_inactivity_timeout

dictionary

Session inactivity timeout settings.

api_sessions

integer

The maximum number of API sessions to be allowed.

api_timeout

float

Duration of inactivity in minutes after which the API session ends.

This is mutually exclusive with universal_timeout.

enable_universal_timeout

boolean

Enable or disable the universal inactivity timeout.

Choices:

  • no

  • yes

gui_sessions

integer

The maximum number of GUI sessions to be allowed.

gui_timeout

float

Duration of inactivity in minutes after which the web interface of Graphical User Interface (GUI) session ends.

This is mutually exclusive with universal_timeout.

serial_sessions

integer

The maximum number of serial console sessions to be allowed.

This is applicable only for OpenManage Enterprise Modular.

serial_timeout

float

Duration of inactivity in minutes after which the serial console session ends.

This is applicable only for OpenManage Enterprise Modular.

This is mutually exclusive with universal_timeout.

ssh_sessions

integer

The maximum number of SSH sessions to be allowed.

This is applicable to OME-M only.

ssh_timeout

float

Duration of inactivity in minutes after which the SSH session ends.

This is applicable only for OpenManage Enterprise Modular.

This is mutually exclusive with universal_timeout.

universal_timeout

float

Duration of inactivity in minutes after which all sessions end.

This is applicable when enable_universal_timeout is true.

This is mutually exclusive with api_timeout, gui_timeout, ssh_timeout and serial_timeout.

username

string / required

OpenManage Enterprise or OpenManage Enterprise Modular username.

Notes

Note

  • Run this module from a system that has direct access to Dell EMC OpenManage Enterprise or OpenManage Enterprise Modular.

  • To configure other network settings such as network address, web server, and so on, refer to the respective OpenManage Enterprise application network setting modules.

  • This module supports check_mode.

Examples

---
- name: Configure universal inactivity timeout
  ome_application_network_settings:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
    session_inactivity_timeout:
      enable_universal_timeout: true
      universal_timeout: 30
      api_sessions: 90
      gui_sessions: 5
      ssh_sessions: 2
      serial_sessions: 1

- name: Configure API and GUI timeout and sessions
  ome_application_network_settings:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
    session_inactivity_timeout:
      api_timeout: 20
      api_sessions: 100
      gui_timeout: 25
      gui_sessions: 5

- name: Configure timeout and sessions for all parameters
  ome_application_network_settings:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
    session_inactivity_timeout:
      api_timeout: 20
      api_sessions: 100
      gui_timeout: 15
      gui_sessions: 5
      ssh_timeout: 30
      ssh_sessions: 2
      serial_timeout: 35
      serial_sessions: 1

- name: Disable universal timeout and configure timeout and sessions for other parameters
  ome_application_network_settings:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
    session_inactivity_timeout:
      enable_universal_timeout: false
      api_timeout: 20
      api_sessions: 100
      gui_timeout: 15
      gui_sessions: 5
      ssh_timeout: 30
      ssh_sessions: 2
      serial_timeout: 35
      serial_sessions: 1

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

error_info

dictionary

Details of the HTTP Error.

Returned: on HTTP error

Sample: {“error”: {“@Message.ExtendedInfo”: [{“Message”: “The number of allowed concurrent sessions for API must be between 1 and 100 sessions.”, “MessageArgs”: [“API”, “1”, “100”], “MessageId”: “CUSR1233”, “RelatedProperties”: [], “Resolution”: “Enter values in the correct range and retry the operation.”, “Severity”: “Critical”}], “code”: “Base.1.0.GeneralError”, “message”: “A general error has occurred. See ExtendedInfo for more information.”}}

msg

string

Overall status of the Session timeout settings.

Returned: always

Sample: “Successfully updated the session timeout settings.”

session_inactivity_setting

dictionary

Returned when session inactivity timeout settings are updated successfully.

Returned: success

Sample: [{“MaxSessionTimeout”: 86400000, “MaxSessions”: 32, “MaxSessionsAllowed”: 100, “MaxSessionsConfigurable”: true, “MinSessionTimeout”: 60000, “MinSessionsAllowed”: 1, “SessionTimeout”: 99600, “SessionTimeoutConfigurable”: true, “SessionType”: “API”}, {“MaxSessionTimeout”: 7200000, “MaxSessions”: 6, “MaxSessionsAllowed”: 6, “MaxSessionsConfigurable”: true, “MinSessionTimeout”: 60000, “MinSessionsAllowed”: 1, “SessionTimeout”: 99600, “SessionTimeoutConfigurable”: true, “SessionType”: “GUI”}, {“MaxSessionTimeout”: 10800000, “MaxSessions”: 4, “MaxSessionsAllowed”: 4, “MaxSessionsConfigurable”: true, “MinSessionTimeout”: 60000, “MinSessionsAllowed”: 1, “SessionTimeout”: 99600, “SessionTimeoutConfigurable”: true, “SessionType”: “SSH”}, {“MaxSessionTimeout”: 86400000, “MaxSessions”: 1, “MaxSessionsAllowed”: 1, “MaxSessionsConfigurable”: false, “MinSessionTimeout”: 60000, “MinSessionsAllowed”: 1, “SessionTimeout”: 99600, “SessionTimeoutConfigurable”: true, “SessionType”: “Serial”}, {“MaxSessionTimeout”: 86400000, “MaxSessions”: 0, “MaxSessionsAllowed”: 0, “MaxSessionsConfigurable”: false, “MinSessionTimeout”: -1, “MinSessionsAllowed”: 0, “SessionTimeout”: -1, “SessionTimeoutConfigurable”: true, “SessionType”: “UniversalTimeout”}]

Authors

  • Sachin Apagundi(@sachin-apa)