Skip to content

Commit bf6db34

Browse files
committed
edits to the sushy baremetal readme and set up playbooks, removed redfish address var in group_vars/sushy-libvirt/ironic
1 parent ba251a7 commit bf6db34

5 files changed

Lines changed: 10 additions & 33 deletions

File tree

etc/kayobe/environments/stackhpc-sushy-baremetal/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Sushy Baremetal Environment
22
===========================
33
This environment creates a virtual baremetal node using libvirt and Sushy Redfish Emulator.
4-
The libvirt VM is exposed via a Redfish endpoint provided by Sushy which allow the node
4+
The libvirt VM is exposed via a Redfish endpoint provided by Sushy which allows the node
55
to be enrolled and managed by Openstack Ironic.
66
This environment is based on the CI-AIO and stackhpc-baremetal environments.
77

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,7 @@
11
---
2-
- hosts: localhost
3-
gather_facts: false
4-
5-
environment:
6-
VIRTUAL_ENV: "{{ lookup('env', 'VIRTUAL_ENV') }}"
7-
KAYOBE_CONFIG_PATH: "{{ lookup('env', 'KAYOBE_CONFIG_PATH') }}"
8-
9-
tasks:
10-
- name: Run Sushy 1 playbook
11-
ansible.builtin.shell: |
12-
source "$VIRTUAL_ENV/bin/activate"
13-
kayobe playbook run "$KAYOBE_CONFIG_PATH/environments/stackhpc-sushy-baremetal/ansible/sushy-1.yml"
14-
args:
15-
executable: /bin/bash
16-
17-
- name: Run Create Virtual Baremetal playbook
18-
ansible.builtin.shell: |
19-
source "$VIRTUAL_ENV/bin/activate"
20-
kayobe playbook run "$KAYOBE_CONFIG_PATH/environments/stackhpc-sushy-baremetal/ansible/create-virtual-baremetal.yml"
21-
args:
22-
executable: /bin/bash
23-
24-
- name: Run Sushy 2 playbook
25-
ansible.builtin.shell: |
26-
source "$VIRTUAL_ENV/bin/activate"
27-
kayobe playbook run "$KAYOBE_CONFIG_PATH/environments/stackhpc-sushy-baremetal/ansible/sushy-2.yml"
28-
args:
29-
executable: /bin/bash
2+
- name: Set up Sushy Host
3+
ansible.builtin.import_playbook: ./sushy-1.yml
4+
- name: Create Libvirt vBMC nodes
5+
ansible.builtin.import_playbook: ./create-virtual-baremetal.yml
6+
- name: Ensure Sushy Emulator is deployed
7+
ansible.builtin.import_playbook: ./sushy-2.yml
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
libvirt-python
2+
sushy-tools

etc/kayobe/environments/stackhpc-sushy-baremetal/ansible/sushy-2.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
state: enabled
2121
- name: Create Sushy virtualenv
2222
ansible.builtin.pip:
23-
name:
24-
- libvirt-python
25-
- sushy-tools
23+
requirements: "{{ sushy_directory }}/requirements.txt"
2624
virtualenv: /opt/kayobe/venvs/sushy
2725
virtualenv_command: python3 -m venv
2826

etc/kayobe/environments/stackhpc-sushy-baremetal/inventory/group_vars/sushy-libvirt/ironic

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
ironic_redfish_system_id: "{{ '/redfish/v1/Systems/' + (inventory_hostname | to_uuid) }}"
44

5-
redifsh_address: "http://192.168.33.3:34343"
65
ironic_redfish_address: "192.168.33.3:34343"
76
ironic_flat_provisioning_network: provision-net

0 commit comments

Comments
 (0)