Repository files navigation
Download Ansible , Pulumi , RClone , Poetry and Azure CLI
Run az login to login to your Microsoft account for Pulumi
Create a remote for storing backups by running - rclone --config ./rclone.config config and follow the instructions shown.
Create a .env file using .env-example as a template
Download backups from OneDrive if they exist (only the needed .tgz file)
Run pulumi config set azure-native:location <desired_location>
Install all Ansible roles with ansible-galaxy install -r requirements.yml
Copy the preferred backup .tgz file to backups/ directory
Run poetry install in iac/pulumi directory
Run pulumi -C iac/pulumi up -y
Copy the IP address returned by pulumi to ansible_host key in the cloudgroup group in iac/ansible/hosts.yml
Run ansible-playbook --ask-become-pass -i iac/ansible/hosts.yml iac/ansible/playbooks/main.yml
Access the server at <ip_address>:25565
Run pulumi -C iac/pulumi down -y
To change server name/VM/location/image..., edit iac/pulumi/Pulumi.dev.yaml
To edit Ansible host config, edit iac/ansible/hosts.yaml
To change Minecraft server settings/commands on startup..., edit the environment section in the mcserver service in docker-compose.yml
About
Infrastructure for a minecraft server hosted on an Azure VM
Topics
Resources
License
Stars
Watchers
Forks
You can’t perform that action at this time.