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>
78 lines
3.9 KiB
YAML
78 lines
3.9 KiB
YAML
---
|
|
# Pinned. An unpinned portal version makes the template a moving target: two
|
|
# tenants built a month apart would get different software from the same
|
|
# playbook, and the first sign of it would be a behaviour difference nobody
|
|
# can account for.
|
|
ondemand_version: "4.2"
|
|
|
|
# The portal identifies itself by the tenant, so a user with access to two
|
|
# clusters can tell them apart.
|
|
# Named after the cluster, not its owner. A tenant may run several at once,
|
|
# and they cannot share a hostname any more than they can share a subnet.
|
|
ondemand_cluster_id: "c{{ '%03d' | format(cluster_id | int) }}"
|
|
|
|
# The management address, not the cluster fabric. head_mgmt_ip comes from
|
|
# Terraform via cloud-init; ansible_host is the fallback for a run driven
|
|
# from the control plane, where it is that same address. It cannot be only
|
|
# ansible_host: on the first-boot path the playbook runs locally and that
|
|
# variable is "localhost", which would have produced a certificate and a
|
|
# listen address for the wrong name.
|
|
# Two different names, and the distinction matters.
|
|
#
|
|
# listen_addr is where Apache binds: the management address, so the portal is
|
|
# on neither the tenant fabric nor the internet.
|
|
#
|
|
# servername is the name OnDemand believes it is reachable by, and it puts
|
|
# that name in every redirect it issues. Setting it to the listen address
|
|
# sent browsers to https://10.0.0.62/ - an address nobody outside can reach -
|
|
# the moment the portal was published through the control plane.
|
|
ondemand_listen_addr: "{{ head_mgmt_ip | default(ansible_host) }}"
|
|
# ondemand_public_domain is the site's: group_vars/all/site.yml.
|
|
ondemand_servername: "{{ ondemand_cluster_id }}.{{ ondemand_public_domain }}"
|
|
|
|
# The control plane's certificate, pinned as the only client this portal
|
|
# will talk to. Delivered through cloud-init; a public certificate, not a
|
|
# secret.
|
|
ondemand_client_ca: /etc/ood/control-plane.crt
|
|
|
|
# The desktop image, pulled into the shared /opt by the apps role. Kept out
|
|
# of the node image because the nodes hold their root filesystem in RAM.
|
|
ondemand_apps_dir: /opt/apps
|
|
ondemand_desktop_sif: /opt/apps/desktop.sif
|
|
# ondemand_desktop_image is the site's too: group_vars/all/site.yml.
|
|
ondemand_desktop_max_hours: 12
|
|
|
|
# What the desktop container needs from the node to be an HPC desktop
|
|
# rather than a picture of one.
|
|
#
|
|
# The Slurm client is bound in rather than installed: the container would
|
|
# then carry its own version, and a client that drifts from the
|
|
# controller fails as a protocol error rather than as a missing package.
|
|
# /etc/passwd and /etc/group come too - without them slurm.conf cannot be
|
|
# read at all ("Invalid user for SlurmUser slurm"), and the session would
|
|
# not know its own user either.
|
|
#
|
|
# /opt/ohpc is bound because the Slurm plugins say so themselves. The
|
|
# MPI plugin carries an RPATH of
|
|
# /opt/ohpc/pub/libs/hwloc/lib:/opt/ohpc/admin/pmix/lib, so binding
|
|
# /usr/lib64/slurm without that tree gets as far as dlopen and no
|
|
# further: MpiDefault is pmix, and plain "srun ls" in the desktop
|
|
# terminal died on "libhwloc.so.15: cannot open shared object file".
|
|
#
|
|
# Binding the OpenHPC tree is what the linker is already looking for,
|
|
# and it is the version-free answer. Naming /usr/lib64/libhwloc.so.15
|
|
# instead only looked right: the node happens to carry a distro copy
|
|
# and the head node does not, so a bind written against the node's
|
|
# file made the desktop fail to start anywhere else - and it pinned
|
|
# 15.4.1, a filename that changes under the next image rebuild.
|
|
ondemand_slurm_binds: >-
|
|
--bind /etc/slurm --bind /run/munge
|
|
--bind /etc/passwd --bind /etc/group
|
|
--bind /opt/ohpc
|
|
--bind /usr/lib64/slurm --bind /usr/lib64/libslurm.so.44
|
|
--bind /usr/lib64/libmunge.so.2
|
|
--bind /usr/bin/sacct --bind /usr/bin/salloc --bind /usr/bin/sbatch
|
|
--bind /usr/bin/scancel --bind /usr/bin/scontrol --bind /usr/bin/sdiag
|
|
--bind /usr/bin/sinfo --bind /usr/bin/sprio --bind /usr/bin/squeue
|
|
--bind /usr/bin/srun
|