Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
grzanka committed Oct 29, 2023
1 parent d8c3e3f commit d71a790
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions docs/ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ ansible-playbook cloud_instance.yml -e "flavor_name='h2.large'"
```

You can combine both options:

```bash
ansible-playbook cloud_instance.yml -e "image_name='Ubuntu 22.04 LTS Snapshot (20230404)'" -e "flavor_name='h2.large'"
```
Expand Down Expand Up @@ -125,20 +125,20 @@ ansible-playbook site.yml -e backend_repo_version='backend-branch-name' -e front
```

To specify different IP of the backend and frontend:

```bash
ansible-playbook site.yml -e frontend_backend_hostname='149.156.182.181' -e frontend_ui_hostname='149.156.182.181' -e backend_repo_version='backend-branch-name' -e frontend_repo_version='frontend-branch-name'
```
or

```
ansible-playbook site.yml -e frontend_backend_hostname='yap-dev.c3.plgrid.pl' -e frontend_backend_url='https://yap-dev.c3.plgrid.pl:5000' -e frontend_ui_hostname='yap-dev.c3.plgrid.pl' -e frontend_ui_hostname='https://yap-dev.c3.plgrid.pl'
ansible-playbook site.yml -e frontend_backend_hostname='yap-dev.c3.plgrid.pl' -e frontend_backend_url='https://yap-dev.c3.plgrid.pl:5000' -e frontend_ui_hostname='yap-dev.c3.plgrid.pl' -e frontend_ui_hostname='https://yap-dev.c3.plgrid.pl'
```

or
or

```
ansible-playbook site.yml -e @plgrid_vars.yml
ansible-playbook site.yml -e @yap_dev_vars.yml
```

You can also run only few stages of the deployment. For example to perform only installation of necessary packages, use the following command:
Expand Down Expand Up @@ -166,4 +166,4 @@ ansible-playbook site.yml -e mode=clean

```bash
ansible-playbook cloud_instance.yml -e mode=clean
```
```
2 changes: 1 addition & 1 deletion docs/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ The `REACT_APP_` prefix is required by the create-react-app tool, see https://cr
These variables needs to be provided to the docker compose files via the `.env` file, both for backend and the frontend parts.
The backend propagates this variable to the `yaptide_flask` container, to be able to verify keycloak tokens.
The frontend needs to know the URL of the keycloak server, so it can redirect the user to the login page.
To properly setup these variables in case of ansible deployment, please use `plgrid_vars.yml` as an example.
To properly setup these variables in case of ansible deployment, please use `yap_dev_vars.yml` as an example.

0 comments on commit d71a790

Please sign in to comment.