Add skeleton for backend playbook
parent
cfe1c35295
commit
90b27dca3d
14
README.md
14
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"
|
||||
```
|
||||
```
|
||||
|
||||
## Backend Server (ec2-18-217-39-134.us-east-2.compute.amazonaws.com)
|
3
hosts
3
hosts
|
@ -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
|
|
@ -0,0 +1,4 @@
|
|||
- hosts: cce_backend_prod
|
||||
tasks:
|
||||
- include_role:
|
||||
name: cce_backend_prod
|
Loading…
Reference in New Issue