Skip to content

Commit

Permalink
fix dns issues and updates release file
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurens Toning committed Sep 9, 2022
1 parent c011046 commit 4173934
Show file tree
Hide file tree
Showing 8 changed files with 727 additions and 13 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ The end users can access the available resources after they are connected to the

The following links are provided to access the resources:

- **Main interface** - www.elimupi.local
- **Kolibri** - kolibri.elimupi.local
- **Kiwix** - wiki.elimupi.local
- **files** - files.elimupi.local
- **Moodle** - moodle.elimupi.local
- **Main interface** - start.elimupi.online
- **Kolibri** - kolibri.elimupi.online
- **Kiwix** - wiki.elimupi.online
- **Fdroid** - fdroid.elimupi.online
- **files** - files.elimupi.online
- **Moodle** - moodle.elimupi.online
- **Admin** - admin.elimupi.online

After you finished the installation you need to visit khan.local and create an Admin account.

Expand All @@ -81,7 +83,7 @@ Then you need to login with the Admin account and go to Manage --> "Please follo

**NOTE4**: For Kolibri content use Kolibri Studio - https://studio.learningequality.org

Last updated : 2021/08/09
Last updated : 2022/09/09

Applicable Licenses: See licenses file.

Expand Down
7 changes: 4 additions & 3 deletions ansible/group_vars/all/vars.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# Elimupi release version
elimupi_release: .0.0
elimupi_release: 3.0.0

elimupi_release_file: "/root/elimupi_release-{{ elimupi_release }}-{{ lookup('pipe', 'date +%Y%m%d-%H%M') }}"

Expand Down Expand Up @@ -66,6 +66,7 @@ moodle_httpd_group: www-data
moodle_wwwroot: "http://moodle.elimupi.online"

# Kolibri config
# The databases and storage

kolibri_install: True
kolibri_enabled: True
Expand All @@ -85,10 +86,10 @@ kolibri_user: pi

# Kolibri setup will be provisioned with default administration account, preset and
# language. You could turn this to 'False' while reinstalling kolibri.
kolibri_provision: True
kolibri_provision: False

# Kolibri Facility name
kolibri_facility: 'elimu'
kolibri_facility: 'DEAN - Elimupi'

# Kolibri Preset type: formal, nonformal, informal
kolibri_preset: 'formal'
Expand Down
5 changes: 5 additions & 0 deletions ansible/roles/common/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
ansible.builtin.service:
name: nginx
state: restarted

- name: Restart dnsmasq
ansible.builtin.service:
name: dnsmasq
state: restarted
10 changes: 10 additions & 0 deletions ansible/roles/common/tasks/dnsmasq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Configure dnsmasq
ansible.builtin.template:
src: dnsmasq.conf.j2
dest: /etc/dnsmasq.conf

- name: Restart dnsmasq
ansible.builtin.service:
name: dnsmasq
state: restarted
11 changes: 11 additions & 0 deletions ansible/roles/common/tasks/kolibri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@
- kolibri
- kolibri-server

- name: Create kolibri default facility name, admin account and language.
shell: >
export KOLIBRI_HOME="{{ kolibri_home }}" &&
"{{ kolibri_exec_path }}" manage provisiondevice --facility "{{ kolibri_facility }}"
--superusername "{{ kolibri_admin_user }}" --superuserpassword "{{ kolibri_admin_password }}"
--preset "{{ kolibri_preset }}" --language_id "{{ kolibri_language }}" --verbosity 0 --noinput
ignore_errors: yes
when: kolibri_provision


# Configure kolibri to use content disk
- name: Copy kolibri 099-user.conf
ansible.builtin.copy:
Expand All @@ -44,6 +54,7 @@
group: root
mode: '0755'

# Configure kolibri to use content disk
- name: Copy kolibri daemon.conf
ansible.builtin.copy:
src: kolibri/daemon.conf
Expand Down
3 changes: 3 additions & 0 deletions ansible/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
# git clone
- include_tasks: repo.yml

# configure dnsmasq
- include_tasks: dnsmasq.yml

# setup wifi AP
- include_tasks: setup-wifi.yml

Expand Down
9 changes: 5 additions & 4 deletions ansible/roles/common/tasks/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

- name: Record rasbian image file in release file
ansible.builtin.shell: |
echo "{{ elimupi_release_file }}" >> "{{ elimupi_release_file }}"
cat /boot/issue.txt >> "{{ elimupi_release_file }}"
apt list --installed >> "{{ elimupi_release_file }}"
echo "Release:" "{{ elimupi_release_file }}" | awk -F "/" '{print $1$3}' >> "{{ elimupi_release_file }}"
cat /proc/cpuinfo | grep --ignore-case serial >> "{{ elimupi_release_file }}"
echo "Raspberry Pi OS Distribution Release:" | cat - /boot/issue.txt >> "{{ elimupi_release_file }}"
echo "Packages installed:" >> "{{ elimupi_release_file }}"
apt list --installed >> "{{ elimupi_release_file }}"
args:
executable: /bin/bash

Loading

0 comments on commit 4173934

Please sign in to comment.