Installer settings

The guided install is on Install nextPYP, and that’s the friendliest way in. This page is for when you want to script the install, passing every setting on the command line, and it also has the full list of PYP_* variables for when you need to look one up.

From the command line

The same ./install takes its answers as PYP_* variables. Any PYP_* setting on the command line turns the questions off, and the installer then uses different defaults from the wizard:

Setting

Wizard

Command line, when not given

PYP_INSTALL_DEPS

asks, default yes

Apptainer is not installed. The install stops with Apptainer is not installed. Pass PYP_INSTALL_DEPS=true.

PYP_CREATE

true

unset: every folder you name must already exist. Pass PYP_CREATE=true to create them.

PYP_AUTH

login

none: no login page, single-user mode. Pass PYP_AUTH=login.

PYP_FETCH

background

foreground on a fresh directory: the installer waits for the compute container download (tens of GiB). Pass PYP_FETCH=background. A directory that already has installed.toml, local/, shared/, or config.toml downloads in the background. Pass PYP_FETCH=wait to wait.

PYP_PROFILE

cluster when sbatch is on PATH, otherwise workstation

With ./install --interactive, cluster or workstation forces that question set (needed when sbatch is not on PATH). Without --interactive, the setting alone skips the questions; the layout then follows the folder variables (PYP_STORAGE vs PYP_SHARED_DATA / PYP_SHARED_EXEC), and [slurm] is written when PYP_SLURM_HOST or PYP_SLURM_LOCAL=true is set.

Tip

A command-line run on a fresh directory prints the rows from this table that apply to it, under Command-line install. These defaults differ from the wizard's:, before it changes anything. Set the variable, or stop the run with Ctrl-C, if a listed default is not what you want.

Note

A cluster install (PYP_SLURM_HOST set) with PYP_REMOTE=false is refused: compute nodes could not reach a website bound to 127.0.0.1.

A few things worth knowing:

  • ./install --yes keeps the wizard defaults and does not ask.

  • ./install --non-interactive never asks and never reads a terminal.

  • A root run that is not under sudo must also pass PYP_ADMIN=<login> (or PYP_ALLOW_ROOT_OWNER=true) to name who owns the program files.

Here are some starting points you can adapt. First, a regular account, accepting every wizard default:

mkdir -p ~/nextPYP
cd ~/nextPYP
wget -O install https://nextpyp.app/files/pyp/latest/install
chmod u+x install
./install --yes
mkdir -p ~/nextPYP
cd ~/nextPYP
curl -fsS -o install https://nextpyp.app/files/pyp/latest/install
chmod u+x install
./install --yes

An administrator account on a workstation:

sudo mkdir -p /opt/nextpyp
cd /opt/nextpyp
sudo wget -O install https://nextpyp.app/files/pyp/latest/install
sudo chmod u+x install
sudo PYP_USER=nextpyp PYP_STORAGE=/large-storage/nextpyp \
  PYP_INSTALL_DEPS=true PYP_CREATE=true PYP_AUTH=login PYP_FETCH=background \
  ./install --non-interactive
sudo mkdir -p /opt/nextpyp
cd /opt/nextpyp
sudo curl -fsS -o install https://nextpyp.app/files/pyp/latest/install
sudo chmod u+x install
sudo PYP_USER=nextpyp PYP_STORAGE=/large-storage/nextpyp \
  PYP_INSTALL_DEPS=true PYP_CREATE=true PYP_AUTH=login PYP_FETCH=background \
  ./install --non-interactive

An administrator account on a web server that submits to a SLURM login node over SSH. PYP_STORAGE must not be set here: it would put every folder under one local path. The shared and scratch folders already exist (see Cluster folders). Name CPU and GPU partitions in the SLURM template, not in the installer:

sudo PYP_USER=nextpyp \
  PYP_SHARED_DATA=/nfs/nextpyp/shared \
  PYP_SHARED_EXEC=/nfs/nextpyp/sharedExec \
  PYP_LOCAL=/opt/nextpyp/local \
  PYP_SCRATCH=/scratch/nextpyp \
  PYP_SLURM_HOST=slurm-login.example.org PYP_SLURM_PATH=/usr/bin \
  PYP_REMOTE=true PYP_AUTH=login \
  PYP_WEBHOST=http://nextpyp-web.example.org:8080 \
  PYP_INSTALL_DEPS=true PYP_CREATE=true PYP_FETCH=background \
  ./install --non-interactive

When the web server itself runs sbatch, replace the two PYP_SLURM_* lines with PYP_SLURM_LOCAL=true.

  • Re-running ./install after a finished install prints nextPYP is already installed. Nothing to do. and exits.

  • A folder that already has program files such as nextPYP.sif but no installed.toml is an older installation: ./install stops with This folder already has an older nextPYP installation. and tells you to run ./install --replace. That replaces the program files and keeps the existing config.toml. The old program files are kept as a release of their own under releases/ and the database is snapshotted first, so sudo nextpyp rollback goes back to them; the closing lines print that command. --replace also writes the systemd unit, the nextpyp command and the sudo rule again.

Note

PYP_* settings are not applied to an existing configuration. --force does the same. Change settings with nextpyp config set (Operate) and upgrade with nextpyp upgrade (Upgrade).

Turn login on after a command-line install

A wizard install already uses login mode. A command-line install that did not pass PYP_AUTH=login opens the website with no login page at all, so it’s worth a quick check. Run nextpyp config get web.auth. If it prints none, set login and restart. Use sudo on an administrator install, or ./nextpyp from the install folder on a regular-account install:

sudo nextpyp config set web.auth login
sudo nextpyp restart

Then open the website and create the administrator account as described on Install nextPYP. reverse-proxy is the other login mode; see Enable remote access.

Settings

Here is every setting ./install accepts. Wizard is the value the questions default to; Command line is what applies when the variable is not given and the questions are off. When the two are the same, one value is shown.

PYP_INSTALL_DIR

Default /opt/nextpyp when that directory is writable, otherwise the directory where ./install was started. For Downloads and /tmp the wizard asks whether to use it anyway; a command-line install warns and goes on.

PYP_USER

Wizard: nextpyp when the installer is root. Command line as root: required, unless PYP_CREATE=true (then nextpyp is created) or existing shared data names its owner. A regular account is not asked: the install runs as that login. On a cluster, this is usually an existing directory (LDAP) login with the same UID on every host; see PYP_ALLOW_LOGIN_SERVICE.

PYP_ALLOW_LOGIN_SERVICE

Default unset. When true, a normal login UID may be the service account on a workstation install. PYP_PROFILE=cluster already allows that without this flag, because cluster installs need a directory account that can SSH to the login node.

PYP_GROUP

The service account’s existing group, or a group of the same name. Asked only for a root install, and not asked when a group named after the account exists.

PYP_ADMIN and PYP_ADMIN_GROUP

The login that owns the program files, and a group whose members may run nextpyp upgrade and the other administrator commands. Under sudo the administrator is the login that ran sudo. A direct root login must set PYP_ADMIN or PYP_ALLOW_ROOT_OWNER=true. See Security.

PYP_INSTALL_DEPS

Wizard: asks when Apptainer, or both wget and curl, is missing; default yes. Command line: unset, nothing is installed.

PYP_CREATE

Wizard: true. Command line: unset, so every named folder must exist. A folder on a disk smaller than the installer’s minimum is refused until PYP_HERE_OK=true (install directory) or PYP_STORAGE_OK=true (storage directory).

PYP_PROFILE

Wizard: cluster when sbatch is on PATH, otherwise workstation. Set PYP_PROFILE=cluster with ./install --interactive to get the cluster questions when sbatch is missing (for example on a web server that submits through a login node). PYP_SLURM_HOST, PYP_SLURM_PATH, or PYP_SLURM_LOCAL=true also force cluster; PYP_PROFILE=workstation forces workstation. Without --interactive, any PYP_* setting turns the questions off.

PYP_STORAGE

Workstation layout. The wizard default is the mount point of the largest filesystem of at least 1 TiB, skipping a root disk under 200 GiB; when none is that large, the install directory. Setting it on the command line puts local, shared, sharedExec, and scratch under it. A folder variable given in the same command (PYP_LOCAL, PYP_SHARED_DATA, PYP_SHARED_EXEC, PYP_SCRATCH) wins for that one folder.

PYP_SHARED_DATA, PYP_SHARED_EXEC, PYP_LOCAL, PYP_SCRATCH

Cluster layout. Wizard defaults /opt/nextpyp/shared, /opt/nextpyp/sharedExec, /opt/nextpyp/local, and /scratch/nextpyp. See Cluster folders.

PYP_BINDS

Default empty. A colon-separated list of data folders, written to pyp.binds.

PYP_REMOTE

Default false: the website listens on this computer only. true listens on the network and requires PYP_AUTH=login unless PYP_REMOTE_UNAUTHENTICATED_OK=true. The wizard asks this as Will people use nextPYP only from this computer?, where Y means false.

PYP_HOST

The address written to web.host. Unset leaves that line out. PYP_REMOTE=true writes 0.0.0.0 instead. With PYP_AUTH=reverse-proxy and no PYP_TRUSTED_PROXIES (only this machine is trusted), the bind address is always 127.0.0.1.

PYP_AUTH

Wizard: login. Command line: none. Also reverse-proxy.

PYP_WEBHOST

The URL compute jobs use to reach the website. Asked on a cluster only, with http:// plus this machine’s hostname and :8080 as the default. A workstation install writes no webhost line.

PYP_DOMAIN

Default empty. A name installs the HTTPS reverse proxy and opens ports 80 and 443. Asked only when the website listens on the network. The installer warns when the name does not resolve or resolves to a private address, and the closing summary has an https proxy: line. sudo nextpyp rprox <domain> adds the proxy to an install made without it.

PYP_SLURM_LOCAL

Wizard: true when you answer local to the login host question, meaning sbatch runs on this machine. Command line: unset. When both PYP_SLURM_LOCAL=true and PYP_SLURM_HOST are set, PYP_SLURM_LOCAL wins.

PYP_SLURM_HOST and PYP_SLURM_PATH

The SLURM login node, and the folder that contains sbatch there. Wizard default for the path /usr/bin. With PYP_SLURM_HOST set, the installer creates ~<service account>/.ssh/id_ed25519 and records the host key. Name CPU and GPU partitions in the SLURM template.

PYP_USER_SWITCH, PYP_USERS_GROUP, PYP_JOB_PATH

How the website becomes a linked operating-system user (sudo for a new install; setuid is the other choice), the group of people it may become (nextpyp-users), and the PATH for commands the helper runs. See Run jobs as each OS user and Security.

PYP_FETCH

Wizard: background. Command line on a fresh directory: unset, which downloads the compute container before the installer exits. On a directory that already has installed.toml, local/, shared/, or config.toml, unset downloads it in the background. background starts the website first and runs the download as a systemd unit. wait downloads it before the installer exits.

PYP_MIRROR and PYP_DOWNLOAD_LIMIT

Unset. Downloads come from https://nextpyp.app/files/pyp/ plus the version. PYP_MIRROR names the directory of one version on another server, and is recorded in install.env so the container download started later uses it too. PYP_WWW_ROOT names the parent of the version directories, which is where nextpyp latest looks. A limit such as PYP_DOWNLOAD_LIMIT=20m is passed to curl or wget as --limit-rate.

PYP_SUDO

Default sudo. doas is used instead when nextpyp upgrade, run without root, has to stop or start the system unit. Commands started with sudo (or as root) need neither.

PYP_USER_SERVICE

Wizard default true. A root install always writes the system unit: unset or true enables it and starts it; false leaves it installed, disabled, and stopped, and sudo systemctl enable --now nextPYP starts it later. A regular-account install gets a systemd user unit (plus loginctl enable-linger so it also starts at boot) only with true; from the command line with the setting unset, nothing is started and the installer prints the nextpyp start command.

PYP_CONTAINER_SOURCE

Unset. Set it to an existing pyp.sif to use that file instead of downloading one. It must be the container of the release being installed: its SHA-256 is checked against the signed manifest first, and a file that is not is refused.

PYP_DIST

Unset. A folder of release files instead of the public download URL.

PYP_WEB_INSTALL

Unset. For a command-line install: the directory of a web install whose container it shares. /opt/nextpyp is looked at without it.

PYP_NONINTERACTIVE=1 is the same as --non-interactive. PYP_YES=1 is the same as --yes. Confirmed wizard answers are saved in .np/answers in the install directory (plain NAME=value lines, read as data), not in the directory where ./install was started; a setting given on the command line wins over that file.