Add skeleton for backend playbook

master
Dylan DiGeronimo 2020-05-09 16:06:56 -04:00
parent cfe1c35295
commit 90b27dca3d
4 changed files with 15 additions and 6 deletions

View File

@ -1,15 +1,19 @@
# CCE Search Ansible Setup
## Frontend Server (cce.ebookfoundation.org)
### Pre-requisites
1. Install `ansible` on your local machine
2. Ensure you have obtained the SSH key for the server
3. Complete server setup if not already complete (see CCE-Frontend-System-Information-and-Provisioning-Guide.pdf)
2. Ensure you have obtained the SSH key for the EC2 instances
3. Provision EC2 instances as needed
## Frontend Server (cce.ebookfoundation.org)
For information on how to provision the EC2 instance, see [CCE-Frontend-System-Information-and-Provisioning-Guide.md](CCE-Frontend-System-Information-and-Provisioning-Guide.md)
### Updating and redeploying
Once new changes have been added to the master branch of the [frontend repo](https://github.com/EbookFoundation/cce-search-prototype), run the `update-frontend-prod` playbook:
```
$ ansible-playbook -i hosts update-frontend-prod.yml --key-file="/path/to/key/on/your/machine"
```
```
## Backend Server (ec2-18-217-39-134.us-east-2.compute.amazonaws.com)

3
hosts
View File

@ -1,2 +1,3 @@
[production]
cce_frontend_prod ansible_host=cce.ebookfoundation.org ansible_user=ubuntu
cce_frontend_prod ansible_host=cce.ebookfoundation.org ansible_user=ubuntu
cce_backend_prod ansible_host=ec2-18-217-39-134.us-east-2.compute.amazonaws.com ansible_user=ubuntu

View File

4
update-backend-prod.yml Normal file
View File

@ -0,0 +1,4 @@
- hosts: cce_backend_prod
tasks:
- include_role:
name: cce_backend_prod