Bare metal automation: physical servers managed as code

Physical machines used to be set up by hand and then nursed for years. Automation turns them into something you can rebuild from a repository in under an hour, which makes upgrades, migrations and failures far less frightening.

What does bare metal automation cover?

Every step between an empty machine and a running service: choosing and installing the operating system, partitioning disks and building RAID, creating users and keys, configuring the network and firewall, installing packages, deploying applications and wiring up monitoring. Automated well, each step is described in files under version control and runs the same way every time, on any machine of the same model.

How does this work with rented servers?

In layers. The provider layer installs the operating system: our console reinstalls any machine with Ubuntu 24.04 or 22.04, Debian 13 or 12, AlmaLinux 10 or 9, Rocky Linux 10 or 9, Fedora 43 or Proxmox VE 9, with your SSH key in place and, on models marked Soft RAID, the system on an mdadm mirror. From that first SSH login onwards, your own tooling takes over. The power, reinstall and rescue actions are also in the console, which is all a configuration pipeline needs to start from a clean slate.

Which tool should configure the machine?

Ansible is the usual choice for small and medium fleets because it needs nothing on the target but SSH and Python. Salt and Puppet suit large estates with agents. Whatever you use, write roles that are idempotent: running them twice changes nothing the second time. A minimal playbook that turns a fresh install into a hardened base looks like this:

- hosts: fresh_metal
  become: true
  roles:
    - base_users
    - nftables_default_deny
    - unattended_upgrades
    - node_exporter
    - wireguard_mesh
  vars:
    admin_keys: "{{ lookup('file', 'keys/ops.pub') }}"
ansible-playbook -i inventory/prod.ini site.yml --limit fra-db-02 --diff

Should I build images instead?

For fleets of identical nodes, often yes. An image pipeline bakes the operating system, packages and agents into a single artefact, tests it, and deploys it everywhere, so no two machines drift apart. On rented hardware without a custom image upload, the practical version is to reinstall a standard system, then apply a pinned set of roles and container images. Containers give much of the same benefit at the application layer: the host stays thin and generic, and the workloads are immutable images.

How do I handle secrets in automation?

Keep them out of the repository in plain text. Ansible Vault, SOPS with age keys or a dedicated secrets server encrypt values so that only the pipeline can read them. Rotate the SSH key used by automation on a schedule, give it sudo only where it is required, and keep a separate break-glass key offline.

sops --encrypt --age age1qyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqs8u4j6d group_vars/prod/secrets.yaml > group_vars/prod/secrets.enc.yaml

How do networks fit into automation?

Describe them as code too. We do not sell a private network between servers, so most fleets build a WireGuard mesh; a role that generates keys, distributes peer lists and writes configuration keeps every node in the mesh consistent when one is added or rebuilt. Reverse DNS for the IPv4 is set in our console and belongs in your runbook, since it is one of the few steps outside the machine.

What is a rebuild drill?

A scheduled test in which you reinstall a real machine and bring it back to service using only the repository and backups. It proves the automation is complete and tells you your true recovery time. Teams that never drill discover missing steps during a real failure. A quarterly drill on one non-critical node is enough to keep the code honest.

StageTool examplesTypical duration
Operating system reinstallOur consoleMinutes, depending on model
Base configurationAnsible, Salt, Puppet5 to 15 minutes
Application deploymentContainers, packages, GitMinutes
Data restorerestic, Borg, database replicasDepends on data size and port speed

What does automation change about ordering servers?

New machines become routine. Pick a model, pay for it, wait for delivery, which is usually within 24 hours and up to 72 hours for Storage and Enterprise models, then run one playbook. Terms of 1, 3, 12 or 24 months at the same monthly price let you add capacity for a season and let it lapse afterwards. Read First steps with a new server for the first login and Hardening a new dedicated server for what the base role should contain.

Machines often used as automated fleet nodes

ModelProcessorCoresMemoryDrivesPortPer month
ESSENTIAL-1Intel Xeon-E 2386G632 GB2x 512 GB SSD NVMe1 Gbps unmetered$38.40
ESSENTIAL-SAMD Ryzen 7 9700X864 GB2x 512 GB SSD NVMe1 Gbps unmetered$46.20
BUSINESS-1 2026AMD EPYC 4245P632 GB2x 960 GB SSD NVMe3 Gbps unmetered$113.40
ENTERPRISE-a1 2026AMD EPYC TURIN 913516128 GB2x 1.92 TB SSD NVMe5 Gbps unmetered$424.80

Related pages

First steps with a new server

The first hour after delivery: log in, check the hardware matches the order, update, add a user, lock down SSH and set a firewall.

Read more

Hardening a new dedicated server

The first hour on a fresh machine: SSH keys, a firewall, automatic updates, brute force blocking and a habit of checking what listens.

Read more

Unmanaged dedicated servers

We run the hardware and network, you run the system: what unmanaged means day to day, which tasks are yours and how to stay on top of them.

Read more

Debian

Debian 13 or 12: a lean, conservative base that stays out of the way on machines you want to forget about.

Read more

Questions and answers

What is bare metal automation?

Installing and configuring physical servers from code, so any machine can be rebuilt the same way from a repository and backups.

Can I reinstall a rented server automatically?

Our console reinstalls the operating system with your SSH key, after which tools such as Ansible configure the rest.

Do you support custom operating system images?

No custom image upload is offered. Install one of the standard systems, then apply your own roles and container images on top.

How should I store secrets used by automation?

Encrypt them with Ansible Vault, SOPS or a secrets server, never in plain text in the repository.

What is a rebuild drill?

A planned reinstall of a real machine using only your automation and backups, to prove the process works and measure recovery time.