Add interactive, unattended, and browser installer workflows
This commit is contained in:
1 parent
55586e39bf
commit
8f9d399ce4
7 files changed
+769
-2
No files matched your search
@@ -15,6 +15,98 @@ their pool directory, configuration test command, and systemd service. Debian
|
||||
13 supplies Python 3.13 for the panel virtual environment.
|
||||
[Debian 13 release notes](https://www.debian.org/releases/trixie/release-notes/whats-new.en.html)
|
||||
|
||||
## Install with the setup wizard or CLI
|
||||
|
||||
Run the installer from a verified source release on a fresh systemd host.
|
||||
Ubuntu 26.04 LTS is the primary target. The installer also accepts Debian
|
||||
13 and Ubuntu 24.04. Managed website activation uses the distribution's
|
||||
PHP-FPM on Ubuntu 26.04 and Debian 13. Manage upgrades through the
|
||||
[upgrade guide](#upgrade-an-existing-panel).
|
||||
|
||||
Choose HTTPS at Apache or a trusted external HTTPS proxy. For HTTPS at
|
||||
Apache, provide an existing certificate chain and private key for the
|
||||
panel hostname. Keep the TLS files in a system location such as
|
||||
`/etc/ssl/` or `/etc/letsencrypt/`. This also works on a LAN with an
|
||||
internal CA. For an
|
||||
external proxy, provide the private origin address and port and the
|
||||
proxy's peer address. Set up the upstream proxy as described under
|
||||
[External reverse proxy](#external-reverse-proxy).
|
||||
|
||||
The installer generates the panel, MariaDB, and RabbitMQ secrets. It
|
||||
binds MariaDB and the broker's AMQP listener to loopback and configures
|
||||
Apache, the panel, the workers, and the scheduler. Keep service management
|
||||
ports private. A local DNS selection configures authoritative BIND9.
|
||||
A local mail selection needs a certificate and private key for its own
|
||||
hostname and configures Postfix delivery and Dovecot IMAP. Use the
|
||||
additional deployment sections for services such as customer submission,
|
||||
webmail, Certbot automation, and account backups.
|
||||
|
||||
### Interactive command line
|
||||
|
||||
```sh
|
||||
sudo ./deploy/install-panel.py --interactive
|
||||
```
|
||||
|
||||
Review the hostname, network mode, administrator, and mail and DNS
|
||||
choices before confirming. Enter the password in the terminal or use
|
||||
`--admin-password-file` to read it from a root-owned `0600` file.
|
||||
|
||||
### Automated command line
|
||||
|
||||
Copy [the parameter file example](../deploy/panel-install.toml.example),
|
||||
set the hostname and service choices, and provide the path to the private
|
||||
administrator password file. Check the parameters before running the
|
||||
installation.
|
||||
|
||||
```sh
|
||||
sudo ./deploy/install-panel.py --config /root/coulobre.toml --check
|
||||
sudo ./deploy/install-panel.py --config /root/coulobre.toml
|
||||
```
|
||||
|
||||
### Browser wizard
|
||||
|
||||
```sh
|
||||
sudo ./deploy/install-panel.py --web \
|
||||
--admin-password-file /root/coulobre-admin-password
|
||||
```
|
||||
|
||||
Open the loopback address printed in the terminal and enter its one-time
|
||||
setup code. When working remotely, forward the wizard port through the
|
||||
administrator SSH connection. The default port is 8765. Open
|
||||
`http://127.0.0.1:8765/` in the browser on the computer running the
|
||||
forwarding command.
|
||||
|
||||
```sh
|
||||
ssh -N -L 8765:127.0.0.1:8765 operator@panel.example.net
|
||||
```
|
||||
|
||||
The wizard shows the installation plan and step progress. The administrator
|
||||
password comes from the private file on the host. After setup, open the
|
||||
panel at its configured HTTPS hostname and enrol a second factor during
|
||||
the first administrator sign-in.
|
||||
|
||||
### Separate DNS and mail nodes
|
||||
|
||||
Select `remote` for either role. The installer uses the existing
|
||||
[node installer and SSH enrolment](#install-and-enrol-a-node).
|
||||
Prepare the receiver on the destination and obtain its verified SSH host
|
||||
public key. Supply its hostname or IP, SSH port, and host key file to the
|
||||
panel installer.
|
||||
|
||||
The panel installer generates a role key before checking the connection.
|
||||
If the receiver has not authorized it yet, authorize the public key from
|
||||
`/etc/coulobre-remote/dns/id_ed25519.pub` or
|
||||
`/etc/coulobre-remote/mail/id_ed25519.pub` using
|
||||
`coulobre-node-setup authorize-panel` on the receiver. Run the panel
|
||||
installer again with the same choices. It reuses the key and the
|
||||
credentials generated for that installation.
|
||||
|
||||
All three modes can resume a failed installation with the same settings
|
||||
and source release. The progress message identifies the step to check.
|
||||
The installer preserves a configured panel and uses private state while
|
||||
resuming. Review the [installation checks](#verify-a-new-installation)
|
||||
before opening the panel to customers.
|
||||
|
||||
## Install the package and configure local services
|
||||
|
||||
Run these commands from a Coulobre checkout or an unpacked source release
|
||||
|
||||
Reference in new issue
Block a user