Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Chef Scripts

rdsubhas edited this page Jun 14, 2014 · 1 revision

Chef Scripts

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.

Spawning a Production VM

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 and certificate.key
    • The easiest way to create self-signed certificates is using Heroku's instructions. Make sure to rename server.crt and server.key to certificate.crt and certificate.key
  • Create SSL certificates for CouchDB
    • Go to: cd infrastructure/site-cookbooks/couchdb/files/default
    • Repeat above instructions to create SSL certificate for CouchDB
  • 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.

Barebones Deployment

If you want to directly use the Chef scripts to provision an existing machine, without using Vagrant, follow the Server Deployment instructions.