mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Modules for managing HPE iLO (#3740)
* Adding HPE ilo modules * lint fix * symlink created * Fan message enhancement * Removed comments * Added uniform constuct * Update plugins/module_utils/redfish_utils.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/module_utils/redfish_utils.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/remote_management/redfish/ilo_redfish_config.py Co-authored-by: Felix Fontein <felix@fontein.de> * Added info module and minor changes * lint fixes * lint fixes * lint fixes * lint fixes * Added tests and modifed ilo_redfish_info * Modified tests * lint fix * result overwrite fixed * result overwrite fixed * Added result * Changed RESULT * Modified contains * Added License * lint fix * Changed RESULT * lint fix * Changed return * Changed return * Update plugins/modules/remote_management/redfish/ilo_redfish_info.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/remote_management/redfish/ilo_redfish_info.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/remote_management/redfish/ilo_redfish_info.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/remote_management/redfish/ilo_redfish_info.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/remote_management/redfish/ilo_redfish_config.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/remote_management/redfish/ilo_redfish_info.py Co-authored-by: Felix Fontein <felix@fontein.de> * Added - changed * Modified changed attribute * Changed modified * lint fix * Removed req * Minor changes * Update plugins/modules/remote_management/redfish/ilo_redfish_info.py Co-authored-by: Rajeevalochana Kallur <rajeevalochana.kallur@hpe.com> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
7cbe1bcf63
commit
8508e3fa6f
11 changed files with 715 additions and 39 deletions
1
tests/integration/targets/ilo_redfish_config/aliases
Normal file
1
tests/integration/targets/ilo_redfish_config/aliases
Normal file
|
@ -0,0 +1 @@
|
|||
unsupported
|
48
tests/integration/targets/ilo_redfish_config/tasks/main.yml
Normal file
48
tests/integration/targets/ilo_redfish_config/tasks/main.yml
Normal file
|
@ -0,0 +1,48 @@
|
|||
- name: Set NTP Servers
|
||||
ilo_redfish_config:
|
||||
category: Manager
|
||||
command: SetNTPServers
|
||||
baseuri: "{{ baseuri }}"
|
||||
username: "{{ username }}"
|
||||
password: "{{ password }}"
|
||||
attribute_name: StaticNTPServers
|
||||
attribute_value: 1.2.3.4
|
||||
|
||||
- name: Set DNS Server
|
||||
ilo_redfish_config:
|
||||
category: Manager
|
||||
command: SetDNSserver
|
||||
baseuri: "{{ baseuri }}"
|
||||
username: "{{ username }}"
|
||||
password: "{{ password }}"
|
||||
attribute_name: DNSServers
|
||||
attribute_value: 192.168.1.1
|
||||
|
||||
- name: Set Domain name
|
||||
ilo_redfish_config:
|
||||
category: Manager
|
||||
command: SetDomainName
|
||||
baseuri: "{{ baseuri }}"
|
||||
username: "{{ username }}"
|
||||
password: "{{ password }}"
|
||||
attribute_name: DomainName
|
||||
attribute_value: tst.sgp.hp.mfg
|
||||
|
||||
- name: Disable WINS Reg
|
||||
ilo_redfish_config:
|
||||
category: Manager
|
||||
command: SetWINSReg
|
||||
baseuri: "{{ baseuri }}"
|
||||
username: "{{ username }}"
|
||||
password: "{{ password }}"
|
||||
attribute_name: WINSRegistration
|
||||
|
||||
- name: Set TimeZone
|
||||
ilo_redfish_config:
|
||||
category: Manager
|
||||
command: SetTimeZone
|
||||
baseuri: "{{ baseuri }}"
|
||||
username: "{{ username }}"
|
||||
password: "{{ password }}"
|
||||
attribute_name: TimeZone
|
||||
attribute_value: Chennai
|
1
tests/integration/targets/ilo_redfish_info/aliases
Normal file
1
tests/integration/targets/ilo_redfish_info/aliases
Normal file
|
@ -0,0 +1 @@
|
|||
unsupported
|
|
@ -0,0 +1,8 @@
|
|||
- name: Get sessions
|
||||
ilo_redfish_info:
|
||||
category: Sessions
|
||||
command: GetiLOSessions
|
||||
baseuri: "{{ baseuri }}"
|
||||
username: "{{ username }}"
|
||||
password: "{{ password }}"
|
||||
register: result_sessions
|
Loading…
Add table
Add a link
Reference in a new issue