Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Release 2.0.4
- Loading branch information
Showing
23 changed files
with
3,331 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
- hosts: hosts | ||
connection: local | ||
name: Dell OpenManage Ansible OME firmware baseline operations. | ||
gather_facts: False | ||
|
||
tasks: | ||
- name: create baseline from device Ids. | ||
ome_firmware_baseline: | ||
hostname: "{{hostname}}" | ||
username: "{{username}}" | ||
password: "{{password}}" | ||
baseline_name: "baseline_name" | ||
baseline_description: "baseline_description" | ||
catalog_name: "catalog_name" | ||
device_ids: | ||
- 1010 | ||
- 2020 | ||
|
||
- name: create baseline from servicetags. | ||
ome_firmware_baseline: | ||
hostname: "{{hostname}}" | ||
username: "{{username}}" | ||
password: "{{password}}" | ||
baseline_name: "baseline_name" | ||
baseline_description: "baseline_description" | ||
catalog_name: "catalog_name" | ||
device_service_tags: | ||
- "SVCTAG1" | ||
- "SVCTAG2" | ||
|
||
- name: create baseline from device groups. | ||
ome_firmware_baseline: | ||
hostname: "{{hostname}}" | ||
username: "{{username}}" | ||
password: "{{password}}" | ||
baseline_name: "baseline_name" | ||
baseline_description: "baseline_description" | ||
catalog_name: "catalog_name" | ||
group_names: | ||
- "Group1" | ||
- "Group2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
- hosts: hosts | ||
connection: local | ||
name: Dell OpenManage Ansible template inventory details. | ||
gather_facts: False | ||
|
||
tasks: | ||
- name: Retrieve baseline report for specific device IDs. | ||
ome_firmware_baseline_compliance_info: | ||
hostname: "{{hostname}}" | ||
username: "{{username}}" | ||
password: "{{password}}" | ||
device_ids: | ||
- 11111 | ||
- 22222 | ||
tags: device_ids | ||
|
||
- name: Retrieve baseline report for specific device service Tags. | ||
ome_firmware_baseline_compliance_info: | ||
hostname: "{{hostname}}" | ||
username: "{{username}}" | ||
password: "{{password}}" | ||
device_service_tags: | ||
- MXL1234 | ||
- MXL4567 | ||
tags: device_service_tags | ||
|
||
- name: Retrieve baseline report for specific group names. | ||
ome_firmware_baseline_compliance_info: | ||
hostname: "{{hostname}}" | ||
username: "{{username}}" | ||
password: "{{password}}" | ||
group_names: | ||
- group1 | ||
- group2 | ||
tags: group_names | ||
|
||
- name: Retrieve compliance report for a specific baseline. | ||
ome_firmware_baseline_compliance_info: | ||
hostname: "{{hostname}}" | ||
username: "{{username}}" | ||
password: "{{password}}" | ||
baseline_name: "baseline_name" | ||
report_type: "baseline_device" | ||
tags: baseline_device |
60 changes: 60 additions & 0 deletions
60
examples/ome_firmware_baseline_compliance_info_filters.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
- | ||
connection: local | ||
gather_facts: false | ||
hosts: hosts | ||
name: "OME - Ansible Modules" | ||
|
||
tasks: | ||
|
||
- name: "Retrieve baseline information for specific device ids." | ||
ome_firmware_baseline_compliance_info: | ||
hostname: "{{ hostname }}" | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
device_ids: | ||
- 11111 | ||
- 11112 | ||
register: result | ||
|
||
tags: | ||
- overall-compliance-report | ||
|
||
- name: "Firmware baseline compliance info based on FirmwareStatus - Non-Compliant" | ||
set_fact: | ||
non_compliance_fact: "{{ item }}" | ||
when: | ||
- item.DeviceComplianceReports.0.FirmwareStatus=='Non-Compliant' | ||
with_items: | ||
- "{{ result.baseline_compliance_info }}" | ||
loop_control: | ||
label: "{{ item.Name }} - {{ item.DeviceComplianceReports.0.FirmwareStatus }}" | ||
|
||
tags: | ||
- non-compliance-report | ||
|
||
- name: "Firmware baseline compliance info based on Device ID" | ||
set_fact: | ||
device_fact: "{{ item }}" | ||
when: | ||
- item.DeviceComplianceReports.0.DeviceId==11111 | ||
with_items: | ||
- "{{ result.baseline_compliance_info }}" | ||
loop_control: | ||
label: "{{ item.Name }} - {{ item.DeviceComplianceReports.0.DeviceId }}" | ||
|
||
tags: | ||
- device-id-report | ||
|
||
- name: "Firmware baseline compliance info based on Device Service Tag" | ||
set_fact: | ||
service_tag_fact: "{{ item }}" | ||
when: | ||
- item.DeviceComplianceReports.0.ServiceTag=='1X1X1' | ||
with_items: | ||
- "{{ result.baseline_compliance_info }}" | ||
loop_control: | ||
label: "{{ item.Name }} - {{ item.DeviceComplianceReports.0.ServiceTag }}" | ||
|
||
tags: | ||
- device-service-tag-report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
- hosts: hosts | ||
connection: local | ||
name: "OME - Create Catalog using Repository." | ||
gather_facts: False | ||
|
||
tasks: | ||
- name: create catalog from repository on a HTTPS. | ||
ome_firmware_catalog: | ||
hostname: "{{ hostname }}" | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
catalog_name: catalog1 | ||
catalog_description: catalog description | ||
source: downloads.company.com | ||
repository_type: HTTPS | ||
source_path: "catalog" | ||
file_name: "catalog.gz" | ||
check_certificate: True | ||
|
||
- name: create catalog from repository on a HTTP. | ||
ome_firmware_catalog: | ||
hostname: "{{ hostname }}" | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
catalog_name: "{{ catalog_name }}" | ||
catalog_description: catalog description | ||
source: downloads.company.com | ||
repository_type: HTTP | ||
source_path: "catalog" | ||
file_name: "catalog.gz" | ||
|
||
- name: create catalog from CIFS network share. | ||
dellemc_ome_job_facts: | ||
hostname: "{{ hostname }}" | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
catalog_name: "{{ catalog_name }}" | ||
catalog_description: catalog description | ||
source: "192.166.0.1" | ||
repository_type: CIFS | ||
source_path: "cifs/R940" | ||
file_name: "catalog.gz" | ||
repository_username: "{{ repository_username }}" | ||
repository_password: "{{ repository_password }}" | ||
repository_domain: "{{ repository_domain }}" | ||
|
||
- name: create catalog from NFS network share. | ||
dellemc_ome_job_facts: | ||
hostname: "{{ hostname }}" | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
catalog_name: "{{ catalog_name }}" | ||
catalog_description: catalog description | ||
source: "192.166.0.2" | ||
repository_type: NFS | ||
source_path: "/nfs/R940" | ||
file_name: "catalog.xml" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
- hosts: hosts | ||
vars: | ||
retries_count: 30 | ||
polling_interval: 15 #in seconds | ||
connection: local | ||
name: "OME - Catalog creation details tracking" | ||
gather_facts: False | ||
|
||
tasks: | ||
- name: "Triggers job for catalog creation." | ||
ome_firmware_catalog: | ||
hostname: "{{ hostname }}" | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
catalog_name: catalog1 | ||
catalog_description: HTTPS Desc | ||
source: downloads.company.com | ||
repository_type: HTTPS | ||
source_path: catalog | ||
file_name: catalog.gz | ||
register: result | ||
failed_when: "'catalog_status' not in result" | ||
|
||
- name: "Get job details using job id from ome firmware catalog creation." | ||
dellemc_ome_job_facts: | ||
hostname: "{{ hostname }}" | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
job_id: "{{ result.catalog_status.TaskId }}" | ||
register: job_result | ||
failed_when: "'job_facts' not in job_result" | ||
until: job_result.job_facts.LastRunStatus.Name == 'Completed' or job_result.job_facts.LastRunStatus.Name == 'Failed' | ||
retries: "{{ retries_count }}" | ||
delay: "{{ polling_interval }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file renamed
BIN
+86.5 KB
guides/OMAM_2.0.3_Install_Guide.pdf → guides/OMAM_2.0.4_Install_Guide.pdf
Binary file not shown.
Binary file not shown.
Oops, something went wrong.