Skip to content

Commit 2b61c99

Browse files
committed
gen_nodes: ensure kdevops prefix has no dashes
Folks trying to use kdevops and testing with fstests will quickly find out a surprise that their config is not being parsed correctly until later. Fix this by preventing bringup if the prefix has a dash. We use the dash to help parallelize testing filesystem profiles and so the host prefix goes before the filesystem name and test profile. Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 23193f0 commit 2b61c99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

playbooks/roles/gen_nodes/tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
command: "id -g -n"
1919
register: my_group
2020

21+
- name: Fail if kdevops_host_prefix contains a dash
22+
fail:
23+
msg: "Invalid kdevops_host_prefix '{{ kdevops_host_prefix }}'. The prefix cannot contain a dash ('-')."
24+
when: kdevops_host_prefix is search("-")
25+
2126
- name: Create guestfs directory
2227
ansible.builtin.file:
2328
path: "{{ guestfs_path }}"

0 commit comments

Comments
 (0)