Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
MIGRATION notice
Browse files Browse the repository at this point in the history
  • Loading branch information
l3d00m authored Sep 14, 2024
1 parent ea168e7 commit 26e5965
Showing 1 changed file with 1 addition and 49 deletions.
50 changes: 1 addition & 49 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,3 @@
# REIMS2 Ansible role

[![deploy](https://github.com/reims2/reims2-ansible-playbook/actions/workflows/deploy.yml/badge.svg?event=push)](https://github.com/reims2/reims2-ansible-playbook/actions/workflows/deploy.yml)
[![ansible-lint](https://github.com/reims2/reims2-ansible-playbook/actions/workflows/lint.yml/badge.svg?event=push)](https://github.com/reims2/reims2-ansible-playbook/actions/workflows/lint.yml)

> Ansible is an IT automation tool. It can configure systems and deploy software.
For deploying a complete instance of REIMS2, do the following **on your local dev machine**:

0. [Install ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
1. Install ansible dependencies with `ansible-galaxy install -r requirements.yml`
2. Add your server to the existing `hosts` file
3. Add config variables to `main.yml` (see below)
4. Create a file `creds/pub_keys` containing your SSH public keys (password based SSH login will be disabled!)
5. If you want to restore a database dump, set the `db_dump` variable to include it. It's recommend to use the `dump.example.sql` file in this repo.

Run setup script for hardening first (strongly recommended):

```bash
ansible-playbook -i hosts setup.yml
```

Now deploy REIMS2 with:

```bash
# vaulti-id can be removed if not using ansible-vault
ansible-playbook -i hosts main.yml --vault-id <plaintext-file-with-vault-password>
```

**That's it, REIMS should be up and running!**

## Initial setup

If you use the example `dump.sql`, the initial username is `test` and password `testtest`. It's recommended to create a new admin user, login as that and delete this initial user.

A grafana monitoring solution will be available at `monitoring.<yourdomain>`. Don't forget to configure it with a password. You must create a user in the database with name `monitoring` and password like the variable `monitoring_db_password`. It should have the privileges `SELECT on *.*, PROCESS, REPLICATION CLIENT`.

## Important role variables

These are the most important variables to set in `main.yml`:

| Variable | Description | Default |
| ------------------------- | ---------------------------------------------------------------------------------------------------- | ------------ |
| `backend_jwt_token` | JWT token for backend authentication | REQUIRED |
| `reims2_db_password` | Password for REIMS2 database user | REQUIRED |
| `reims2_db_root_password` | Password for REIMS2 database root user | REQUIRED |
| `aws_key_id` | AWS key ID for S3 backups | REQUIRED |
| `aws_secret_key` | AWS secret key for S3 backups | REQUIRED |
| `stack_name` | Internal name for the REIMS stack. Must be unique and can't contain special characters | REQUIRED |
| `app_domain` | Domain name for REIMS2 | `reims2.app` |
| `reset_docker_stack` | Docker stack configuration will be fully reset to fix any hickups. Usually not recommended for prod. | `false` |
[MIGRATED to monorepo](https://github.com/reims2/reims2/tree/main/ansible)

0 comments on commit 26e5965

Please sign in to comment.