Модуль dellemc.openmanage.idrac_attributes – Настройка атрибутов iDRAC.
Примечание
Этот модуль является частью коллекции dellemc.openmanage (версия 9.7.0).
Возможно, эта коллекция уже установлена, если вы используете пакет ansible. Она не включена в ansible-core. Чтобы проверить, установлена ли она, запустите ansible-galaxy collection list.
Для установки используйте: ansible-galaxy collection install dellemc.openmanage. Вам потребуются дополнительные требования для использования этого модуля, см. Требования для получения подробной информации.
Для использования в playbook, укажите: dellemc.openmanage.idrac_attributes.
Новое в dellemc.openmanage 6.0.0
Краткое описание
- Этот модуль позволяет настраивать атрибуты iDRAC.
Требования
Ниже приведены требования, необходимые на хосте, который выполняет этот модуль.
- python >= 3.9.6
Параметры
Параметр | Комментарии |
|---|---|
ca_path путь добавлено в dellemc.openmanage 5.0.0 | Файл Privacy Enhanced Mail (PEM), содержащий сертификат CA, который будет использоваться для проверки. |
idrac_attributes словарь | Словарь атрибутов iDRAC и значений. Атрибуты должны быть частью реестра атрибутов Integrated Dell Remote Access Controller. Чтобы просмотреть список атрибутов в реестре атрибутов для iDRAC9 и выше, см. https://I(idrac_ip/redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/DellAttributes/iDRAC.Embedded.1) и https://I(idrac_ip/redfish/v1/Registries/ManagerAttributeRegistry). Для серверов на базе iDRAC8 выведите имя атрибута менеджера из профиля конфигурации сервера. Если имя атрибута менеджера в профиле конфигурации сервера имеет вид <GroupName>.<Instance>#<AttributeName> (например, ‘SNMP.1#AgentCommunity’), то эквивалентное имя атрибута для Redfish — <GroupName>.<Instance>.<AttributeName> (например, ‘SNMP.1.AgentCommunity’). |
idrac_ip строка / обязательно | IP-адрес iDRAC. |
idrac_password псевдонимы: idrac_pwd строка | Пароль пользователя iDRAC. Если пароль не указан, используется переменная среды Пример: export IDRAC_PASSWORD=password |
idrac_port целое число | Порт iDRAC. По умолчанию: |
idrac_user строка | Имя пользователя iDRAC. Если имя пользователя не указано, используется переменная среды Пример: export IDRAC_USERNAME=username |
lifecycle_controller_attributes словарь | Словарь атрибутов контроллера жизненного цикла и значений. Атрибуты должны быть частью реестра атрибутов Integrated Dell Remote Access Controller. Чтобы просмотреть список атрибутов в реестре атрибутов для iDRAC9 и выше, см. https://I(idrac_ip/redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/DellAttributes/LifecycleController.Embedded.1) и https://I(idrac_ip/redfish/v1/Registries/ManagerAttributeRegistry). Для серверов на базе iDRAC8 выведите имя атрибута менеджера из профиля конфигурации сервера. Если имя атрибута менеджера в профиле конфигурации сервера имеет вид <GroupName>.<Instance>#<AttributeName> (например, ‘LCAttributes.1#AutoUpdate’), то эквивалентное имя атрибута для Redfish — <GroupName>.<Instance>.<AttributeName> (например, ‘LCAttributes.1.AutoUpdate’). |
resource_id строка | ID Redfish ресурса. |
system_attributes словарь | Словарь атрибутов системы и значений. Атрибуты должны быть частью реестра атрибутов Integrated Dell Remote Access Controller. Чтобы просмотреть список атрибутов в реестре атрибутов для iDRAC9 и выше, см. https://I(idrac_ip/redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/DellAttributes/System.Embedded.1) и https://I(idrac_ip/redfish/v1/Registries/ManagerAttributeRegistry). Для серверов на базе iDRAC8 выведите имя атрибута менеджера из профиля конфигурации сервера. Если имя атрибута менеджера в профиле конфигурации сервера имеет вид <GroupName>.<Instance>#<AttributeName> (например, ‘ThermalSettings.1#ThermalProfile’), то эквивалентное имя атрибута для Redfish — <GroupName>.<Instance>.<AttributeName> (например, ‘ThermalSettings.1.ThermalProfile’). |
timeout целое число добавлено в dellemc.openmanage 5.0.0 | Тайм-аут на уровне сокета в секундах. По умолчанию: |
validate_certs булево добавлено в dellemc.openmanage 5.0.0 | Если Настраивайте До версии коллекции Варианты:
|
x_auth_token строка добавлено в dellemc.openmanage 9.3.0 | Токен аутентификации. Если x_auth_token не указан, используется переменная среды Пример: export IDRAC_X_AUTH_TOKEN=x_auth_token |
Примечания
Примечание
- Запускайте этот модуль с системы, имеющей прямой доступ к Dell iDRAC.
- Этот модуль поддерживает
check_mode. - Для серверов на базе iDRAC8 указанные значения атрибутов не проверяются. Убедитесь, что передаются правильные значения.
Примеры
---
- name: Configure iDRAC attributes
dellemc.openmanage.idrac_attributes:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
idrac_attributes:
SNMP.1.AgentCommunity: public
- name: Configure System attributes
dellemc.openmanage.idrac_attributes:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
system_attributes:
ThermalSettings.1.ThermalProfile: Sound Cap
- name: Configure Lifecycle Controller attributes
dellemc.openmanage.idrac_attributes:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
lifecycle_controller_attributes:
LCAttributes.1.AutoUpdate: Enabled
- name: Configure the iDRAC attributes for email alert settings.
dellemc.openmanage.idrac_attributes:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
idrac_attributes:
EmailAlert.1.CustomMsg: Display Message
EmailAlert.1.Enable: Enabled
EmailAlert.1.Address: test@test.com
- name: Configure the iDRAC attributes for SNMP alert settings.
dellemc.openmanage.idrac_attributes:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
idrac_attributes:
SNMPAlert.1.Destination: 192.168.0.2
SNMPAlert.1.State: Enabled
SNMPAlert.1.SNMPv3Username: username
- name: Configure the iDRAC attributes for SMTP alert settings.
dellemc.openmanage.idrac_attributes:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
idrac_attributes:
RemoteHosts.1.SMTPServerIPAddress: 192.168.0.3
RemoteHosts.1.SMTPAuthentication: Enabled
RemoteHosts.1.SMTPPort: 25
RemoteHosts.1.SMTPUserName: username
RemoteHosts.1.SMTPPassword: password
- name: Configure the iDRAC attributes for webserver settings.
dellemc.openmanage.idrac_attributes:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
idrac_attributes:
WebServer.1.SSLEncryptionBitLength: 128-Bit or higher
WebServer.1.TLSProtocol: TLS 1.1 and Higher
- name: Configure the iDRAC attributes for SNMP settings.
dellemc.openmanage.idrac_attributes:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
idrac_attributes:
SNMP.1.SNMPProtocol: All
SNMP.1.AgentEnable: Enabled
SNMP.1.TrapFormat: SNMPv1
SNMP.1.AlertPort: 162
SNMP.1.AgentCommunity: public
- name: Configure the iDRAC LC attributes for collecting system inventory.
dellemc.openmanage.idrac_attributes:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
lifecycle_controller_attributes:
LCAttributes.1.CollectSystemInventoryOnRestart: Enabled
- name: Configure the iDRAC system attributes for LCD configuration.
dellemc.openmanage.idrac_attributes:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
system_attributes:
LCD.1.Configuration: Service Tag
LCD.1.vConsoleIndication: Enabled
LCD.1.FrontPanelLocking: Full-Access
LCD.1.UserDefinedString: custom string
- name: Configure the iDRAC attributes for Timezone settings.
dellemc.openmanage.idrac_attributes:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
idrac_attributes:
Time.1.Timezone: CST6CDT
NTPConfigGroup.1.NTPEnable: Enabled
NTPConfigGroup.1.NTP1: 192.168.0.5
NTPConfigGroup.1.NTP2: 192.168.0.6
NTPConfigGroup.1.NTP3: 192.168.0.7
- name: Configure all attributes
dellemc.openmanage.idrac_attributes:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
idrac_attributes:
SNMP.1.AgentCommunity: test
SNMP.1.AgentEnable: Enabled
SNMP.1.DiscoveryPort: 161
system_attributes:
ServerOS.1.HostName: demohostname
lifecycle_controller_attributes:
LCAttributes.1.AutoUpdate: Disabled
Возвращаемые значения
Общие возвращаемые значения описаны здесь, следующие — поля, уникальные для данного модуля:
Ключ | Описание |
|---|---|
error_info словарь | Информация об ошибке операции. Возвращается: при некорректном значении атрибута. Пример: |
invalid_attributes словарь | Словарь некорректных атрибутов. Возвращается: при некорректных атрибутах или значениях. Пример: |
msg строка | Статус операции обновления атрибута. Возвращается: всегда Пример: |
Ссылки на коллекцию
© 2012–2018 Michael DeHaan
© 2018–2024 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/dellemc/openmanage/idrac_attributes_module.html