Document the cluster wizard and automated inventory
This commit is contained in:
1 parent
082f601f2a
commit
3d25818683
3 files changed
+119
-6
No files matched your search
@@ -56,7 +56,7 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
python manage.py test coulobre
|
python manage.py test coulobre
|
||||||
python -m unittest discover -s tests -p test_panel_installer.py
|
python -m unittest discover -s tests -p 'test_*installer.py'
|
||||||
|
|
||||||
- name: Verify package artifacts
|
- name: Verify package artifacts
|
||||||
if: matrix.python-version == '3.14'
|
if: matrix.python-version == '3.14'
|
||||||
|
|||||||
@@ -0,0 +1,61 @@
|
|||||||
|
# Run this plan on the first panel. Replace the addresses, hostnames and file
|
||||||
|
# paths with values for your deployment. Password and SSH key files are
|
||||||
|
# on the server that runs the installer.
|
||||||
|
|
||||||
|
[cluster.mail]
|
||||||
|
host = "10.0.0.44"
|
||||||
|
host_key = "/root/cluster-keys/mail-host.pub"
|
||||||
|
ssh_user = "root"
|
||||||
|
ssh_identity = "/root/cluster-keys/deployment"
|
||||||
|
mail_hostname = "mail.example.net"
|
||||||
|
tls = "acme"
|
||||||
|
# Replace this example address with the receiver's actual public SMTP IP.
|
||||||
|
sending_addresses = ["192.0.2.44"]
|
||||||
|
|
||||||
|
# Optional dedicated shared DNS receiver. If DNS and mail share a host,
|
||||||
|
# use the same SSH address, port and credentials in both tables.
|
||||||
|
# [cluster.dns]
|
||||||
|
# host = "10.0.0.45"
|
||||||
|
# host_key = "/root/cluster-keys/dns-host.pub"
|
||||||
|
# ssh_user = "root"
|
||||||
|
# ssh_identity = "/root/cluster-keys/deployment"
|
||||||
|
|
||||||
|
[[cluster.panels]]
|
||||||
|
name = "srv1"
|
||||||
|
dns = "local"
|
||||||
|
domains = ["customer-one.example.net"]
|
||||||
|
|
||||||
|
[cluster.panels.panel]
|
||||||
|
hostname = "srv1.example.net"
|
||||||
|
access = "acme"
|
||||||
|
|
||||||
|
[cluster.panels.admin]
|
||||||
|
username = "operator"
|
||||||
|
email = "operator@example.net"
|
||||||
|
password_file = "/root/cluster-keys/srv1-password"
|
||||||
|
|
||||||
|
[cluster.panels.hosting]
|
||||||
|
public_addresses = ["192.0.2.41"]
|
||||||
|
|
||||||
|
[[cluster.panels]]
|
||||||
|
name = "srv2"
|
||||||
|
dns = "local"
|
||||||
|
domains = []
|
||||||
|
|
||||||
|
[cluster.panels.ssh]
|
||||||
|
host = "10.0.0.42"
|
||||||
|
host_key = "/root/cluster-keys/srv2-host.pub"
|
||||||
|
ssh_user = "root"
|
||||||
|
ssh_identity = "/root/cluster-keys/deployment"
|
||||||
|
|
||||||
|
[cluster.panels.panel]
|
||||||
|
hostname = "srv2.example.net"
|
||||||
|
access = "acme"
|
||||||
|
|
||||||
|
[cluster.panels.admin]
|
||||||
|
username = "operator"
|
||||||
|
email = "operator@example.net"
|
||||||
|
password_file = "/root/cluster-keys/srv2-password"
|
||||||
|
|
||||||
|
[cluster.panels.hosting]
|
||||||
|
public_addresses = ["192.0.2.42"]
|
||||||
+57
-5
@@ -156,11 +156,63 @@ The installer preserves a configured panel and uses private state while
|
|||||||
resuming. Review the [installation checks](#verify-a-new-installation)
|
resuming. Review the [installation checks](#verify-a-new-installation)
|
||||||
before opening the panel to customers.
|
before opening the panel to customers.
|
||||||
|
|
||||||
Run setup on each panel server in a multi-panel deployment. Use
|
To install several panels individually, use `remote-install` when preparing
|
||||||
`remote-install` when preparing a receiver, then connect additional panels
|
a receiver, then connect additional panels to that receiver using `remote`.
|
||||||
to that receiver using `remote`. Keep separate role keys and give each
|
Keep separate role keys and give each hosted domain one panel owner.
|
||||||
hosted domain one panel owner. Review the installed receiver configuration
|
Review the installed receiver configuration before adding an independent
|
||||||
before adding an independent role to an existing server.
|
role to an existing server.
|
||||||
|
|
||||||
|
### Install several panels from one server
|
||||||
|
|
||||||
|
Run the following command on the first panel server or choose Cluster from
|
||||||
|
the interactive deployment profiles.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo ./deploy/install-panel.py --cluster
|
||||||
|
# When using the Debian package
|
||||||
|
sudo coulobre-install --cluster
|
||||||
|
```
|
||||||
|
|
||||||
|
Prepare two to twelve panel hosts. Install the chosen release on the first
|
||||||
|
server and provide SSH access from there to the other server addresses.
|
||||||
|
The first panel entry runs locally. Each other panel entry supplies its
|
||||||
|
own public name, SSH destination, administrator and hosting defaults.
|
||||||
|
Supply a verified host public key for each SSH destination and an account
|
||||||
|
with noninteractive sudo. Keep the administrative SSH private keys on
|
||||||
|
the first server.
|
||||||
|
|
||||||
|
The inventory can include a shared mail receiver, a shared DNS receiver,
|
||||||
|
or both roles on one dedicated host. A panel can publish DNS locally, use
|
||||||
|
the shared receiver or leave DNS publishing off. With shared mail, enter
|
||||||
|
the receiver's actual public sending addresses in its section. Each panel
|
||||||
|
uses a separate scoped key on the receiver. Assign the hosted domains each
|
||||||
|
panel owns. An empty domain list allows health checks and denies domain
|
||||||
|
operations until you [assign domains to the panel](#limit-linked-provisioning-to-assigned-domains).
|
||||||
|
|
||||||
|
Review all hosts before installing. The wizard checks pinned SSH
|
||||||
|
authentication and sudo, supported destination releases, distinct host
|
||||||
|
identities, and whether existing panel or receiver settings are compatible.
|
||||||
|
Local certificate files are checked on the host that will use them.
|
||||||
|
If a check fails, edit the inventory or correct access and retry.
|
||||||
|
Use the [example cluster inventory](../deploy/cluster-install.toml.example)
|
||||||
|
to automate the same process. Make each panel's `admin.password_file` a
|
||||||
|
root-owned `0600` file on the first server.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo coulobre-install --config /root/cluster.toml --check
|
||||||
|
sudo coulobre-install --config /root/cluster.toml
|
||||||
|
```
|
||||||
|
|
||||||
|
If a host fails during installation, fix the reported problem and rerun
|
||||||
|
the same inventory from the first server. Coulobre records completed
|
||||||
|
panels in `/var/lib/coulobre-cluster/installation.json`, reuses panel role
|
||||||
|
keys and resumes the interrupted panel. For an SSH deployment failure,
|
||||||
|
inspect `journalctl -t coulobre-bootstrap` on the destination.
|
||||||
|
|
||||||
|
Each panel has its own database and accounts. Configure BIND primary and
|
||||||
|
secondary replication using the [secondary DNS procedure](#set-up-a-managed-secondary-dns-server).
|
||||||
|
For mail operations with an existing scoped receiver, see
|
||||||
|
[the scoped receiver limitations](#limit-linked-provisioning-to-assigned-domains).
|
||||||
|
|
||||||
## Install or upgrade from a Debian package
|
## Install or upgrade from a Debian package
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user