diff --git a/README.md b/README.md index 4d6bdeb..eb20357 100644 --- a/README.md +++ b/README.md @@ -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" -``` \ No newline at end of file +``` + +## Backend Server (ec2-18-217-39-134.us-east-2.compute.amazonaws.com) \ No newline at end of file diff --git a/hosts b/hosts index eb93b80..8739b6b 100644 --- a/hosts +++ b/hosts @@ -1,2 +1,3 @@ [production] -cce_frontend_prod ansible_host=cce.ebookfoundation.org ansible_user=ubuntu \ No newline at end of file +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 \ No newline at end of file diff --git a/roles/cce_backend_prod/tasks/main.yml b/roles/cce_backend_prod/tasks/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/update-backend-prod.yml b/update-backend-prod.yml new file mode 100644 index 0000000..ce41c60 --- /dev/null +++ b/update-backend-prod.yml @@ -0,0 +1,4 @@ +- hosts: cce_backend_prod + tasks: + - include_role: + name: cce_backend_prod \ No newline at end of file