orangeman / ofn-install

Ansible scripts for provisioning and deploying Open Food Network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploying Open Food Network

These are Ansible playbooks (scripts) for managing an Open Food Network app server.

The Open Food Network is an online marketplace for local food. Instructions for configuring a development environment can be found on the project's GitHub repository.

Start with our deployment tutorial to learn how to setup your own Open Food Network server with Ansible.

Playbooks

The playbooks take information from the vars.yml file. You must create your own copy of the file and edit it to put in information that is specific to your OFN installation. Afterwards, you can use the following playbooks:

  • user.yml - Use a root login to create a default user (defined in vars.yml) on the server for installation (optional).
  • install.yml - A shortcut for provision and deploy.
  • provision.yml - Install and configure all required software on the server.
  • deploy.yml - Deploy OFN to the server by copying a git repo to the server and using ruby/rake/rails tasks to configure and migrate.
  • backup.yml - Backup database and image files on the server to the local machine.
  • rollback.yml - Rollback the database and codebase to the previous version.

You may want to use the anisble option "checkrun" to do a dry-run of the playbooks. With this option, Ansible will run the playbooks, but not actually make changes on the server.

Requirements

You will need Ansible on your machine to run the playbooks. These playbooks will install the Open Food Network app onto a server running an apt-compatible OS like Debian or Ubuntu. It has currently been tested on Ubuntu 12.04 (64 bit) on both AWS and DigitalOcean cloud servers.


Credits

About

Ansible scripts for provisioning and deploying Open Food Network


Languages

Language:Shell 81.4%Language:Ruby 18.6%