Git Product home page Git Product logo

kira-playbooks's Introduction

Playbooks

A collection of Ansible scripts and templates used to deploy various Kobotoolbox projects to various environments.

Setup

To run the stuff herein, you need Ansible. To use Ansible you might need pycrypto. To build pycrypto, you need the latest python (2.1 <= ver <= 3.3) development libs & headers. Stick with python v2.7 for now. It's the current status quo. In a nutshell, if you're using debian/ubuntu :- apt-get install python-dev

For local "dev" deployments, you will need to install Virtualbox and Vagrant. Download Virtualbox from here and Vagrant from here or feel free to install those from your distro's repos (and brew if using OSX).

Clone this repo git clone [email protected]:onaio/kira-playbooks.git playbooks && cd playbooks

Install Requirements pip install -r requirements.txt

Install required roles ansible-galaxy install -r requirements/roles.yml -p roles

Deployment Commands

Deploying dkobo

ansible-playbook -i inventory/dkobo.ini dkobo.yaml --extra-vars="" --vault-password-file [path to password file]

Deploying kobocat

ansible-playbook -i inventory/kobocat.ini kobocat.yaml --extra-vars="" --vault-password-file [path to password file]

Deploying enketo

ansible-playbook -i inventory/enketo-kobocat.ini enketo-kobocat.yaml --extra-vars="" --vault-password-file [path to password file]

Usage (dev environment)

For development deploys, first rename ansible.cfg.vagrant to ansible.cfg. This config tells ansible to use the vagrant remote user & public key

vagrant up - (downloads and) brings up the local Virtualbox dev VM we'll deploy to. ansible-playbook -i inventory/vagrant_vm_single.ini onadata.yaml -vvvv - deploy onadata to the dev vm that vagrant just spun up

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.