Page 1 of 1

Vagrant VM with ansible provisioning

Posted: 14 Jan 2016, 01:36
by Raath
I had a few spare moments this afternoon and with the release of ansible 2 put together a quick Vagrant VM provisioner.

This vagrant script will create a standard headless ubuntu 14.04 VM with 2 gig ram and 2 cores, install all the required libraries to compile warzone2100 for linux environments then create the .deb files with checkinstall.

I'll add an rpm builder into the mix as well if things are slow tomorrow.

Usage instructions are in the readme.md

https://github.com/aidygus/vagrant-warzone2100

Re: Vagrant VM with ansible provisioning

Posted: 15 Jan 2016, 06:01
by vexed
Nice. :)

BTW, master is development branch, 3.1 is release branch, and we tag releases.

Oh, and also, just doing ./configure && make will produce a "debug" build, not meant for releases, since it will have 0 optimizations done.
Something along the lines of ./configure --disable-debug CFLAGS="-O2 -gstabs -g -g3" CXXFLAGS="-O2 -gstabs -g -g3" is needed for releases.

Re: Vagrant VM with ansible provisioning

Posted: 16 Jan 2016, 20:33
by Raath
Thanks for that information. I think I might add a separate builder playbook for this.

It could be run from the console with:

vagrant provision --provision-with build