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,11 +1,13 @@
# CCE Search Ansible Setup # CCE Search Ansible Setup
## Frontend Server (cce.ebookfoundation.org)
### Pre-requisites ### Pre-requisites
1. Install `ansible` on your local machine 1. Install `ansible` on your local machine
2. Ensure you have obtained the SSH key for the server 2. Ensure you have obtained the SSH key for the EC2 instances
3. Complete server setup if not already complete (see CCE-Frontend-System-Information-and-Provisioning-Guide.pdf) 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 ### Updating and redeploying
@ -13,3 +15,5 @@ Once new changes have been added to the master branch of the [frontend repo](htt
``` ```
$ ansible-playbook -i hosts update-frontend-prod.yml --key-file="/path/to/key/on/your/machine" $ 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)

1
hosts
View File

@ -1,2 +1,3 @@
[production] [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