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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Ansible playbooks for setting up 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.
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
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
ansible/group_vars/all
file and make the configuration changes needed.ansible/hosts
and enter the IP address of the target server.ble-playbook ansible/site.yml -b
This assumes you have admin rights on the destination target server.
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.
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>
MIT