Skip to content

Commit 235ffef

Browse files
authored
Merge pull request #496 from stackhpc/upstream/master-2025-11-17
Synchronise master with upstream
2 parents f3e26cf + 5367bc6 commit 235ffef

File tree

96 files changed

+800
-700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+800
-700
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright (c) 2025 StackHPC Ltd.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
4+
# not use this file except in compliance with the License. You may obtain
5+
# a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12+
# License for the specific language governing permissions and limitations
13+
# under the License.
14+
15+
__metaclass__ = type
16+
17+
import kayobe.plugins.action.template_content
18+
19+
ActionModule = kayobe.plugins.action.template_content.ActionModule

ansible/baremetal-compute-introspection-data-save.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
virtualenv: "{{ venv }}"
1111
name:
1212
- python-openstackclient
13-
- python-ironic-inspector-client
13+
- python-ironicclient
1414
state: latest
1515
virtualenv_command: python3.{{ ansible_facts.python.version.minor }} -m venv
1616
extra_args: "{% if pip_upper_constraints_file %}-c {{ pip_upper_constraints_file }}{% endif %}"
@@ -31,7 +31,7 @@
3131
tasks:
3232
- name: Query baremetal compute nodes' hardware introspection data
3333
command: >
34-
{{ venv }}/bin/openstack baremetal introspection data save {{ inventory_hostname }}
34+
{{ venv }}/bin/openstack baremetal node inventory save {{ inventory_hostname }}
3535
register: save_result
3636
changed_when: False
3737
# Ignore errors, log a message later.
@@ -44,14 +44,14 @@
4444
ansible_host: "{{ hostvars[controller_host].ansible_host | default(controller_host) }}"
4545

4646
- name: Ensure introspection data output directory exists
47-
local_action:
48-
module: file
47+
delegate_to: localhost
48+
file:
4949
path: "{{ output_dir }}"
5050
state: directory
5151

5252
- name: Ensure introspection data is saved locally
53-
local_action:
54-
module: copy
53+
delegate_to: localhost
54+
copy:
5555
content: "{{ introspection_data_map[output_format | lower] }}"
5656
dest: "{{ output_dir }}/{{ inventory_hostname }}.{{ output_format | lower }}"
5757
when: save_result.rc == 0

ansible/docker-registry.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
- docker-registry
1313
roles:
1414
- role: docker-registry
15-
docker_registry_action: "{{ kayobe_action }}"
15+
docker_registry_action: "{{ kayobe_action | default('deploy') }}"
1616
docker_registry_config_path: "{{ config_path }}/docker-registry"

ansible/drac-facts.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
- role: stackhpc.drac-facts
1212
tasks:
1313
- name: Gather facts via DRAC
14-
local_action:
15-
module: drac_facts
14+
delegate_to: localhost
15+
drac_facts:
1616
address: "{{ ipmi_address }}"
1717
username: "{{ ipmi_username }}"
1818
password: "{{ ipmi_password }}"
@@ -23,7 +23,7 @@
2323
var: result
2424

2525
- name: Write facts to a file
26-
local_action:
27-
module: copy
26+
delegate_to: localhost
27+
copy:
2828
content: "{{ result }}"
2929
dest: "/tmp/drac-facts-{{ inventory_hostname }}.json"

ansible/dump-config.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,27 @@
2020
dump_hosts: all
2121
tasks:
2222
- name: Create configuration dump directory
23-
local_action:
24-
module: file
23+
delegate_to: localhost
24+
file:
2525
path: "{{ dump_path }}"
2626
state: directory
2727

2828
- name: Write host config to file
29-
local_action:
30-
module: copy
29+
delegate_to: localhost
30+
copy:
3131
content: "{{ hostvars[inventory_hostname] | to_nice_yaml }}"
3232
dest: "{{ dump_path }}/{{ inventory_hostname }}.yml"
3333
when: dump_var_name is not defined
3434

3535
- name: Write host variable to file
36-
local_action:
37-
module: copy
36+
delegate_to: localhost
37+
copy:
3838
content: "{{ hostvars[inventory_hostname][dump_var_name] | to_nice_yaml }}"
3939
dest: "{{ dump_path }}/{{ inventory_hostname }}.yml"
4040
when: dump_var_name is defined
4141

4242
# - name: Write merged config to file
43-
# local_action:
44-
# module: copy
43+
# delegate_to: localhost
44+
# copy:
4545
# content: "{{ hostvars | merge_config | to_nice_yaml }}"
4646
# dest: "{{ dump_path }}/merged.yml

ansible/inventory/group_vars/all/bifrost

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ kolla_bifrost_extra_kernel_options: []
8989
###############################################################################
9090
# Ironic Inspector configuration.
9191

92-
# List of of inspector processing plugins.
93-
kolla_bifrost_inspector_processing_hooks: "{{ inspector_processing_hooks }}"
92+
# List of of inspector plugins.
93+
kolla_bifrost_inspector_hooks: "{{ inspector_hooks }}"
9494

9595
# Which MAC addresses to add as ports during introspection. One of 'all',
9696
# 'active' or 'pxe'.

ansible/inventory/group_vars/all/globals

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@ kayobe_ansible_user: "stack"
5252
# is "rocky".
5353
os_distribution: "rocky"
5454

55-
# OS release. Valid options are "9-stream" and "10-stream" (with "9-stream"
56-
# being the default) when os_distribution is "centos", "9" and "10" (with "9"
57-
# being the default) when os_distribution is "rocky", or "noble" when
58-
# os_distribution is "ubuntu".
55+
# OS release. Valid options are "10-stream" when os_distribution is "centos",
56+
# "10" when os_distribution is "rocky", or "noble" when os_distribution is
57+
# "ubuntu".
5958
os_release: >-
60-
{{ '9-stream' if os_distribution == 'centos'
61-
else '9' if os_distribution == 'rocky'
59+
{{ '10-stream' if os_distribution == 'centos'
60+
else '10' if os_distribution == 'rocky'
6261
else 'noble' }}
6362

6463
###############################################################################

ansible/inventory/group_vars/all/infra-vms

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,18 @@ infra_vm_root_format: qcow2
4343
# Base image for the infra VM root volume. Default is
4444
# "https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img"
4545
# when os_distribution is "ubuntu",
46-
# "https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2"
47-
# when os_distribution is "rocky" and os_release is "9",
4846
# "https://dl.rockylinux.org/pub/rocky/10/images/x86_64/Rocky-10-GenericCloud-Base.latest.x86_64.qcow2"
49-
# when os_distribution is "rocky" and os_release is "10",
50-
# "https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-9-latest.x86_64.qcow2"
51-
# when os_distribution is "centos" and os_release is "9-stream", or
47+
# when os_distribution is "rocky", or
5248
# "https://cloud.centos.org/centos/10-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-10-latest.x86_64.qcow2"
5349
# otherwise.
5450
infra_vm_root_image: >-
5551
{%- if os_distribution == 'ubuntu' %}
5652
https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
5753
{%- elif os_distribution == 'rocky' %}
58-
{%- if os_release == '9' %}
59-
https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2
60-
{%- else -%}
6154
https://dl.rockylinux.org/pub/rocky/10/images/x86_64/Rocky-10-GenericCloud-Base.latest.x86_64.qcow2
62-
{%- endif %}
63-
{%- else -%}
64-
{%- if os_release == '9-stream' %}
65-
https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-9-latest.x86_64.qcow2
6655
{%- else -%}
6756
https://cloud.centos.org/centos/10-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-10-latest.x86_64.qcow2
6857
{%- endif %}
69-
{%- endif %}
7058

7159
# Capacity of the infra VM data volume.
7260
infra_vm_data_capacity: 100G

0 commit comments

Comments
 (0)