Skip to content
Snippets Groups Projects
Commit c1bcf75f authored by Gallenkamp, Fabian's avatar Gallenkamp, Fabian
Browse files

improved doc

parent 88120882
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
## preparation ## preparation
### place ssl/tls certificates and key-file (unfortunately not scriptable due to security best-practices) ### place ssl/tls certificate and key-file (unfortunately not scriptable due to security best-practices)
1. Use ``scp mycert.crt user@host:/home/user/`` and ``scp mycert.key user@host:/home/user/`` or use [WinSCP](https://de.wikipedia.org/wiki/WinSCP) to copy over the certificate files. 1. Use ``scp mycert.crt user@host:/home/user/`` and ``scp mycert.key user@host:/home/user/`` or use [WinSCP](https://de.wikipedia.org/wiki/WinSCP) to copy over the certificate files.
2. Establish a ssh connection onto your server. 2. Establish a ssh connection onto your server.
3. Then move the certificate files into place: 3. Then move the certificate files into place:
...@@ -30,18 +30,16 @@ ...@@ -30,18 +30,16 @@
3. Then clone this ansible project: 3. Then clone this ansible project:
``git clone https://gitlab.rrz.uni-hamburg.de/bax1489/otree-ansible.git ~/otree-ansible/`` ``git clone https://gitlab.rrz.uni-hamburg.de/bax1489/otree-ansible.git /opt/otree/otree-ansible/``
### configure playbook ### configure playbook
1. Copy the example config ``cp ~/otree-ansible/group_vars/otree_servers.yml.example ~/otree-ansible/group_vars/otree_servers.yml`` 1. Copy the example config ``cp /opt/otree/otree-ansible/group_vars/otree_servers.yml.example /opt/otree/otree-ansible/group_vars/otree_servers.yml``
2. Adapt your (inventory-)config with ``nano ~/otree-ansible/group_vars/otree_servers.yml`` from the provided example accordingly (press "Strg-x", then "j" to save): 2. Adapt your (inventory-)config with ``nano /opt/otree/otree-ansible/group_vars/otree_servers.yml`` from the provided example accordingly (press "Strg-x", then "j" to save):
``` ```
# which otree instance should be delivered as default # fqdn of the otree parents server
otree_master: "otree1" otree_domain: "company.org"
# fqdn of the otree server
otree_domain: "otree.company.org"
# linux group for the otree users # linux group for the otree users
otree_group_name: "otreeusers" otree_group_name: "otreeusers"
......
--- ---
ansible_user: "mylinuxuser" ansible_user: "mylinuxuser"
ansible_password: "mysecretpw" ansible_become_pass: "mysecretpw"
ansible_sudo_pass: "mysecretpw"
ansible_connection: "local" ansible_connection: "local"
nginx_config_path: "/etc/nginx" nginx_config_path: "/etc/nginx"
nginx_sites_available: "{{ nginx_config_path }}/sites-available" nginx_sites_available: "{{ nginx_config_path }}/sites-available"
nginx_sites_enabled: "{{ nginx_config_path }}/sites-enabled" nginx_sites_enabled: "{{ nginx_config_path }}/sites-enabled"
otree_master: "otree1" otree_domain: "company.org"
# which otree instance should be delivered as default # fqdn of the otree parent domain
otree_domain: "otree.company.org"
# fqdn of the otree server
otree_group_name: "otreeusers" otree_group_name: "otreeusers"
# linux group for the otree users # linux group for the otree users
...@@ -42,6 +39,7 @@ otree_users: ...@@ -42,6 +39,7 @@ otree_users:
override: no override: no
app_repo: "https://github.com/oTree-org/oTree.git" app_repo: "https://github.com/oTree-org/oTree.git"
# optional: if set clone provided git repository instead of provided directory # optional: if set clone provided git repository instead of provided directory
# for ssh: git@domain:project-group/project.git
pre_release: yes pre_release: yes
redis: "redis://localhost:6379/2" redis: "redis://localhost:6379/2"
database: "sqlite:////home/otree2/db.sqlite3" database: "sqlite:////home/otree2/db.sqlite3"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment