dellemc.openmanage.ome_application_console_preferences 模块 – 配置 OpenManage Enterprise 上的控制台首选项。
注意
此模块是 dellemc.openmanage 集合 (版本 9.9.0) 的一部分。
如果您使用的是 ansible
包,则可能已安装此集合。它不包含在 ansible-core
中。要检查是否已安装它,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install dellemc.openmanage
。您需要其他要求才能使用此模块,请参阅 要求 以了解详情。
要在剧本中使用它,请指定:dellemc.openmanage.ome_application_console_preferences
。
dellemc.openmanage 5.2.0 中的新增功能
概要
此模块允许用户配置 OpenManage Enterprise 上的控制台首选项。
要求
执行此模块的主机需要以下要求。
python >= 3.9.6
参数
参数 |
注释 |
---|---|
设备必须访问的外部网络共享,才能完成操作。 |
|
SMB 协议版本。 如果 share_options 为
选项
|
|
共享选项。
选项
|
|
包含用于验证的 CA 证书的隐私增强邮件 (PEM) 文件。 |
|
必须自动监控和更新 OpenManage Enterprise 仪表板上的设备运行状况的时间。 |
|
最近记录的设备运行状况。
选项
|
|
必须记录和存储设备运行状况数据的频率。 |
|
必须记录和存储设备运行状况数据的频率的时间单位。
选项
|
|
OpenManage Enterprise 用于识别已发现的 iDRAC 和其他设备的设备命名。 |
|
用逗号分隔的常用 MAC 地址。 |
|
适用于除 iDRAC 之外的所有已发现设备。
选项
|
|
用逗号分隔的无效主机名。 |
|
仅适用于 iDRAC。
选项
|
|
发送电子邮件的用户邮箱地址。 |
|
OpenManage Enterprise 或 OpenManage Enterprise Modular 的 IP 地址或主机名。 |
|
PowerManager 扩展数据维护和清除的频率。 |
|
机箱上线时的警报转发行为。
选项
|
|
OpenManage Enterprise 或 OpenManage Enterprise Modular 密码。 如果未提供密码,则使用环境变量 示例:export OME_PASSWORD=password |
|
OpenManage Enterprise 或 OpenManage Enterprise Modular 的 HTTPS 端口。 默认值: |
|
您可以在 OpenManage Enterprise 报告中查看的最大行数。 |
|
服务器启动的发现设置。 |
|
发现审批策略。
选项
|
|
陷阱目标设置。 选项
|
|
套接字级别超时(秒)。 默认值: |
|
陷阱转发格式。
使用 选项
|
|
OpenManage Enterprise 或 OpenManage Enterprise Modular 用户名。 如果未提供用户名,则使用环境变量 示例:export OME_USERNAME=用户名 |
|
如果为 仅在使用自签名证书的个人控制站点上配置 在收集版本 选项
|
|
身份验证令牌。 如果未提供 x_auth_token,则使用环境变量 示例:export OME_X_AUTH_TOKEN=x_auth_token |
注释
注意
此模块支持
check_mode
。
示例
---
- name: Update Console preferences with all the settings.
dellemc.openmanage.ome_application_console_preferences:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
report_row_limit: 123
device_health:
health_check_interval: 1
health_check_interval_unit: Hourly
health_and_power_state_on_connection_lost: last_known
discovery_settings:
general_device_naming: DNS
server_device_naming: IDRAC_HOSTNAME
invalid_device_hostname: "localhost"
common_mac_addresses: "::"
server_initiated_discovery:
device_discovery_approval_policy: Automatic
set_trap_destination: true
mx7000_onboarding_preferences: all
builtin_appliance_share:
share_options: CIFS
cifs_options: V1
email_sender_settings: "[email protected]"
trap_forwarding_format: Normalized
metrics_collection_settings: 31
- name: Update Console preferences with report and device health settings.
dellemc.openmanage.ome_application_console_preferences:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
report_row_limit: 236
device_health:
health_check_interval: 10
health_check_interval_unit: Hourly
health_and_power_state_on_connection_lost: last_known
- name: Update Console preferences with invalid device health settings.
dellemc.openmanage.ome_application_console_preferences:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
device_health:
health_check_interval: 65
health_check_interval_unit: Minutes
- name: Update Console preferences with discovery and built in appliance share settings.
dellemc.openmanage.ome_application_console_preferences:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
discovery_settings:
general_device_naming: DNS
server_device_naming: IDRAC_SYSTEM_HOSTNAME
invalid_device_hostname: "localhost"
common_mac_addresses: "00:53:45:00:00:00"
builtin_appliance_share:
share_options: CIFS
cifs_options: V1
- name: Update Console preferences with server initiated discovery, mx7000 onboarding preferences, email sender,
trap forwarding format, and metrics collection settings.
dellemc.openmanage.ome_application_console_preferences:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
server_initiated_discovery:
device_discovery_approval_policy: Automatic
set_trap_destination: true
mx7000_onboarding_preferences: chassis
email_sender_settings: "[email protected]"
trap_forwarding_format: Original
metrics_collection_settings: 365
返回值
常见的返回值已在此处记录,以下是此模块特有的字段
键 |
描述 |
---|---|
控制台首选项的详细信息。 返回:成功时 示例: |
|
HTTP 错误的详细信息。 返回:HTTP 错误时 示例: |
|
控制台首选项的总体状态。 返回:始终 示例: |