https://github.com/turkenh/ansible-parse
Ansible scripts for end to end setup of a parse server also ready for migration and production
https://github.com/turkenh/ansible-parse
ansible ansible-scripts digitalocean droplet parse-server
Last synced: 6 months ago
JSON representation
Ansible scripts for end to end setup of a parse server also ready for migration and production
- Host: GitHub
- URL: https://github.com/turkenh/ansible-parse
- Owner: turkenh
- License: mit
- Created: 2016-10-03T20:49:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-13T19:03:04.000Z (over 8 years ago)
- Last Synced: 2025-03-25T13:45:30.311Z (7 months ago)
- Topics: ansible, ansible-scripts, digitalocean, droplet, parse-server
- Size: 3.11 MB
- Stars: 7
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-parse
Ansible scripts for end to end setup of a parse server also ready for migration and productionThe scripts here follow the steps in [How To Host Parse Server tutorial series][1] by Brennen Bearnes from DigitalOcean Community.
## What you get
At the end you will get a server with the followings installed:
* TLS/SSL enabled Mongodb Server
* TLS/SSL enabled Parse Server
* Parse Dashboard## What you need
Before starting you need:
* ansible installed workstation (i.e. your laptop)
* an Ubuntu14.04 server with root access (i.e. a droplet from Digital Ocean)
* A domain name pointing at the server### How to install Ansible
It is easy! Check this page: http://ansible-tips-and-tricks.readthedocs.io/en/latest/ansible/install/
Tested with Ansible version 2.1.1. So it is recommended!
### Sign up DigitalOcean
The scripts have no dependency on DigitalOcean, you can use any cloud provider.
But DigitalOcean is a great choice for developers, like us!
If you do not have an account, you can register with my [referal link][2] and start with a $10 credit.
# Steps
## Step 0 - Prepare workspace1. Clone this repository:
```
git clone https://github.com/turkenh/ansible-parse.git
```2. Get submodules
```
cd ansible-parse
git submodule init
git submodule update
```3. Install dependencies
```
ansible-galaxy install -r requirements.yml
```## Step 1 - Create Instance
Create an Ubuntu 14.04 64 bit droplet on DigitalOcean and copy its ip.

## Step 2 - Update Domain Record
Update domain record with that ip for the domain you intend to use. (Make sure you set digitalocean nameservers from your domain providers control panel before)

## Step 3 - Run Ansible Part 1: Prepare For Migration
Edit group_vars/all file for yourself and update hosts file with the ip of your droplet. Then run "ansible-playbook setup-parse.yml"


## Step 4 - Start Migration
Copy the mongodb conn string in the previous step and start migration for your app on Parse.com

## Step 5 - Run Ansible Part 2: Complete Installation
Go back to terminal where you started ansible installation and press "enter" to continue.

## Step 6 - Verify Installation & Data
Go to \:4040 and enter "admin/admin" (unless you changed it with parse_dashboard_user and parse_dashboard_password variables). Once you are ok with the data, go back to parse.com and finalize migration.

[1]: https://www.digitalocean.com/community/tutorial_series/how-to-host-parse-server
[2]: https://m.do.co/c/9bb7ed4991c1