Install Hoplet

Install Hoplet on a device and prepare it to connect to Hop.

Hoplet is Hop's device-side agent. It handles communication with the platform through the Margo Management Interface, giving your devices a common way to participate in a managed fleet.

Requirements⁠

Hoplet ships as a single static binary with no runtime dependencies. Its system packages include the binary, a systemd unit, a default configuration and the hoplet(1) man page.

  • Linux with systemd (Debian, Ubuntu, RHEL and derivatives, Yocto images with systemd)
  • A supported architecture: amd64, arm64 or armv7
  • Outbound HTTPS (TCP 443, TLS 1.3) to the Hop device API
  • A correct system clock (NTP), because Hop and Hoplet check the validity period of each certificate

Install the package⁠

sudo apt install ./hoplet_<version>_linux_<arch>.deb

Connect the installed agent

Hoplet is now installed. Before you start the service, follow Enroll a device to install the bootstrap certificate and set the trust root pin.

What gets installed⁠

PathPurpose
/usr/bin/hopletThe agent
/etc/hop/hoplet/config.yamlDefault configuration (kept on upgrade)
/etc/hop/hoplet/config.d/Drop-in overrides, applied in name order
/var/lib/hop/hoplet/State: SVID and its key, trust bundle, last report (mode 0700)
hoplet.servicesystemd unit, hardened (ProtectSystem=strict, NoNewPrivileges)

Manage the service⁠

After enrollment, use these commands to apply configuration changes and read the service logs:

sudo systemctl reload hoplet         # apply device and observability changes
journalctl -u hoplet -f              # follow logs

systemctl reload validates the new configuration first. If it is invalid, the reload fails with the reason and Hoplet keeps running with the previous configuration.

Changes to server, trust or identity settings need a restart. See Check and apply changes.

For repeatable setup across many devices, see Provision a fleet.