Skip to content

gnarula/eden_playbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Ansible to deploy Eden

  1. Install Ansible with instructions from Ansible Doc

  2. Create an EC2 Instance and launch it. From the Web UI, note the public ip, public dns and a part of the private dns (before .ec2.internal)

  3. Create/Update /etc/ansible/hosts with the host information. Example

    <PUBLIC IP OF DB SERVER>
    <PUBLIC IP OF EDEN SERVER>
    <PUBLIC IP OF WEBSERVER SERVER>
    
  4. cd to the repository and create a file, say, deploy.yml. Depending upon your deployment type (3-tier or single tier) copy the contents of either multiple.yml or single.yml from examples directory

  5. Update the IPs and variables (refer to variable description below)

  6. Finally, run ansible-playbook. ansible-playbook --private-key=<path_to_key> deploy.yml -u <remote_user> replacing <remote_user> with your server's remote user and <path_to_key> with path to private key associated with the server

Variable Description

The Ansible Playbooks use variables some variables to deploy Eden. Descriptions of these variables are given below.

NB: Values of variables should be entered without quotes

Variable Description
distro Linux Distro on the machine. Supported Options are wheezy (Debian) and Precise
dtype Demo Type to determine whether demo is being installed before or after production. Use "na" when type is set to "prod" or "test". "afterprod" or "beforeprod" otherwise
password Database Password
db_ip IP of the server hosting the Database
db_type Type of Database - Either "postgresql" or "mysql"
hostname Hostname of the machine
prepop_options Prepopulate options - default "template:mandatory"
sitename URL you want to access Eden from
web_server Only "cherokee" allowed for now. TODO: Apache
template Eden template to use
eden_ip IP of the server hosting Eden

About

Ansible Playbooks for deploying Sahana Eden

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published