-
Notifications
You must be signed in to change notification settings - Fork 1
/
idrac-telemetry.yml
executable file
·56 lines (54 loc) · 2.09 KB
/
idrac-telemetry.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
- hosts: all
connection: local
name: Configure Telemetry
gather_facts: False
vars:
idrac_attributes:
Telemetry.1.EnableTelemetry: "Enabled"
TelemetryPowerMetrics.1.EnableTelemetry: "Enabled"
TelemetryThermalMetrics.1.EnableTelemetry: "Enabled"
TelemetryThermalSensor.1.EnableTelemetry: "Enabled"
TelemetrySensor.1.EnableTelemetry: "Enabled"
TelemetryCUPS.1.EnableTelemetry: "Enabled" # Renamed to TelemetrySystemUsage in iDRAC 4.40
#TelemetrySystemUsage.1.EnableTelemetry: "Enabled"
TelemetryStorageDiskSMARTData.1.EnableTelemetry: "Enabled"
redfish_subscriptions:
- type: metric
state: present
destination: "https://192.168.1.105:8188"
- type: alert
state: present
destination: "https://192.168.1.105:8189"
vars_files:
- vault.yml
tasks:
- name: Set iDRAC Attributes
community.general.idrac_redfish_config:
baseuri: "{{ oob_host }}"
username: "{{ vault_oob_username }}"
password: "{{ vault_oob_password }}"
category: Manager
command: SetManagerAttributes
manager_attributes: "{{ idrac_attributes }}"
ignore_errors: True
- name: Import Server Configuration Profile
dellemc.openmanage.idrac_server_config_profile:
idrac_ip: "{{ oob_host }}"
idrac_user: "{{ vault_oob_username }}"
idrac_password: "{{ vault_oob_password }}"
share_name: "{{ playbook_dir }}"
command: "import" # import, export
scp_file: "iDRACEventFiltersRedfish.json"
scp_components: "ALL" # ALL, IDRAC, BIOS, NIC, RAID
shutdown_type: "Graceful" # Graceful, Forced, NoReboot
job_wait: False
- name: Manage Redfish Subscription
idrac_redfish_subscription: # Official module not released yet, using version from local /library
baseuri: "{{ oob_host }}"
username: "{{ vault_oob_username }}"
password: "{{ vault_oob_password }}"
destination: "{{ item.destination }}"
type: "{{ item.type }}"
state: "{{ item.state }}"
loop: "{{ redfish_subscriptions }}"