This is basic vagrant file with shell provisioning that allows everyone quickly spin up your own machine on Azure with Don't Starve Together Server.
###Available providers
- Azure - done
- Virtualbox - done
- Installed VirtualBox
- Installed Vagrant
- Simply
git clone git@github.com:pawelsawicz/vagrant-dontstarve.git
or download a zip - Copy your server_token.txt file into
./configs
in your vagrant-dontstarve folder - Customize
./configs/settings.ini
file (optional) - cmd to location of vagrantfile and
vagrant up --provider=virtualbox
- DONE happy playing
- Simply
git clone git@github.com:pawelsawicz/vagrant-dontstarve.git
or download a zip - Copy your server_token.txt file into
./configs
in your vagrant-dontstarve folder - Customize
./configs/settings.ini
file (optional) - Open Vagrantfile and change all paramaters where is "(To Fill out)" phrase. For certification see this section
- Once you provide all required filed simply
vagrant up
- Enjoy!
Certification is copied from vagrant-azure repository.
We will use makecert.exe
distributed as part of the in the Windows 7 SDK. The following commands will create the required certificates and insert them into the current user’s personal store.
-
makecert.exe -r -pe -a sha1 -n "CN=My Azure Management Certificate" -ss My -sr CurrentUser -len 2048 -sky exchange -sp "Microsoft Enhanced RSA and AES Cryptographic Provider" -sy 24
-
makecert.exe -r -pe -a sha1 -n "CN=My Azure SSL Certificate" -ss My -sr CurrentUser -len 2048 -sky exchange -sp "Microsoft Enhanced RSA and AES Cryptographic Provider" -sy 24
If you generated those two certificates, now you have to export them to your disk and import into Azure Portal.
-
Open
certmgr.msc
from command line or Windows + F and search forcertmgr.msc
-
If you have certmgr opened, navigate into Personal->Certificates->My Azure Management Certificate and right click All Task->Export
-
Then Select "Yes, export the private key" -> Select Personal Information Exchange (.PFX), Uncheck "Include all certification path if possible" -> Select Password, and type password -> Type file name and select location of your certificate
-
Open command line navigate to the folder where you saved your .pfx file and run following command
openssl pkcs12 -in vagrant.pfx -out c.pem -nodes
source you can change name vagrant.pfx into something that fits you. -
Go back to Personal Certificates->Select My Azure Management Certificate->Export-> Then Select "No, do not export the private key" -> Select DER encoded binary X.509 (.CER) -> Type file name and select location of your certificate
-
Go to azure developer portal and select -> Settings-> Managment Certifcate -> Upload certificate -> select file from point 2.3
##Other Info
###Routmap
- Add AWS provider
- Add UDP ports for Azure