This is an opiniated and incomplete project, mainly created to play with Terraform and SaltStack in masterless mode.
The provider used is OpenStack, mainly based on OVH's OpenStack offer. This repository is based on the work of @yanndegat, in terraform-ovh-common.
- openrc.sh
You'll need an openrc.sh
file, filled manually or provided directly from Horizon, the OpenStack dashboard.
A sample file is provided as reference.
- Terraform Installation instructions
- Edited Terraform variables
Feel free to edit the provided variables in variables.tf
or overwrite them.
- Edited Pillar variables
cp pillar/factorio-example.sls pillar/factorio.sls
Edit the variables in the pillar to secure your server.
terraform apply
The server expects a savegame by default, at location /opt/factorio/saves/latest.zip
The factorio server can be controlled by a systemd unit, described in salt/systemd/factorio.service
:
service factorio start/stop