This is an Ansible playbook to recreate the DevCon server.
- DevCon web page
- Old static pages (e.g. Summit)
- Analytics software (Piwik)
This script requires a backup file named backup.tar.bz2
on the current folder, ensuring that only the ED, President, or VP Technoology can run this script.
Apart from the backup file, you also need to modify the variables under group_vars/all
before running this script.
Once the two are ready, do the following steps to provision a new DevCon server:
- Provision an Ubuntu 14.04 server, preferrably a Digital Ocean server in the Singapore data center. Add your SSH key for root access.
- Copy
hosts.example
tohosts
and replace thelocalhost
inside with the IP address of the new server. - Run
ansible-playbook -i hosts devcon.yml
. The script will restart the server at the end. - After the server restart is finished, run
ansible-playbook -i hosts devcon-finish.yml
to complete the provisioning. - Deploy the DevCon website using Capistrano. See site source for details.
- Check if all subdomains are working correctly (default, analytics, summit, etc).
- Manually setup the non-open-source backup script.
- If you're using Digital Ocean or any VPS that doesn't allocate swap space, allocate the appropriate amount of swap space using this guide.