Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time_and_locale_branch #646

Merged
merged 91 commits into from
Mar 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
23573e6
refactored firmware drivers
Feb 23, 2021
03aabe5
modified library files
VenkateshRavula Feb 24, 2021
35c6557
updated library documentation
Feb 24, 2021
9a1ab07
modified msg string
VenkateshRavula Feb 24, 2021
68674d1
updated documentation
yuvirani Feb 26, 2021
7aed29e
time_and_locale_branch
SHANDCRUZ Feb 26, 2021
e167cf5
added_ssh_access
SHANDCRUZ Feb 26, 2021
eb59aad
modified UT
SHANDCRUZ Feb 26, 2021
a12a368
modified UT(2)
SHANDCRUZ Feb 26, 2021
72f4db4
modified facts library
Feb 26, 2021
40d869f
Update oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Feb 26, 2021
761a5fc
modified library and UTs
yuvirani Feb 26, 2021
e4d38cc
Update test_oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Feb 26, 2021
5b88bd1
Update test_oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Feb 26, 2021
04d015c
Update oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Feb 26, 2021
adf0823
fix UT1
Feb 27, 2021
db83dac
fix UT2
Feb 27, 2021
e21ae16
fix side effect UTs
Feb 27, 2021
af3c3c6
Update test_oneview_appliance_ssh_access_facts.py
SHANDCRUZ Feb 27, 2021
7c02b02
Update oneview_appliance_ssh_access_facts.py
SHANDCRUZ Feb 27, 2021
54b2dbf
Update oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Feb 27, 2021
5040e4c
Update oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Feb 27, 2021
f760b24
Update test_oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Feb 27, 2021
ffb750b
Update test_oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Feb 27, 2021
640e9b9
fix UTs3
Feb 27, 2021
b74f9d8
added side effect in UTs
Feb 27, 2021
d6c090d
added side effect in UT2
Feb 27, 2021
a9bbd68
changed return value
Feb 27, 2021
9dcb485
fixed flake8
Feb 27, 2021
5bc2083
Merge branch 'added_time_and_locale' of https://github.com/HewlettPac…
SHANDCRUZ Feb 27, 2021
0a7bdd2
modifed_library
SHANDCRUZ Feb 27, 2021
d04be6f
modified_UTs
SHANDCRUZ Feb 27, 2021
6045055
modified_UTs
SHANDCRUZ Feb 27, 2021
22d56d2
modified_UTs(4)
SHANDCRUZ Feb 27, 2021
6deca39
modified_UT's(5)
SHANDCRUZ Feb 27, 2021
19af70b
added_timeconfig_and_documentation
SHANDCRUZ Feb 27, 2021
2c7ef86
modified_module_loader
SHANDCRUZ Feb 27, 2021
a8a9539
Update test_oneview_appliance_configuration_timeconfig_facts.py
SHANDCRUZ Mar 1, 2021
f0af612
Update test_oneview_appliance_configuration_timeconfig_facts.py
SHANDCRUZ Mar 1, 2021
253fdbf
Update test_oneview_appliance_ssh_access_facts.py
SHANDCRUZ Mar 1, 2021
5812abc
Update test_oneview_appliance_ssh_access.py
SHANDCRUZ Mar 1, 2021
559ed58
Update oneview_appliance_ssh_access.py
SHANDCRUZ Mar 1, 2021
69068a6
modified_example
SHANDCRUZ Mar 1, 2021
e8694c7
Update oneview_appliance_ssh_access.yml
SHANDCRUZ Mar 1, 2021
d81aedc
Update oneview_appliance_ssh_access.yml
SHANDCRUZ Mar 1, 2021
c9374af
Update oneview_appliance_ssh_access.py
SHANDCRUZ Mar 1, 2021
8c235e3
Update oneview_appliance_ssh_access.yml
SHANDCRUZ Mar 1, 2021
be2eb42
Merge branch 'added_time_and_locale' of https://github.com/HewlettPac…
SHANDCRUZ Mar 1, 2021
11a36ac
added_new_test_case
SHANDCRUZ Mar 1, 2021
c1f6998
fixed_flake8
SHANDCRUZ Mar 1, 2021
01790e4
Update oneview_module_loader.py
SHANDCRUZ Mar 1, 2021
6254a43
modified_UTs
SHANDCRUZ Mar 1, 2021
562b17e
Merge branch 'added_time_and_locale' of https://github.com/HewlettPac…
SHANDCRUZ Mar 1, 2021
95d39a9
Fixed_UTs
SHANDCRUZ Mar 1, 2021
cceb241
fixed_UTs
SHANDCRUZ Mar 1, 2021
71fef52
Update test_oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Mar 1, 2021
fd4f82b
Update test_oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Mar 1, 2021
6716754
Update test_oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Mar 1, 2021
8570a95
Update test_oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Mar 1, 2021
66ddbf0
Update test_oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Mar 1, 2021
9b6b320
Update oneview_appliance_ssh_access.yml
SHANDCRUZ Mar 1, 2021
114b040
Update oneview_appliance_ssh_access.yml
SHANDCRUZ Mar 1, 2021
ed2bd44
Update test_oneview_appliance_ssh_access.py
SHANDCRUZ Mar 1, 2021
13add8e
Update oneview_appliance_ssh_access.yml
SHANDCRUZ Mar 1, 2021
0aac123
Update oneview_appliance_ssh_access.yml
SHANDCRUZ Mar 1, 2021
f16a04b
Update test_oneview_appliance_ssh_access.py
SHANDCRUZ Mar 1, 2021
f15cd74
Update test_oneview_appliance_ssh_access.py
SHANDCRUZ Mar 1, 2021
4648b39
Update oneview_appliance_ssh_access.py
SHANDCRUZ Mar 2, 2021
e8e2eb0
Update test_oneview_appliance_ssh_access.py
SHANDCRUZ Mar 2, 2021
14d417c
Update test_oneview_appliance_ssh_access.py
SHANDCRUZ Mar 2, 2021
32c0d71
Update test_oneview_appliance_ssh_access.py
SHANDCRUZ Mar 2, 2021
f971bff
Update test_oneview_appliance_ssh_access.py
SHANDCRUZ Mar 2, 2021
4887167
changed version in documentation
Mar 2, 2021
5caa774
Update test_oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Mar 2, 2021
8a8a9e7
Merge pull request #641 from HewlettPackard/Refactor_firmware_drivers
VenkateshRavula Mar 2, 2021
c914894
Merge branch 'master' into added_timeconfig
SHANDCRUZ Mar 2, 2021
ec3d33e
Merge pull request #648 from HewlettPackard/added_timeconfig
nabhajit-ray Mar 2, 2021
952d5e8
Update oneview_appliance_time_and_locale_configuration_facts.py
SHANDCRUZ Mar 2, 2021
a2a6c74
Update oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Mar 2, 2021
9da4d5b
Update oneview_appliance_ssh_access.py
SHANDCRUZ Mar 2, 2021
98d8caf
Update oneview_appliance_ssh_access_facts.py
SHANDCRUZ Mar 2, 2021
c73ec50
Merge pull request #647 from HewlettPackard/added_ssh_access
SHANDCRUZ Mar 2, 2021
1be35ef
branch_conflit
SHANDCRUZ Mar 2, 2021
3f6002b
Update oneview_module_loader.py
SHANDCRUZ Mar 2, 2021
7dcbe99
verison_changed
SHANDCRUZ Mar 2, 2021
26cd410
Merge branch 'added_time_and_locale' of https://github.com/HewlettPac…
SHANDCRUZ Mar 2, 2021
1453110
added_documentation
SHANDCRUZ Mar 2, 2021
37dea9a
fixed_flake8
SHANDCRUZ Mar 2, 2021
8931afc
Update oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Mar 2, 2021
5941cab
Update oneview-ansible.md
SHANDCRUZ Mar 2, 2021
49c96c8
Update oneview_appliance_time_and_locale_configuration.py
SHANDCRUZ Mar 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Ansible Modules for HPE OneView Change Log

## v6.0.0(unreleased)
This release extends the planned support of the modules to OneView REST API version 2600 (OneView v6.0)

### Modules supported in this release
- oneview_appliance_configuration_timeconfig
- oneview_appliance_ssh_access
- oneview_appliance_ssh_access_facts
- oneview_appliance_time_and_locale_configuration
- oneview_appliance_time_and_locale_configuration_facts
- oneview_firmware_driver
- oneview_firmware_driver_facts

## v5.10.0
This release extends the planned support of the modules to OneView REST API version 2400 (OneView v5.6).

Expand Down
24 changes: 15 additions & 9 deletions endpoints-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@

## HPE OneView

| Endpoints | Verb | V500 | V600 | V800 | V1000 | V1200 | V1600 | V1800 | V2000 | V2200 | V2400 |
| --------------------------------------------------------------------------------------- | -------- | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: |
| Endpoints | Verb | V500 | V600 | V800 | V1000 | V1200 | V1600 | V1800 | V2000 | V2200 | V2400 | V2600 |
| --------------------------------------------------------------------------------------- | -------- | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: | :------------------: |
| **Alerts** |
|<sub>/rest/alerts </sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| **Appliance Device Read Community String** |
|<sub>/rest/appliance/device-read-community-string</sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/appliance/device-read-community-string</sub> |PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| **Appliance Configuration Timeconfig**
|<sub>/rest/appliance/configuration/timeconfig/locales</sub> |GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
| **Appliance SNMPv1 Trap Destinations** |
|<sub>/rest/appliance/trap-destinations</sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/appliance/trap-destinations/validation</sub> |POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |
Expand All @@ -47,8 +49,11 @@
|<sub>/rest/appliance/snmpv3-trap-forwarding/users/{id}</sub> |PUT | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/appliance/snmpv3-trap-forwarding/users/{id}</sub> |DELETE | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
| **Appliance Time and Locale Configuration** |
|<sub>/rest/appliance/configuration/time-locale</sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/appliance/configuration/time-locale</sub> |POST | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/appliance/configuration/time-locale</sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/appliance/configuration/time-locale</sub> |POST | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| **Appliance SSH Access**
|<sub>/rest/appliance/ssh-access</sub> |GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/appliance/ssh-access</sub> |PUT | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
| **Certificates Server**
|<sub>/rest/certificates/servers</sub> |POST | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/certificates/https/remote/example.com</sub> |GET | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
Expand Down Expand Up @@ -133,14 +138,15 @@
|<sub>/rest/fcoe-networks/{id}</sub> | PATCH | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: |
|<sub>/rest/fcoe-networks/{id}</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/fcoe-networks/{id}</sub> | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/fcoe-networks/bulk-delete</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/fcoe-networks/bulk-delete</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| **Firmware Bundles** |
|<sub>/rest/firmware-bundles</sub> | POST | :white_check_mark: |
| **Firmware Drivers** |
|<sub>/rest/firmware-drivers</sub> | GET | :white_check_mark: |
|<sub>/rest/firmware-drivers</sub> | POST | :white_check_mark: |
|<sub>/rest/firmware-drivers/{id}</sub> | GET | :white_check_mark: |
|<sub>/rest/firmware-drivers/{id}</sub> | DELETE | :white_check_mark: |
|<sub>/rest/firmware-drivers</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|<sub>/rest/firmware-drivers</sub> | POST | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|<sub>/rest/firmware-drivers/schema</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|<sub>/rest/firmware-drivers/{id}</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
|<sub>/rest/firmware-drivers/{id}</sub> | DELETE | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |
| **Hypervisor Cluster Profiles**
|<sub>/rest/hypervisor-cluster-profiles</sub> |POST | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/hypervisor-cluster-profiles</sub> |GET | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
Expand Down
26 changes: 26 additions & 0 deletions examples/oneview_appliance_configuration_timeconfig_facts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
###
# Copyright (2021) Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###
---
- hosts: all
vars:
- config: "{{ playbook_dir }}/oneview_config.json"
tasks:
- name: Gather facts about the Appliance configuration Timeconfig
oneview_appliance_configuration_timeconfig_facts:
config: "{{ config }}"
delegate_to: localhost

- debug: var=appliance_configuration_timeconfig
37 changes: 37 additions & 0 deletions examples/oneview_appliance_ssh_access.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
###
# Copyright (2021) Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###
---
- hosts: all
vars:
- config: "{{ playbook_dir }}/oneview_config.json"
tasks:
- name: Ensures the Appliance SSH Access is false
oneview_appliance_ssh_access:
config: "{{ config }}"
state: present
data:
allowSshAccess: False
delegate_to: localhost
- debug: var=appliance_ssh_access

- name: Ensures the Appliance SSH Access is true
oneview_appliance_ssh_access:
config: "{{ config }}"
state: present
data:
allowSshAccess: True
delegate_to: localhost
- debug: var=appliance_ssh_access
29 changes: 27 additions & 2 deletions examples/oneview_appliance_time_and_locale_configuration.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###
# Copyright (2017) Hewlett Packard Enterprise Development LP
# Copyright (2021) Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
Expand All @@ -18,7 +18,31 @@
vars:
- config: "{{ playbook_dir }}/oneview_config.json"
tasks:
- name: Ensures the Appliance time and locale configuration locale is en_US.UTF-8
- name: Add the Appliance time and locale configuration locale is ja_JP.UTF-8
oneview_appliance_time_and_locale_configuration:
config: "{{ config }}"
state: present
data:
locale: ja_JP.UTF-8
ntpServers: [16.110.135.123]
timezone: UTC
type: TimeAndLocale
delegate_to: localhost
- debug: var=appliance_time_and_locale_configuration

- name: Ensures the Appliance time and locale configuration locale is ja_JP.UTF-8 is already present
oneview_appliance_time_and_locale_configuration:
config: "{{ config }}"
state: present
data:
locale: ja_JP.UTF-8
ntpServers: [16.110.135.123]
timezone: UTC
type: TimeAndLocale
delegate_to: localhost
- debug: var=appliance_time_and_locale_configuration

- name: Change the Appliance time and locale configuration locale to en_US.UTF-8
oneview_appliance_time_and_locale_configuration:
config: "{{ config }}"
state: present
Expand All @@ -28,3 +52,4 @@
timezone: UTC
type: TimeAndLocale
delegate_to: localhost
- debug: var=appliance_time_and_locale_configuration
18 changes: 14 additions & 4 deletions examples/oneview_firmware_driver.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###
# Copyright (2016-2017) Hewlett Packard Enterprise Development LP
# Copyright (2021) Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
Expand All @@ -17,9 +17,9 @@
- hosts: all
vars:
config: "{{ playbook_dir }}/oneview_config.json"
firmware_name: "<custom_firmware_name>" # provide your firwmare name here
baseline_firmware_name: "<SPP_baseline_name>" # provide the name of the SPP to be used as base for the custom SPP creation
hotfix_firmware_list: [<list_containing_URIs_to_hotfixes_desired>] # provide array containing list of hotfixes to be included in the custom SPP
firmware_name: "custom_ansible_firmware" # provide your firwmare name here
baseline_firmware_name: "Service Pack for Synergy" # provide the name of the SPP to be used as base for the custom SPP creation
hotfix_firmware_list: ["hotfix1", "hotfix2"] # provide array containing list of hotfixes to be included in the custom SPP
tasks:
- name: Create the Firmware Driver
oneview_firmware_driver:
Expand All @@ -31,6 +31,16 @@
hotfixNames: "{{ hotfix_firmware_list }}"
delegate_to: localhost

- name: Create the Firmware Driver if already present
oneview_firmware_driver:
config: "{{ config }}"
state: present
data:
customBaselineName: "{{ firmware_name }}"
baselineName: "{{ baseline_firmware_name }}"
hotfixNames: "{{ hotfix_firmware_list }}"
delegate_to: localhost

- name: Delete the Firmware Driver
oneview_firmware_driver:
config: "{{ config }}"
Expand Down
18 changes: 15 additions & 3 deletions examples/oneview_firmware_driver_facts.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###
# Copyright (2016-2017) Hewlett Packard Enterprise Development LP
# Copyright (2021) Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
Expand All @@ -21,6 +21,7 @@
- name: Gather facts about all Firmware Drivers
oneview_firmware_driver_facts:
config: "{{ config }}"
delegate_to: localhost

- debug: var=firmware_drivers

Expand All @@ -31,12 +32,23 @@
start: 0
count: 3
sort: 'name:descending'
delegate_to: localhost

- debug: var=firmware_drivers

- name: Gather facts about a Firmware Driver by name
oneview_firmware_driver_facts:
config: "{{ config }}"
name: "Service Pack for ProLiant.iso"
name: "custom_firmware_bundle"
delegate_to: localhost

- debug: var=firmware_drivers[0]['uri']
- debug: var=firmware_drivers

- name: Gather facts about Firmware Driver with options
oneview_firmware_driver_facts:
config: "{{ config }}"
options:
- schema
delegate_to: localhost

- debug: var=schema
Loading