Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anupvarghese/csgo-on-cloud
Running Counter-Strike: Global Offensive on cloud
https://github.com/anupvarghese/csgo-on-cloud
ansible azure cloud counter-strike counter-strike-global-offensive csgo csgo-dedicated-server linuxgsm terraform
Last synced: 2 days ago
JSON representation
Running Counter-Strike: Global Offensive on cloud
- Host: GitHub
- URL: https://github.com/anupvarghese/csgo-on-cloud
- Owner: anupvarghese
- Created: 2020-11-11T12:03:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T06:29:22.000Z (almost 2 years ago)
- Last Synced: 2023-08-02T07:12:52.564Z (over 1 year ago)
- Topics: ansible, azure, cloud, counter-strike, counter-strike-global-offensive, csgo, csgo-dedicated-server, linuxgsm, terraform
- Language: Jinja
- Homepage:
- Size: 61.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### CSGO dedicated server on Azure
Running a CSGO dedicated server on Azure using terraform with ansible and [LinuxGSM](https://linuxgsm.com/)
### Initial Steps
- Install terraform(v1.1.7), azurecli(2.34.1)
- Azure login and copy `subscription_id````
az login
```- Create service principal
```
MSYS_NO_PATHCONV=1 az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/"
```- Populate secrets, create a file `secrets.tfvars` under `azure` folder
- Check azure for vm_size and storage_disk_type```shell
region = "japaneast"
subscription_id = ""
client_id = ""
tenant_id = ""
resource_group_name = "RG_NAME"
vm_size = "Standard_F4"
storage_disk_type = "Standard_LRS"
sv_password = "secret"
rcon_password = "secret"
gslt = "gslt from steam"
client_secret = ""
```## Terraform steps
```shell
terraform init
terraform plan -var-file="secrets.tfvars"
terraform apply -var-file="secrets.tfvars"
```## Ansible steps
- Once the server is provisioned, you can access it via ssh as below,
```shell
ssh -i ~/.ssh/id_rsa csgoserver@ipaddress_of_vm
```- Below command will run the ansible playbook and create csgo server
```shell
ansible-pull -U https://github.com/anupvarghese/csgo-on-cloud.git -i 127.0.0.1 competitive.yml
```### Notes
This setup uses [LinuxGSM](https://linuxgsm.com/) to host csgo server.
Management of the game server can be found in [these](https://docs.linuxgsm.com/commands) docs
If you want to deploy with changes that are in a branch and not master, try this - ansible-pull -U https://github.com/anupvarghese/csgo-on-cloud.git -C -i 127.0.0.1 competitive.yml