An installation used to be this one: the deploy scripts and the Ansible defaults carried one site's domain, hypervisor and login, the Proxmox side and the database were set up by hand, and deploying meant copying scripts and a tree of roles beside the binary and keeping them in step with it. The binary now carries the roles, the Terraform module, the schema and the catalogue (embed.go), and installs itself: - hpcod setup: a full-screen installer for administrators. It asks where clusters are built, signs in to Proxmox before asking anything else (root's password once, or tokens), offers nodes and datastores from what Proxmox has, checks every field as it is typed, runs every step with its output live, checks the result and offers a test cluster. -yes runs the same steps from a site file; make deploy uses that. - hpcod verify: each fact checked by using it. - hpcod selftest: the smallest real cluster, by the portal's own path, a job run on it, then taken down. - Closed networks: hpcod serves HTTPS itself from a CA name-constrained to the site's domains, issuing and renewing its own certificate, and answers DNS for the portal and every cluster name. - A simulated Proxmox: Proxmox VE in QEMU on the control plane host, on a private bridge with NAT, for trying it without one. Every step reads back what it changed and is safe to run again. The site's values live in one file; group_vars/all/site.yml is generated from it, and the playbooks refuse to run without it. ci_user and -ssh-user no longer default to a personal account. scripts/B10, B20 and C20 are gone: their work is the setup steps. Proven end to end on a simulated Proxmox (Proxmox VE 9 in a VM on a real host): the install, the Proxmox step by the password path, the head template, verify READY, and a test cluster that ran srun on its compute node and was destroyed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
94 lines
3.7 KiB
YAML
94 lines
3.7 KiB
YAML
---
|
|
# Defaults shared by every tenant.
|
|
#
|
|
# Nothing tenant-specific belongs in this file. Playbook-adjacent group_vars
|
|
# outrank an inventory's own group vars, so a value left here does not act as
|
|
# a default the inventory can override - it silently wins over it. The first
|
|
# version of this file carried tenant 1's addresses, and the second tenant was
|
|
# built with the first tenant's subnet: the playbook succeeded, and dhcpd then
|
|
# refused to start because no interface was on the network it was told to
|
|
# serve. The per-tenant fabric now comes from the generated inventory only,
|
|
# and site.yml asserts it is there.
|
|
|
|
warewulf_version: "4.7.0"
|
|
|
|
cluster_netmask: "255.255.255.0"
|
|
|
|
cluster_if: eth1 # head node NIC on the tenant fabric
|
|
uplink_if: eth0 # head node NIC on the management network
|
|
|
|
node_image_name: rocky-9
|
|
|
|
# node_image_uri, registry_host, ondemand_public_domain and
|
|
# ondemand_desktop_image are the site's, not the platform's, and live in
|
|
# site.yml beside this file. That file is generated from deploy/site.env by
|
|
# `hpcod setup` and is not in the repository: it used to be
|
|
# this one, carrying one installation's domain and registry into every
|
|
# other installation's head template.
|
|
|
|
# Pull credential for the site's registry. Read-only: a tenant head node needs
|
|
# to fetch the image and must not be able to publish one. Supplied from the
|
|
# control plane, never committed.
|
|
# Only used when the registry needs a credential. The default one does not:
|
|
# the image pulls anonymously, and a template builds with the token unset -
|
|
# the credential tasks skip and the import still succeeds. Kept for a site
|
|
# whose registry is private, empty here, because the best-handled secret is
|
|
# the one that is not in the path at all.
|
|
registry_pull_user: ""
|
|
registry_pull_token: "{{ lookup('env', 'HPCOD_REGISTRY_PULL_TOKEN') | default('', true) }}"
|
|
|
|
|
|
|
|
openhpc_release_url: "http://repos.openhpc.community/OpenHPC/3/EL_9/x86_64/ohpc-release-3-1.el9.x86_64.rpm"
|
|
compiler_module: gnu14
|
|
mpi_module: openmpi5
|
|
|
|
# One name per cluster, because accounting records are attributed by it.
|
|
# A constant here meant every cluster reported as the same one; pointed at a
|
|
# shared database that would merge their job records irreversibly.
|
|
slurm_cluster_name: "c{{ '%03d' | format(cluster_id | int) }}"
|
|
slurm_partition: normal
|
|
|
|
# Advertised below the VM's real memory: the node's root filesystem occupies
|
|
# roughly 2 GiB of RAM as tmpfs, and advertising the full amount would let
|
|
# Slurm oversubscribe a node into OOM.
|
|
# The node's root filesystem is a tmpfs, so this much RAM is gone before a
|
|
# job starts. Genuinely a constant of the Warewulf model, unlike the two
|
|
# below.
|
|
slurm_rootfs_reserve_mb: 2048
|
|
|
|
# Fallbacks, for a run with no cluster inventory - the golden template
|
|
# build, and nothing else. These were the real values until a cluster was
|
|
# built with one core per node and Slurm refused every one of them. A
|
|
# value here outranks an inventory's own group vars, so the cluster could
|
|
# not have corrected it even if it had tried.
|
|
slurm_node_realmemory: 4000
|
|
slurm_node_cores: 2
|
|
|
|
hpc_user: hpcuser
|
|
|
|
# Warewulf's stock system overlays, plus this cluster's own. Set explicitly
|
|
# rather than appended to whatever the profile happens to hold: on a fresh
|
|
# profile the field reads as the sentinel "--", and appending to that produced
|
|
# an overlay list containing a literal "--". Worse, replacing the list with
|
|
# just "hpc" drops wwinit, which is what puts /init into the image - without
|
|
# it the kernel panics with "unable to mount root fs", a long way from
|
|
# anything that mentions overlays.
|
|
warewulf_system_overlays:
|
|
- wwinit
|
|
- wwclient
|
|
- hosts
|
|
- fstab
|
|
- hostname
|
|
- ssh.host_keys
|
|
- issue
|
|
- resolv
|
|
- udev.netname
|
|
- systemd.netname
|
|
- ifcfg
|
|
- ifupdown
|
|
- NetworkManager
|
|
- wicked
|
|
- ignition
|
|
- hpc
|