Skip to content

Commit 133f8ca

Browse files
authored
Merge pull request #614 from stackhpc/upstream/2025.1-2026-08-25
Synchronise 2025.1 with upstream
2 parents 47c301d + 7e2aa46 commit 133f8ca

33 files changed

Lines changed: 178 additions & 113 deletions

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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/idrac-bootstrap-one.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,10 @@
4545
- block:
4646
- name: Ensure DellOS6 switch interface is a member of the bootstrap VLAN
4747
dellos6_config:
48-
provider: "{{ dell_switch_provider }}"
4948
lines:
5049
- "switchport access vlan {{ idrac_bootstrap_vlan }}"
5150
parents:
5251
- "interface {{ switch_interface_name }}"
53-
delegate_to: localhost
5452
when: switch_type == 'dellos6'
5553

5654
# The tasks in this block are delegated to the controller.
@@ -170,12 +168,10 @@
170168
always:
171169
- name: Ensure DellOS6 switch iDRAC interface is a member of the management VLAN
172170
dellos6_config:
173-
provider: "{{ dell_switch_provider }}"
174171
lines:
175172
- "switchport access vlan {{ idrac_network_vlan }}"
176173
parents:
177174
- "interface {{ switch_interface_name }}"
178-
delegate_to: localhost
179175
when: switch_type == 'dellos6'
180176

181177
when: idrac_bootstrap_required

ansible/idrac-bootstrap.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
# interfaces to it.
117117
- role: dell-switch
118118
dell_switch_type: "{{ switch_type }}"
119-
dell_switch_provider: "{{ switch_dellos_provider }}"
120119
dell_switch_config:
121120
- "vlan {{ idrac_bootstrap_vlan }}"
122121
dell_switch_interface_config: "{{ switch_interface_config_bootstrap }}"
@@ -147,7 +146,6 @@
147146
include_tasks: idrac-bootstrap-one.yml
148147
vars:
149148
dell_switch_type: "{{ switch_type }}"
150-
dell_switch_provider: "{{ switch_dellos_provider }}"
151149
switch_interface_name: "{{ item.key }}"
152150
idrac_port_description: "{{ item.value.description }}"
153151
idrac_network_ip: "{{ idrac_network_ips[idrac_port_description] }}"
@@ -181,7 +179,6 @@
181179
# interfaces from it.
182180
- role: dell-switch
183181
dell_switch_type: "{{ switch_type }}"
184-
dell_switch_provider: "{{ switch_dellos_provider }}"
185182
dell_switch_config:
186183
- "no vlan {{ idrac_bootstrap_vlan }}"
187184
dell_switch_interface_config: "{{ switch_interface_config_bootstrap }}"

ansible/inventory/group_vars/all/switches/dell

Lines changed: 0 additions & 14 deletions
This file was deleted.

ansible/opensm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
- opensm
1313
roles:
1414
- role: opensm
15-
opensm_action: "{{ kayobe_action }}"
15+
opensm_action: "{{ kayobe_action | default('deploy') }}"

ansible/overcloud-introspection-data-save.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838
become: "{{ container_engine == 'podman' }}"
3939

4040
- name: Ensure introspection data output directory exists
41-
local_action:
42-
module: file
41+
delegate_to: localhost
42+
file:
4343
path: "{{ output_dir }}"
4444
state: directory
4545

4646
- name: Ensure introspection data is saved locally
47-
local_action:
48-
module: copy
47+
delegate_to: localhost
48+
copy:
4949
content: "{{ introspection_data_map[output_format | lower] }}"
5050
dest: "{{ output_dir }}/{{ inventory_hostname }}.{{ output_format | lower }}"
5151
when: save_result.rc == 0

ansible/overcloud-inventory-discover.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
ironic_inventory: "{{ inventory_result.stdout | from_json }}"
2424

2525
- name: Ensure Kayobe overcloud inventory exists
26-
local_action:
27-
module: copy
26+
delegate_to: localhost
27+
copy:
2828
content: |
2929
# Managed by Ansible - do not edit.
3030
# This is the Kayobe overcloud inventory, autogenerated from the seed

0 commit comments

Comments
 (0)