Automatically generate XX number of Counter Strike: Global Offensive servers and manage them.
This project uses Ansible, Docker and work of other talented developers across GitGub such as GameServerManagers for creating the LinuxGSM, splewis for creating the get5 plugin, PhlexPlexico for creating a working frontend for get5 and Igor Golm with his code reviews and tutoring.
git clone [email protected]:RasmusKoit/LGSM-GM.git
cd LGSM-GM/
Requirements:
- Ansible => 2.13.6
- Python3 => 3.9.2
Copy over the files from setup
folder to correct places indicated in the first line of each file.
Alternatively you can use the setup.sh
script to do this for you. (NOTE: This script expects to be ran from the setup
folder using bash
)
cd setup/
./setup.sh
Configure settings for the tournament under inventory/group_vars/CounterStrikeServers/vars.yml
Export the tournament list from Challonge and save it under roles/get5api/files/<challonge_tournament_id>.csv
Get Steam API key from here and add it to inventory/group_vars/CounterStrikeServers/vault.yml
Get Challonge API key from here and add it to inventory/group_vars/CounterStrikeServers/vault.yml
During first run you will not have all the vault_
variables defined under inventory/group_vars/CounterStrikeServers/vault.yml
for example vault_get5api_key
cd LGSM-GM
ansible-playbook -i ../inventory/development linux_prep.yml
ansible-playbook -i ../inventory/development lgsm.yml
Now that that the stack is running, go over to your server
(ex: https://lgsm-dev.norwayeast.cloudapp.azure.com
)
Authenticate with your Steam account (this can be configured under inventory/group_vars/CounterStrikeServers/vars.yml
by modifying tournament_server_admins
)
Get your vault_get5api_key
value under user account and set it into the vault.
Also go ahead and set your challonge API Key under the user profile.
Now you are ready to run the playbooks related to get5
cd LGSM-GM
ansible-playbook -i ../inventory/development get5api.yml
TODO