File tree Expand file tree Collapse file tree
etc/kayobe/environments/stackhpc-sushy-baremetal
inventory/group_vars/sushy-libvirt Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Sushy Baremetal Environment
22===========================
33This 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
55to be enrolled and managed by Openstack Ironic.
66This environment is based on the CI-AIO and stackhpc-baremetal environments.
77
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ libvirt-python
2+ sushy-tools
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 22
33ironic_redfish_system_id: "{{ '/redfish/v1/Systems/' + (inventory_hostname | to_uuid) }}"
44
5- redifsh_address: "http://192.168.33.3:34343"
65ironic_redfish_address: "192.168.33.3:34343"
76ironic_flat_provisioning_network: provision-net
You can’t perform that action at this time.
0 commit comments