Skip to content

Commit

Permalink
cluster_setup_main: add a branch verification
Browse files Browse the repository at this point in the history
Add a task to verify we are configuring the target with a compatible
Ansible git branch.

Signed-off-by: Paul Le Guen de Kerneizon <[email protected]>
  • Loading branch information
Paullgk committed Mar 21, 2024
1 parent 485246b commit 1034a3e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions playbooks/cluster_setup_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@
# call.

---

- name: Check if we are using a correct seapath flavor
hosts:
- cluster_machines
- standalone_machine
- VMs
tasks:
- name: Retrieve Seapath system version
command: "uname -a"
register: "uname_output"

- name: Check if current Ansible branch is compatible
fail:
msg: "The current branch (main) is incompatible with the Debian version of SEAPATH. Please use the debian-main branch to configure this machine"
failed_when:
- uname_output.stdout | regex_search("Debian")

- import_playbook: cluster_setup_configure_hosts.yaml
- import_playbook: cluster_setup_ceph.yaml
- import_playbook: cluster_setup_libvirt.yaml
Expand Down

0 comments on commit 1034a3e

Please sign in to comment.