Using Fedora Atomic with Home Assistant
The Hackerspace Eastermundigen
This blog post contains the details of the setup. They may be useful for others as well. Our new system is running Fedora 27 from Project Atomic
The installation process of an Atomic host is pretty much the same as for Fedora Server or Fedora Workstation. Either create a Live USB device or use PXE to get the installation going. E.g., lauch iPXE and chainload netboot.yxzchain --autofree https://boot.netboot.xyz
. Then let anaconda
guide you through the setup.
After the first boot, copy the SSH keys, use visudo
to add users and perform the usual steps you do for a new system. We only allow SSH with keys, are enforcing the usage of sudo
, need special network settings and a couple of other things. But those configuration settings are irrelevant for a setup in a local network.
If the system is up and running then check if you are using the latest release.
The release is 27.100. The latest is 27.105. So, let’s update the host and reboot it.
You can also see that Docker is already running. No installation needed.
Further we will cover how it works for Home Assistant and Mosquittosystemd
.
Instead of docker
we can use the command-line tool atomic
Both containers need additional directories for persistent storage.
We need a copy of mosquitto.conf
to run Mosquitto later:
To handle the containers we created service unit files for the Home AssistantExecStart
line can be found in the documentation about a Docker setup. For Home Assistant
and for Mosquitto.
Exit to be not longer root
.
Reload systemd
to make it aware of the new configurations.
Now, both container can be controlled by systemctl
.
Check with $ sudo systemctl status [name].service
if there are error or the services are running.
The deployment of NGINX