1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #302 from iiab/master

sync from iiab/iiab
This commit is contained in:
A Holt 2019-10-15 17:42:58 -04:00 committed by GitHub
commit 846e550801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 18 deletions

View file

@ -25,23 +25,27 @@
group: root group: root
mode: 0755 mode: 0755
# 2019-10-14: An alternative might be to put KOLIBRI_USER="kolibri" into
# /etc/kolibri/conf.d/iiab.conf
- name: Save kolibri_user ({{ kolibri_user }}) to /etc/kolibri/username - name: Save kolibri_user ({{ kolibri_user }}) to /etc/kolibri/username
copy: copy:
content: "{{ kolibri_user }}" content: "{{ kolibri_user }}" # i.e. kolibri
dest: /etc/kolibri/username dest: /etc/kolibri/username
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
# 2019-10-14: An alternative mentioned by @benjaoming (Benjamin Bach) would be
# to put KOLIBRI_HOME="/library/kolibri" into /etc/kolibri/conf.d/iiab.conf
- name: Save kolibri_home (KOLIBRI_HOME="{{ kolibri_home }}") to /etc/kolibri/daemon.conf - name: Save kolibri_home (KOLIBRI_HOME="{{ kolibri_home }}") to /etc/kolibri/daemon.conf
copy: copy:
content: 'KOLIBRI_HOME="{{ kolibri_home }}"' content: 'KOLIBRI_HOME="{{ kolibri_home }}"' # i.e. /library/kolibri
dest: /etc/kolibri/daemon.conf dest: /etc/kolibri/daemon.conf
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
- name: apt install latest Kolibri .deb from {{ kolibri_deb_url }} (populates {{ kolibri_home }}, migrates database) # i.e. /library/kolibri - name: apt install latest Kolibri .deb from {{ kolibri_deb_url }} (populates {{ kolibri_home }} / migrates database, based on params set in /etc/kolibri)
apt: apt:
deb: "{{ kolibri_deb_url }}" # https://learningequality.org/r/kolibri-deb-latest deb: "{{ kolibri_deb_url }}" # https://learningequality.org/r/kolibri-deb-latest
environment: environment:
@ -96,13 +100,15 @@
become_user: "{{ kolibri_user }}" become_user: "{{ kolibri_user }}"
when: kolibri_provision | bool when: kolibri_provision | bool
- name: chown -R {{ kolibri_user }}:{{ apache_user }} {{ kolibri_home }} for good measure? # 2019-10-14: This stanza should not be necessary according to @benjaoming
file: # (Benjamin Bach) especially as migration & provisiondevice were run above.
path: "{{ kolibri_home }}" # /library/kolibri #- name: chown -R {{ kolibri_user }}:{{ apache_user }} {{ kolibri_home }} for good measure?
owner: "{{ kolibri_user }}" # kolibri # file:
group: "{{ apache_user }}" # www-data (on Debian/Ubuntu/Raspbian) # path: "{{ kolibri_home }}" # /library/kolibri
recurse: yes # owner: "{{ kolibri_user }}" # kolibri
when: kolibri_provision | bool # group: "{{ apache_user }}" # www-data (on Debian/Ubuntu/Raspbian)
# recurse: yes
# when: kolibri_provision | bool
# 2019-10-07: Moved to roles/httpd/tasks/main.yml # 2019-10-07: Moved to roles/httpd/tasks/main.yml

View file

@ -1,7 +1,7 @@
# Lokole PDF (User's Guide) gets copied for offline use (http://box/info) here: # Lokole PDF (User's Guide) gets copied for offline use (http://box/info) here:
# https://github.com/iiab/iiab/blob/master/roles/httpd/templates/refresh-wiki-docs.sh#L47 # https://github.com/iiab/iiab/blob/master/roles/httpd/templates/refresh-wiki-docs.sh#L47
- name: "Install 7 packages for Lokole: python3, python3-pip, python3-venv, python3-dev, libffi-dev, libssl-dev, bcrypt" - name: "Install 7 packages for Lokole: python3, python3-pip, python3-venv, python3-dev, libffi-dev, libssl-dev, python3-bcrypt"
apt: apt:
name: name:
- python3 - python3
@ -10,7 +10,8 @@
- python3-dev - python3-dev
- libffi-dev - libffi-dev
- libssl-dev - libssl-dev
- bcrypt #- bcrypt does not exist on Ubuntu 19.10
- python3-bcrypt # 2019-10-14: should work across modern Linux OS's
state: present state: present
tags: tags:
- install - install

View file

@ -34,9 +34,10 @@
url: "{{ iiab_map_url }}/assets/bboxes.geojson" url: "{{ iiab_map_url }}/assets/bboxes.geojson"
dest: '{{ vector_map_path }}/maplist/assets/' dest: '{{ vector_map_path }}/maplist/assets/'
- name: Install python-geojson package, that helps with geojson - name: Install python3-geojson package, that helps with geojson
package: package:
name: python-geojson #name: python-geojson does not exist on Ubuntu 19.10
name: python3-geojson # 2019-10-14: should work across modern Linux OS's
state: present state: present
- name: Install /usr/bin/iiab-update-map for updating of Map Pack catalog & descriptions - name: Install /usr/bin/iiab-update-map for updating of Map Pack catalog & descriptions

View file

@ -25,5 +25,5 @@ php_version: 7.3
postgresql_version: 11 postgresql_version: 11
systemd_location: /lib/systemd/system systemd_location: /lib/systemd/system
# Upgrade OS's own Calibre to very latest: # Upgrade OS's own Calibre to very latest:
calibre_via_debs: True calibre_via_debs: False
calibre_via_python: False calibre_via_python: True

View file

@ -22,7 +22,7 @@ mysql_service: mariadb
apache_log: /var/log/apache2/access.log apache_log: /var/log/apache2/access.log
sshd_package: openssh-server sshd_package: openssh-server
sshd_service: ssh sshd_service: ssh
php_version: 7.2 php_version: 7.3
# "postgresql_version: 11.2" fails (too detailed for /etc/systemd/system/postgresql-iiab.service on Ubuntu 19.04) # "postgresql_version: 11.2" fails (too detailed for /etc/systemd/system/postgresql-iiab.service on Ubuntu 19.04)
postgresql_version: 11 postgresql_version: 11
systemd_location: /lib/systemd/system systemd_location: /lib/systemd/system