Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

SORMAS-Foundation/SORMAS-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sormas-docker-ansible

Allows you to install the dockerized version of sormas via ansible.

Tested with following OS:

  • Ubuntu 16 LTS
  • Ubuntu 18 LTS
  • CentOS 7

Prequisites

  1. Change the remote_user inside the ansible.cfg to the user you want to execute the playbooks (make sure he has root privileges)
  2. Tweak the vars inside vars/ folder to your needs.
  3. Execute the install-galaxy-roles.sh to install the needed roles from the ansible-galaxy
    ./install-galaxy-roles.sh
  4. Execute the site.yml
    ansible-playbook site.yml

Important notes!

Depending on your current infrastructure, be sure to set the correct booleans under the "### LetsEncrypt variables ###" section inside vars/vars.yml to match your needs

Installation with LetsEncrypt

If you want to use LetsEncrypt to secure your SORMAS installation

use_letsencrypt: true
selfsigned_cert_generation: false
use_existing_certs: false
acme_mail: <your@email> # Make sure you set this to a valid address, otherwise the certificate generation will fail!

Installation behind a existing reverse proxy

The webserver will create selfsigned certificates to secure the connection between your existing reverse proxy and the webserver itself
This option can also be used, to test the installation on your local workstation / inside a LAN environment

use_letsencrypt: false
selfsigned_cert_generation: true
use_existing_certs: false

Installation with existing certificate

If you already have an existing certificate you want to use, place them inside the roles/sormas-installation/files folder
Make sure you name your fullchain-certificate fullchain.pem and your private key privkey.pem

use_letsencrypt: false
selfsigned_cert_generation: false
use_existing_certs: true

Known Problems

Sometimes the sormas-container won't come up. This can be checked by look at the logs:

cd /root/sormas-docker
docker-compose logs -f sormas
# If the logs stuck at
Waiting for sormas DB to get ready ...
# or at
Server setup completed.

Just restart the container

docker-compose restart sormas

About

Install containerized SORMAS via ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages