Skip to content

Commit 9913ab5

Browse files
committed
Make fix-hostname playbook more generic
1 parent 6281412 commit 9913ab5

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

etc/kayobe/ansible/fix-hostname.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
- name: Fix hostname on storage nodes for cephadm
3-
hosts: storage
2+
- name: Fix hostname
3+
hosts: reboot_hosts
44
gather_facts: false
55
vars:
66
ansible_user: "{{ bootstrap_user }}"

etc/kayobe/environments/ci-aio/inventory/groups

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
[container-image-builders:children]
44
# Build container images on the all-in-one controller.
55
controllers
6+
7+
[reboot_hosts:children]
8+
controllers

etc/kayobe/inventory/groups

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ rgws
132132
[cis-hardening:children]
133133
overcloud
134134

135+
[reboot_hosts:children]
136+
storage
137+
135138
###############################################################################
136139
# Monitoring groups.
137140

terraform/aio/vm.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ resource "null_resource" "kayobe-aio" {
8989
# current images, /tmp is noexec, so the path must be changed
9090
script_path = "/home/${var.ssh_username}/start.sh"
9191
}
92-
9392
inline = [
9493
"#!/bin/sh",
9594
"echo 'connected!'"

0 commit comments

Comments
 (0)