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

Merge pull request #168 from iiab/master

sync from iiab/iiab
This commit is contained in:
A Holt 2018-10-10 20:14:50 -04:00 committed by GitHub
commit ff89b1d58b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 42 additions and 19 deletions

View file

@ -20,13 +20,13 @@ calibre_sample_book: "Metamorphosis-jackson.epub"
calibre_src_url: "https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py" calibre_src_url: "https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py"
calibre_deb_url: "{{ iiab_download_url }}" # http://download.iiab.io/packages calibre_deb_url: "{{ iiab_download_url }}" # http://download.iiab.io/packages
# Above URL must offer both .deb files below, corresponding with variable # Above URL must offer both .deb files below: (for scripts/calibre-install-pinned-rpi.sh to run)
# value(s) further below: (for scripts/calibre-install-pinned-rpi.sh to run) calibre_deb_pin_version: 3.32.0+dfsg-1 # for calibre_3.32.0+dfsg-1_all.deb (25M, 2018-09-28)
# - calibre_3.32.0+dfsg-1_all.deb (25M, 2018-09-28) #calibre_bin_deb_pin_version: "{{ calibre_deb_pin_version }}" # for calibre-bin_3.32.0+dfsg-1_armhf.deb (707K, 2018-10-08) HAD WORKED 2018-10-08 BUT NO LONGER on 2018-10-10:
# - calibre-bin_3.32.0+dfsg-1_armhf.deb (707K, 2018-10-08) WORKS DESPITE BEING # The following packages have unmet dependencies:
# PUBLISHED 11+ HRS BEFORE NON-WORKING calibre-bin_3.32.0+dfsg-1+b1_armhf.deb # calibre-bin : Depends: libpodofo0.9.5 (>= 0.9.5-7) but it is not installable
calibre_deb_pin_version: 3.32.0+dfsg-1 # E: Unable to correct problems, you have held broken packages.
calibre_bin_deb_pin_version: "{{ calibre_deb_pin_version }}" calibre_bin_deb_pin_version: 3.32.0+dfsg-1+b1 # for calibre-bin_3.32.0+dfsg-1+b1_armhf.deb (706K, 2018-10-08) SEEMS TO WORK AS OF 2018-10-10, THOUGH MYSTERIOUSLY IT HAD NOT WORKED ON 2018-10-08
# USE TO TEST debs.yml (RASPBIAN APPROACH!) ON DEBIAN 9.X: (now handled by calibre_via_debs in /opt/iiab/iiab/vars/*) # USE TO TEST debs.yml (RASPBIAN APPROACH!) ON DEBIAN 9.X: (now handled by calibre_via_debs in /opt/iiab/iiab/vars/*)
#calibre_debs_on_debian: True #calibre_debs_on_debian: True

View file

@ -64,9 +64,9 @@ services_externally_visible: False
# DNS / name resolution # DNS / name resolution
dhcpd_install: True dhcpd_install: True
dhcpd_enabled: True dhcpd_enabled: False
#dhcp_service: ???? # Set in individual OS's /opt/iiab/iiab/vars/<OS>.yml for use in roles/network/tasks/dhcpd.yml #dhcp_service: ???? # Set in individual OS's /opt/iiab/iiab/vars/<OS>.yml for use in roles/network/tasks/dhcpd.yml
dhcp_service2: disabled # Proposed by @jvonau to solve #1184 -> PR #1185 during transition from named to dnsmasq, as required by roles/network/tasks/computed_services.yml #dhcp_service2: "dhcpd disabled" # Moved to roles/network/tasks/computed_services.yml as community transitions from named/BIND to dnsmasq (PR #1202)
named_install: True named_install: True
named_enabled: False named_enabled: False
dnsmasq_enabled: True dnsmasq_enabled: True

View file

@ -23,7 +23,7 @@
set_fact: set_fact:
named_enabled: True named_enabled: True
dhcpd_enabled: False dhcpd_enabled: False
dhcp_service2: "dhcpd" dhcp_service2: "dhcpd disabled"
when: not dnsmasq_enabled and iiab_network_mode == "Appliance" when: not dnsmasq_enabled and iiab_network_mode == "Appliance"
- name: LAN configured - non-dnsmasq - name: LAN configured - non-dnsmasq
@ -37,8 +37,17 @@
set_fact: set_fact:
named_enabled: False named_enabled: False
dhcpd_enabled: False dhcpd_enabled: False
dnsmasq_enabled: True
dhcp_service2: "dnsmasq" dhcp_service2: "dnsmasq"
when: dnsmasq_install and dnsmasq_enabled and iiab_network_mode != "Appliance" when: dnsmasq_install and iiab_network_mode != "Appliance"
- name: LAN not configured - dnsmasq
set_fact:
named_enabled: False
dhcpd_enabled: False
dnsmasq_enabled: False
dhcp_service2: "dnsmasq disabled"
when: dnsmasq_install and iiab_network_mode == "Appliance"
- name: Add 'network' variable values (from computed_services.yml) to /etc/iiab/iiab.ini - name: Add 'network' variable values (from computed_services.yml) to /etc/iiab/iiab.ini
ini_file: ini_file:
@ -47,11 +56,21 @@
option: "{{ item.option }}" option: "{{ item.option }}"
value: "{{ item.value }}" value: "{{ item.value }}"
with_items: with_items:
- option: iiab_network_mode_applied - option: dansguardian_enabled
value: "{{ dansguardian_enabled }}"
- option: squid_enabled
value: "{{ squid_enabled }}"
- option: wondershaper_enabled
value: "{{ wondershaper_enabled }}"
- option: iiab_network_mode(applied)
value: "{{ iiab_network_mode }}" value: "{{ iiab_network_mode }}"
- option: dhcpd_enabled
value: "{{ dhcpd_enabled }}"
- option: dhcp_service2 - option: dhcp_service2
value: "{{ dhcp_service2 }}" value: "{{ dhcp_service2 }}"
- option: named_enabled
value: "{{ named_enabled }}"
- option: dnsmasq_enabled - option: dnsmasq_enabled
value: "{{ dnsmasq_enabled }}" value: "{{ dnsmasq_enabled }}"
- option: no_net_restart # - option: no_net_restart
value: "{{ no_net_restart }}" # value: "{{ no_net_restart }}"

View file

@ -20,19 +20,19 @@
dest: /etc/dhcpcd.conf dest: /etc/dhcpcd.conf
src: network/dhcpcd.conf.j2 src: network/dhcpcd.conf.j2
- name: New raspbian requires country code -- check for it - name: New Raspbian requires country code -- check for it
shell: grep country /etc/wpa_supplicant/wpa_supplicant.conf shell: grep country /etc/wpa_supplicant/wpa_supplicant.conf
register: country_code register: country_code
ignore_errors: True ignore_errors: True
- name: Put a country code if it does not exist - name: Put country code ({{ host_country_code }}) in /etc/wpa_supplicant/wpa_supplicant.conf if nec
lineinfile: lineinfile:
dest: /etc/wpa_supplicant/wpa_supplicant.conf path: /etc/wpa_supplicant/wpa_supplicant.conf
regexp: "^country.*" regexp: "^country.*"
line: country={{ host_country_code }} line: country={{ host_country_code }}
when: country_code is defined and country_code.stdout == "" when: country_code is defined and country_code.stdout == ""
- name: Enable the wifi with rfkill - name: Enable the WiFi with rfkill
shell: rfkill unblock 0 shell: rfkill unblock 0
ignore_errors: True ignore_errors: True

View file

@ -1,3 +1,4 @@
activity-server
ajenti ajenti
authserver authserver
debian_schooltool debian_schooltool
@ -6,6 +7,9 @@ ejabberd_xs
idmgr idmgr
moodle-1.9 moodle-1.9
nodogsplash nodogsplash
owncloud
pathagar pathagar
rachel
schooltool schooltool
sugar-stats sugar-stats
xovis