https://github.com/application-research/estuary-ansible-deploy
Basic Ansible Deployment for Building/Deploying Estuary API and Shuttle Nodes
https://github.com/application-research/estuary-ansible-deploy
Last synced: 2 months ago
JSON representation
Basic Ansible Deployment for Building/Deploying Estuary API and Shuttle Nodes
- Host: GitHub
- URL: https://github.com/application-research/estuary-ansible-deploy
- Owner: application-research
- Created: 2022-11-27T18:36:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T15:57:15.000Z (over 3 years ago)
- Last Synced: 2025-01-25T04:11:13.451Z (over 1 year ago)
- Language: Shell
- Size: 24.4 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible Playbook for building and deploying Estuary directly to remote servers.
This is a basic playbook that just runs the same remote command we are manually running.
## Prerequisite
- Install ansible and ansible playbook cli. Follow the instructions [here](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
- Generate a SSH key and apply the SSH key to each of the host. (Generate ssh and add the public key to ~/.ssh/authorize_key of each server)
- Replace the inventory files (.ini) with your host ssh private key (e.i `shuttle-6.estuary.tech ansible_user=root ansible_ssh_private_key_file=~/.ssh/estuary`)
## Running
### Ping only (just test)
```
ansible-playbook -i prod/inventory.ini -k ping.yml
```
### Run the remote command to build and deploy
Run the following command to deploy for each hosts.
```
ansible-playbook -i prod/inventory.ini -k deploy-prod-api.yml --extra-vars "tag=v0.3.9"
ansible-playbook -i prod/inventory.ini -k deploy-prod-shuttle.yml --extra-vars "tag=v0.3.9"
ansible-playbook -i prod/inventory.ini -k deploy-prod-gateway.yml --extra-vars "tag=v0.3.8"
```
### Using the shell script
Alternatively, you can run the following script (which just calls all the ansible-playbook command above)
```
./run-prod-build-deploy.sh v0.3.9 (pass the estuary tag)
```