DocNow/sfm-ansible

Name: sfm-ansible

Owner: Documenting the Now

Description: Ansible playbooks for setting up Social Feed Manager

Created: 2016-10-27 23:52:24.0

Updated: 2016-10-31 16:54:48.0

Pushed: 2016-11-15 21:38:49.0

Homepage: null

Size: 29

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

sfm-ansible

Ansible playbooks for setting up Social Feed Manager

LICENSE

Install Scripts for Social Feed Manager

The files are used to set up Social Feed Manager on a target server. They can be used to install the application to a VM under Virtualbox or to a server running Ubuntu Trusty Tahr.

The vagrant up command is used to set up the server and deploy the application on the chosen platform.

Installation

These scripts are intended to be run on a Unix-like system. They are tested to work on Mac OSX and Ubuntu Trusty-Tahr.

To use these scripts, Vagrant must already have been installed on the local system with the Virtualbox provider working.

You will need version 1.6+ of Vagrant installed on the local system.

In addition Ansible at least 2.1+ will need to be installed. On Mac OS this can be installed via Homebrew using the following command

 install ansible

On Ubuntu Trusty

 apt-get install software-properties-common
 apt-add-repository ppa:ansible/ansible
 apt-get update
 apt-get install ansible

Clone this repository on your local machine using git which is installed using the following command

 install git

On Ubuntu Trusty

 apt-get install git
Configuration

Make a copy of ansible/group_vars/all_template ansible/example_hosts and ansible/example_ansible.cfg file

nsible/group_vars/all_template ansible/group_vars/all
nsible/example_hosts ansible/hosts
nsible/example_ansible.cfg ansible/ansible.cfg
For Ansible Deployment
ble-playbook ansible/site.yml -b

This assumes you have admin rights on the destination target server.

Local VM

In the case of the vagrant up option, a VM will be brought up and configured in the current directory. The application is accessible on the local machine from a Web browser at the URI http://192.168.33.10 .

You can use vagrant ssh to log in to this VM when it is up. When logged out of the VM, vagrant halt can be used to shut down the VM. The command vagrant destroy will destroy it entirely, requiring another vagrant up to recreate it.

Ansible

When using Ansible to provision directly, the playbook will be executed on the server whose IP address is given as IP in the ansible/hosts file. When the playbook finishes with no failures, the server is accessible at this URL:

://<ip address>
TO DO
LICENSE

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.