Skip to content

Commit 2320e84

Browse files
committed
edits to baremetal scripts and ironic.yml
1 parent 1dc4ed8 commit 2320e84

File tree

7 files changed

+20
-137
lines changed

7 files changed

+20
-137
lines changed

etc/kayobe/environments/stackhpc-baremetal/ansible/baremetal-0-enroll-baremetal.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
ansible.builtin.assert:
3535
that:
3636
- ironic_driver is defined
37-
- ironic_driver_info is defined
37+
- ironic_redfish_address is defined
3838
- ironic_properties is defined
3939
- ironic_resource_class is defined
4040
fail_msg: One or more Ironic variables are undefined.
@@ -63,27 +63,31 @@
6363
--driver {{ ironic_driver }} \
6464
--driver-info redfish_system_id={{ ironic_redfish_system_id }} \
6565
--driver-info redfish_address={{ ironic_redfish_address }} \
66+
{% if ironic_redfish_username %}
6667
--driver-info redfish_username={{ ironic_redfish_username }} \
68+
{% endif %}
69+
{% if ironic_redfish_password %}
6770
--driver-info redfish_password={{ ironic_redfish_password }} \
71+
{% endif %}
6872
--driver-info redfish_verify_ca={{ ironic_redfish_verify_ca }} \
6973
{% for key, value in ironic_properties.items() %}
7074
--property {{ key }}={{ value }} \
7175
{% endfor %}
72-
--resource-class {{ ironic_resource_class }}
76+
--resource-class {{ ironic_resource_class }} \
7377
{% if ironic_boot_interface %}
74-
--boot-interface {{ ironic_boot_interface }}
78+
--boot-interface {{ ironic_boot_interface }} \
7579
{% endif %}
7680
{% if ironic_inspect_interface %}
77-
--inspect-interface {{ ironic_inspect_interface }}
81+
--inspect-interface {{ ironic_inspect_interface }} \
7882
{% endif %}
7983
{% if ironic_management_interface %}
80-
--management-interface {{ ironic_management_interface }}
84+
--management-interface {{ ironic_management_interface }} \
8185
{% endif %}
8286
{% if ironic_network_interface %}
83-
--network-interface {{ ironic_network_interface }}
87+
--network-interface {{ ironic_network_interface }} \
8488
{% endif %}
8589
{% if ironic_raid_interface %}
86-
--raid-interface {{ ironic_raid_interface }}
90+
--raid-interface {{ ironic_raid_interface }} \
8791
{% endif %}
8892
when:
8993
- node_show.rc != 0

etc/kayobe/environments/stackhpc-baremetal/ansible/baremetal-1-check-bmc-up.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ansible.builtin.assert:
1919
that:
2020
- ironic_driver is defined
21-
- ironic_driver_info is defined
21+
- ironic_redfish_address is defined
2222
- ironic_properties is defined
2323
- ironic_resource_class is defined
2424
fail_msg: One or more Ironic variables are undefined.
@@ -52,7 +52,7 @@
5252

5353
- name: Check BMC is up
5454
ansible.builtin.uri:
55-
url: "{{ ironic_driver_info['redfish_address'] + '/redfish/v1' }}"
55+
url: "{{ ironic_redfish_address + '/redfish/v1' }}"
5656
method: GET
5757
status_code: 200
5858
validate_certs: false
@@ -71,7 +71,7 @@
7171

7272
- name: Check BMC back up again
7373
ansible.builtin.uri:
74-
url: "{{ ironic_driver_info['redfish_address'] }}/redfish/v1"
74+
url: "{{ ironic_redfish_address + '/redfish/v1' }}"
7575
method: GET
7676
status_code: 200
7777
validate_certs: false

etc/kayobe/environments/stackhpc-baremetal/ansible/baremetal-2-ensure-redfish-inspect.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
- name: Check BMC is up
3636
ansible.builtin.uri:
37-
url: "{{ ironic_driver_info['redfish_address'] }}/redfish/v1"
37+
url: "{{ ironic_redfish_address + '/redfish/v1' }}"
3838
method: GET
3939
status_code: 200
4040
validate_certs: false

etc/kayobe/environments/stackhpc-baremetal/ansible/baremetal-3-ensure-agent-inspect.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
- name: Check BMC is up
3636
ansible.builtin.uri:
37-
url: "{{ ironic_driver_info['redfish_address'] + '/redfish/v1' }}"
37+
url: "{{ ironic_redfish_address + '/redfish/v1' }}"
3838
method: GET
3939
status_code: 200
4040
validate_certs: false

etc/kayobe/environments/stackhpc-baremetal/ansible/baremetal-4-clean.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
- name: Check BMC is up
3636
ansible.builtin.uri:
37-
url: "{{ ironic_driver_info['redfish_address'] }}/redfish/v1"
37+
url: "{{ ironic_redfish_address + '/redfish/v1' }}"
3838
method: GET
3939
status_code: 200
4040
validate_certs: false

etc/kayobe/environments/stackhpc-baremetal/inventory/group_vars/baremetal-redfish/ironic

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ ironic_driver: redfish
55
#these vars used to be within ironic_driver_info
66
ironic_redfish_system_id: "/redfish/v1/Systems/1"
77
ironic_redfish_address: "192.168.33.3:34343"
8-
ironic_redfish_username:
9-
ironic_redfish_password:
8+
ironic_redfish_username: ""
9+
ironic_redfish_password: ""
1010
ironic_redfish_verify_ca: false
1111

1212
ironic_resource_class: "example_resource_class"
Lines changed: 1 addition & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -1,135 +1,14 @@
11
---
2-
###############################################################################
3-
# Ironic configuration.
42

5-
# Specify the list of hardware types to load during service initialization.
6-
kolla_ironic_enabled_hardware_types:
7-
- redfish
8-
9-
# Specify the list of bios interfaces to load during service initialization.
10-
#kolla_ironic_enabled_bios_interfaces:
11-
12-
# Default bios interface to be used for nodes that do not have bios_interface
13-
# field set.
14-
#kolla_ironic_default_bios_interface:
15-
16-
# Specify the list of boot interfaces to load during service initialization.
17-
kolla_ironic_enabled_boot_interfaces:
18-
- redfish-virtual-media
19-
- redfish-https
20-
21-
# Default boot interface to be used for nodes that do not have boot_interface
22-
# field set.
23-
kolla_ironic_default_boot_interface: redfish-virtual-media
24-
25-
# Specify the list of console interfaces to load during service initialization.
26-
#kolla_ironic_enabled_console_interfaces:
27-
28-
# Default console interface to be used for nodes that do not have
29-
# console_interface field set.
30-
#kolla_ironic_default_console_interface:
31-
32-
# Specify the list of deploy interfaces to load during service initialization.
33-
#kolla_ironic_enabled_deploy_interfaces:
34-
35-
# Default deploy interface to be used for nodes that do not have
36-
# deploy_interface field set.
37-
#kolla_ironic_default_deploy_interface:
38-
39-
# Specify the list of inspect interfaces to load during service initialization.
403
kolla_ironic_enabled_inspect_interfaces:
414
- redfish
425
- agent
436

44-
# Default inspect interface to be used for nodes that do not have
45-
# inspect_interface field set.
46-
kolla_ironic_default_inspect_interface: redfish
47-
48-
# Specify the list of management interfaces to load during service
49-
# initialization.
507
kolla_ironic_enabled_management_interfaces:
518
- redfish
9+
- ipmitool
5210

53-
# Default management interface to be used for nodes that do not have
54-
# management_interface field set.
55-
#kolla_ironic_default_management_interface:
56-
57-
# Specify the list of network interfaces to load during service initialization.
5811
kolla_ironic_enabled_network_interfaces:
5912
- neutron
6013
- flat
6114
- noop
62-
63-
# Default network interface to be used for nodes that do not have
64-
# network_interface field set.
65-
kolla_ironic_default_network_interface: neutron
66-
67-
# Specify the list of power interfaces to load during service initialization.
68-
kolla_ironic_enabled_power_interfaces:
69-
- redfish
70-
71-
# Default power interface to be used for nodes that do not have power_interface
72-
# field set.
73-
#kolla_ironic_default_power_interface:
74-
75-
# Specify the list of raid interfaces to load during service initialization.
76-
#kolla_ironic_enabled_raid_interfaces:
77-
78-
# Default raid interface to be used for nodes that do not have
79-
# raid_interface field set.
80-
kolla_ironic_default_raid_interface: agent
81-
82-
# Specify the list of rescue interfaces to load during service initialization.
83-
#kolla_ironic_enabled_rescue_interfaces:
84-
85-
# Default rescue interface to be used for nodes that do not have
86-
# rescue_interface field set.
87-
#kolla_ironic_default_rescue_interface:
88-
89-
# Specify the list of storage interfaces to load during
90-
# service initialization.
91-
#kolla_ironic_enabled_storage_interfaces:
92-
93-
# Default storage interface to be used for nodes that do not
94-
# have storage_interface field set.
95-
#kolla_ironic_default_storage_interface:
96-
97-
# Specify the list of vendor interfaces to load during service initialization.
98-
#kolla_ironic_enabled_vendor_interfaces:
99-
100-
# Default vendor interface to be used for nodes that do not have
101-
# vendor_interface field set.
102-
#kolla_ironic_default_vendor_interface:
103-
104-
# Name of the Neutron network to use for cleaning.
105-
#kolla_ironic_cleaning_network:
106-
107-
# Name of the Neutron network to use for provisioning.
108-
#kolla_ironic_provisioning_network:
109-
110-
# List of default kernel parameters to append for baremetal PXE boot.
111-
#kolla_ironic_pxe_append_params_default:
112-
113-
# List of additional kernel parameters to append for baremetal PXE boot.
114-
#kolla_ironic_pxe_append_params_extra:
115-
116-
# List of kernel parameters to append for baremetal PXE boot.
117-
#kolla_ironic_pxe_append_params:
118-
119-
###############################################################################
120-
# Ironic Node Configuration
121-
122-
# Whether or not to enable the serial consoles on post configure
123-
#ironic_serial_console_autoenable:
124-
125-
# This defines the start of the range of TCP ports to used for the IPMI socat
126-
# serial consoles
127-
#ironic_serial_console_tcp_pool_start:
128-
129-
# This defines the end of the range of TCP ports to used for the IPMI socat
130-
# serial consoles
131-
#ironic_serial_console_tcp_pool_end:
132-
133-
###############################################################################
134-
# Dummy variable to allow Ansible to accept this file.
135-
workaround_ansible_issue_8743: yes

0 commit comments

Comments
 (0)