Example production-env clone

This commit is contained in:
Kris Lamoureux 2022-11-20 05:06:20 -05:00
parent 51b6f3b843
commit 671a94063d
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -14,12 +14,20 @@ and services operated by Free I.T. Athens (FRITA).
## Production ## Production
1. Clone [production-env](https://github.com/freeitathens/production-env/) to `./environments` 1. Clone [production-env](https://github.com/freeitathens/production-env/) to `./environments`
```
mkdir -p environments
git clone git@github.com:freeitathens/production-env.git ./environments
```
2. Run `./scripts/vault-key.sh` from the root of the project to obtain the Ansible Vault password 2. Run `./scripts/vault-key.sh` from the root of the project to obtain the Ansible Vault password
3. Enter the Bitwarden Master Password 3. Enter the Bitwarden Master Password
4. Run `ansible-playbook` against the production servers, e.g., 4. Run `ansible-playbook` against the production servers, e.g.,
``` ```
ansible-playbook -u root -i environments/production --vault-pass-file ./.ansible_vault webserver.yml --check ansible-playbook -u root -i environments/production --vault-pass-file ./.ansible_vault webserver.yml --check
``` ```
5. Delete the `.ansible_vault` file when you are done 5. Delete the `.ansible_vault` file when you are done
## Authors ## Authors