This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Chef Scripts
rdsubhas edited this page Jun 14, 2014
·
1 revision
RapidFTR uses Chef along with Knife Solo to deploy code to production. The provisioning scripts and cookbooks are installed in rapidftr-infrastructure repository, and the same is linked as a git submodule in the main RapidFTR web repository for convenience.
A Virtual Machine can be quickly provisioned to test the RapidFTR Chef scripts. Make sure you have VirtualBox and Vagrant installed as per the Using Vagrant instructions, and then:
- Clone the RapidFTR repository
- Update the infrastructure submodule:
git submodule update --init
- Create SSL certificates for RapidFTR app
- Go to:
cd infrastructure/site-cookbooks/rapidftr/files/default
- Create
certificate.crt
andcertificate.key
- The easiest way to create self-signed certificates is using Heroku's instructions. Make sure to rename
server.crt
andserver.key
tocertificate.crt
andcertificate.key
- Go to:
- Create SSL certificates for CouchDB
- Go to:
cd infrastructure/site-cookbooks/couchdb/files/default
- Repeat above instructions to create SSL certificate for CouchDB
- Go to:
- Bring up a Production VM:
vagrant up prod
This will boot a 64-bit Ubuntu 12.04 VM and apply the production role. Once the machine is booted, navigate to http://localhost:8443 to access the VM.
If you want to directly use the Chef scripts to provision an existing machine, without using Vagrant, follow the Server Deployment instructions.