Factorio Server Deployment
Up to now only Hetzner Cloud is supported for deployment. I encourage all people to submit other cloud provider module for Terraform.
You will deploy Factorio server on Debian Bullseye. If you want to change os you need to modify
Factorio-Server-Deployment/terraform/backends/hetzner.tf file inside backend folder. In this release I use a CPX11(2vCPU 2GB RAM) as default VM but you can modify it on:
To run this project you need some other software:
# pacman -S gnupg pass ansible terraform
How it work
First of all you need to create a empty project on Hetzner Cloud and get the private API Token. After this phase you need to save the Token they provide in your pass store. Follow pass instructions to have a secure store for your API Token.
$ pass insert Services/hetzner/api_token
If you have a saved game to upload to the server you need to modify
Factorio Server Deployment/configuration.yml adding the path to your save file. The value to add is under
factorio_save:. You can find the configuration file inside the project folder
Factorio-Server-Deployment. To push the configuration on the remote server you need to set ssh key. You need to insert inside the
Factorio-Server-Deployment/configuration.yml under terraform keyword the url of your ssh public key for your github.com or gitlab.com account. Inside
Factorio-Server-Deployment/ansible/roles/factorio/files is present the
server-settings.json you need to personalize this file to ensure, for example, the password for your game. Now you have everything you need to run