-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the hardware type 'r640' that belongs to different racks
This PR adds support for only OSP17 Partially addresses #523
- Loading branch information
1 parent
e05bed9
commit 79b5e4c
Showing
4 changed files
with
59 additions
and
0 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
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,30 @@ | ||
# ocpinventory.json for MAC addresses | ||
--- | ||
- name: Download ocpinventory.json | ||
get_url: | ||
url: "{{ alias.lab_url }}/cloud/{{ cloud_name }}_ocpinventory.json" | ||
dest: ~/ | ||
mode: '0644' | ||
force: yes | ||
when: lab_name == "alias" | ||
|
||
- name: Download ocpinventory.json | ||
get_url: | ||
url: "{{ scale.lab_url }}/cloud/{{ cloud_name }}_ocpinventory.json" | ||
dest: ~/ | ||
mode: '0644' | ||
force: yes | ||
when: lab_name == "scale" | ||
|
||
- name: set fact for ocpinventory file | ||
set_fact: | ||
ocpinventory_file: "~/{{ cloud_name }}_ocpinventory.json" | ||
|
||
- name: load ocpinventory data | ||
slurp: | ||
src: "{{ ocpinventory_file }}" | ||
register: ocpinventory_data | ||
|
||
- name: read ocpinventory file | ||
set_fact: | ||
ocpinventory_content: "{{ ocpinventory_data['content'] | b64decode | from_json }}" |
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