Skip to content
Snippets Groups Projects
Commit 6a83e1d7 authored by Mark Goddard's avatar Mark Goddard
Browse files

CI: Test bare metal compute registration

Change-Id: Iaef2420c1f12fa4296c0e1c3d5afc4687d4b3c4a
parent 617eed47
No related branches found
No related tags found
No related merge requests found
{% raw %}
---
ironic_driver: ipmi
# Cheating a little here - use the first port of the Tenks VirtualBMC.
ironic_driver_info:
ipmi_address: 0.0.0.0
ipmi_username: username
ipmi_password: password
ipmi_port: 6230
ironic_properties:
capabilities: "{{ ironic_capabilities }}"
ironic_resource_class: "example_resource_class"
ironic_capabilities: "boot_option:local,boot_mode:uefi"
{% endraw %}
[baremetal-compute]
hv100
......@@ -32,6 +32,16 @@
replace: 'default_boot_mode: "uefi"'
when: ironic_boot_mode == 'uefi'
- name: Ensure baremetal inventory exists
template:
src: baremetal.j2
dest: "{{ kayobe_config_src_dir }}/etc/kayobe/inventory/baremetal"
- name: Ensure baremetal-compute group_vars exists
template:
src: baremetal-compute.j2
dest: "{{ kayobe_config_src_dir }}/etc/kayobe/inventory/group_vars/baremetal-compute"
- name: Ensure kayobe is installed
shell:
cmd: dev/install.sh &> {{ logs_dir }}/ansible/install
......
......@@ -41,3 +41,11 @@
cmd: dev/overcloud-test-baremetal.sh &> {{ logs_dir }}/ansible/overcloud-test-baremetal
chdir: "{{ kayobe_src_dir }}"
executable: /bin/bash
- name: Register dummy baremetal compute nodes
shell:
cmd: >
source {{ kayobe_src_dir }}/dev/environment-setup.sh &&
source "${KOLLA_CONFIG_PATH:-/etc/kolla}/admin-openrc.sh" &&
kayobe baremetal compute register &> {{ logs_dir }}/ansible/baremetal-compute-register
executable: /bin/bash
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment