Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions a-universe-from-nothing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ kayobe overcloud hardware inspect
kayobe overcloud introspection data save
kayobe overcloud provision
kayobe overcloud host configure
kayobe overcloud host package update --packages '*'
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/reboot.yml
kayobe overcloud container image pull
kayobe overcloud service deploy
source ~/deployment/src/kayobe-config/etc/kolla/public-openrc.sh
Expand Down
18 changes: 18 additions & 0 deletions etc/kayobe/ansible/reboot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
- name: Reboot overcloud hosts if required
hosts: overcloud
tags:
- reboot
tasks:
- block:
- name: Check if hosts need restarting
ansible.builtin.command:
cmd: needs-restarting -r
failed_when: false
register: needs_restarting

- name: Reboot and wait
become: true
ansible.builtin.reboot:
when: needs_restarting.rc == 1
when: ansible_facts.os_family == 'RedHat'
2 changes: 1 addition & 1 deletion etc/kayobe/inventory/group_vars/compute/network-interfaces
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Controller interface on all-in-one network.
aio_interface: "br{{ aio_bridge_ports[0] }}"
aio_bridge_ports:
- "{{ 'ens2' if os_distribution == 'ubuntu' else 'eth0' }}"
- "{{ 'ens2' if os_distribution == 'ubuntu' or os_distribution in ['centos', 'rocky'] and (os_release | string).startswith('10') else 'eth0' }}"

# Route via the seed-hypervisor to the outside world.
aio_gateway: 192.168.33.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Controller interface on all-in-one network.
aio_interface: "br{{ aio_bridge_ports[0] }}"
aio_bridge_ports:
- "{{ 'ens2' if os_distribution == 'ubuntu' else 'eth0' }}"
- "{{ 'ens2' if os_distribution == 'ubuntu' or os_distribution in ['centos', 'rocky'] and (os_release | string).startswith('10') else 'eth0' }}"

# Route via the seed-hypervisor to the outside world.
aio_gateway: 192.168.33.4
Expand Down
2 changes: 1 addition & 1 deletion etc/kayobe/inventory/group_vars/seed/network-interfaces
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
###############################################################################
# Network interface definitions for the seed group.

aio_interface: "{{ 'ens2' if os_distribution == 'ubuntu' else 'eth0' }}"
aio_interface: "{{ 'ens2' if os_distribution == 'ubuntu' or os_distribution in ['centos', 'rocky'] and (os_release | string).startswith('10') else 'eth0' }}"

# Route via the seed-hypervisor to the outside world.
# FIXME: Circular reference between seed & seed-hypervisor?
Expand Down