Skip to main content

Slave Server Setup

The slave server is your backup server that takes over when the master fails.

What the Installer Does

The slave installer:

  1. Detects missing software and auto-installs to match master
  2. Installs Tergum Agent for monitoring
  3. Sets up Cloudflare Tunnel for public access during failover
  4. Configures SSH for file sync from master

Running the Installer

From the Initial Setup Wizard:

curl -sSL https://app.tergum.ca/api/install/slave | sudo bash -s -- \
--token YOUR_API_TOKEN \
--server-id YOUR_SERVER_ID \
--master-hostname YOUR_MASTER_TAILSCALE_HOSTNAME

Cloudflare Tunnel Setup

During installation, a browser window opens for Cloudflare authentication:

  1. Log into your Cloudflare account
  2. Authorize the tunnel creation
  3. The installer automatically configures the tunnel

The tunnel allows your slave to receive traffic without opening ports.

Post-Installation Verification

# Check agent is running
systemctl status tergum-agent

# Check tunnel is running
systemctl status cloudflared

# Test SSH to master
ssh root@master-hostname "echo 'Connection successful'"

Next Steps

After slave setup:

  1. Return to the dashboard wizard
  2. Proceed to WordPress cloning
  3. Add your domains →