This cloud-init config will provision a CS:GO server using LinuxGSM without the need for any manual intervention.
When provisioning a cloud server with providers such as Digital Ocean, you can provide "user data" to help provision cloud servers.
This configuration allows you to make use of the "user data" to automatically provision the CS:GO server.
- Obtain a Game Server Login Token from Steam
- Copy the cloud-init.yml file and replace the GSLT value with your token from step 1
- Replace the PASSWORDHERE with a password of your choice (or remove the line if you don't want a password for your server)
- (optional) change the hostname to something you like
- Create a VM with at least 50GB of disk space in a region geographically near you, and paste you cloud-config.yml file into the user data box when prompted
The server will start provisioning. The provisioning process takes about 30 minutes (depending on the speed of your server and network connection), so be patient.
You can SSH into the server execute $ tail -f /var/log/cloud-init-output.log
to see the realtime output during the server provisioning.
When the server is provisioned, you can ssh into the server and check it is running using $ systemctl status csgoserver
or you can see more information about the game server by running $ su csgo -c 'bash /home/csgo/csgoserver details'
To login to the server and use rcon commands, you will need the rcon password. This can be found by performing the following command on the server:
$ su csgo -c 'bash /home/csgo/csgoserver details | grep "RCON password"'
Info on using RCON can be found here: https://www.clanwarz.com/payments/knowledgebase/490/How-To-Use-Your-Rcon-Password-In-Your-CSGO-Game-Server.html