1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Merge pull request #480 from holta/master

clarifs in medium.localvars, default_vars.yml, runansible, 2-common/tasks/iiab_ini.yml, network/tasks/squid.yml, moodle/tasks/main.yml, sugarizer/tasks/main.yml, cups/tasks/main.yml, calibre/tasks/main.yml, nextcloud/tasks/*.yml, kalite/tasks/*.yml, README-historical.md
This commit is contained in:
A Holt 2017-11-08 00:52:21 -05:00 committed by GitHub
commit f687037996
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 97 additions and 73 deletions

View file

@ -34,8 +34,8 @@ Please read the `installation`_ documentation.
See the `XSCE project`_ for more information about the project. See the `XSCE project`_ for more information about the project.
.. _XSCE wiki: https://github.com/XSCE/iiab/wiki .. _XSCE wiki: https://github.com/XSCE/xsce/wiki
.. _installation: https://github.com/XSCE/iiab/wiki/XSCE-Installation .. _installation: https://github.com/XSCE/xsce/wiki/XSCE-Installation
.. _ansible: http://www.ansibleworks.com/ .. _ansible: http://www.ansibleworks.com/
.. _ansible documentation: http://www.ansibleworks.com/docs/ .. _ansible documentation: http://www.ansibleworks.com/docs/
.. _XSCE project: http://schoolserver.org/ .. _XSCE project: http://schoolserver.org/

View file

@ -14,7 +14,7 @@
- option: 'iiab_dir' - option: 'iiab_dir'
value: '{{ iiab_dir }}' value: '{{ iiab_dir }}'
- name: add version section - name: Add version section
ini_file: dest='{{ iiab_config_file }}' ini_file: dest='{{ iiab_config_file }}'
section=version section=version
option='{{ item.option }}' option='{{ item.option }}'

View file

@ -6,13 +6,13 @@
mode=0755 mode=0755
when: ansible_distribution == "CentOS" when: ansible_distribution == "CentOS"
- name: Install Calibre - name: Install Calibre (CentOS)
shell: "{{ downloads_dir }}/calibre-installer.py >> /dev/null" shell: "{{ downloads_dir }}/calibre-installer.py >> /dev/null"
args: args:
creates: /usr/bin/calibre-uninstall creates: /usr/bin/calibre-uninstall
when: calibre_install and ansible_distribution == 'CentOS' when: calibre_install and ansible_distribution == 'CentOS'
- name: Install Calibre rpms - name: Install Calibre (OS's other than CentOS)
# the fedora rpm arm version, though older, takes care of dependencies, and exists # the fedora rpm arm version, though older, takes care of dependencies, and exists
package: name={{ item }} package: name={{ item }}
state=present state=present
@ -20,7 +20,7 @@
- calibre - calibre
when: calibre_install and ansible_distribution != 'CentOS' when: calibre_install and ansible_distribution != 'CentOS'
- name: Create Calibre service(s) and support scripts - name: Create calibre-serve.service and calibre.conf
template: backup=no template: backup=no
src={{ item.src }} src={{ item.src }}
dest={{ item.dest }} dest={{ item.dest }}
@ -52,7 +52,7 @@
state=stopped state=stopped
when: not calibre_enabled when: not calibre_enabled
- name: Add Calibre to service list - name: Add 'calibre-serve' to service list
ini_file: dest='{{ service_filelist }}' ini_file: dest='{{ service_filelist }}'
section=calibre section=calibre
option='{{ item.option }}' option='{{ item.option }}'

View file

@ -1,5 +1,5 @@
# administer this service by browsing to localhost:631 # administer this service by browsing to localhost:631
- name: get the CUPS package installed - name: Get the CUPS package installed
package: name={{ item }} package: name={{ item }}
state=present state=present
with_items: with_items:
@ -8,7 +8,7 @@
tags: tags:
- download - download
- name: Put our own config file in place, to permit local lan admin - name: Put our own config file in place, to permit local LAN admin
template: dest=/etc/cups/cupsd.conf template: dest=/etc/cups/cupsd.conf
src=cupsd.conf src=cupsd.conf
@ -22,7 +22,7 @@
state=link state=link
when: cups_enabled and is_debuntu when: cups_enabled and is_debuntu
- name: Enable services for cups - name: Enable services for CUPS (OS's other than Fedora 18)
service: name={{ item }} service: name={{ item }}
state=started state=started
enabled=yes enabled=yes
@ -31,17 +31,17 @@
- cups-browsed - cups-browsed
when: cups_enabled and not is_F18 when: cups_enabled and not is_F18
- name: Enable services for cups for XO laptops - name: Enable services for CUPS (Fedora 18, for XO laptops)
service: name=cups service: name=cups
state=started state=started
enabled=yes enabled=yes
when: cups_enabled and is_F18 when: cups_enabled and is_F18
- name: Permit headless admin of CUPS -- only works when cups daemon is running - name: Permit headless admin of CUPS -- only works when CUPS daemon is running
shell: "cupsctl --remote-admin" shell: "cupsctl --remote-admin"
when: cups_enabled when: cups_enabled
- name: Disable services for cups - name: Disable services for CUPS (OS's other than Fedora 18)
service: name={{ item }} service: name={{ item }}
state=stopped state=stopped
enabled=no enabled=no
@ -50,13 +50,13 @@
- cups-browsed - cups-browsed
when: not cups_enabled and not is_F18 when: not cups_enabled and not is_F18
- name: Disable services for cups for XO laptops - name: Disable services for CUPS (Fedora 18, for XO laptops)
service: name=cups service: name=cups
state=stopped state=stopped
enabled=no enabled=no
when: not cups_enabled and is_F18 when: not cups_enabled and is_F18
- name: add cups to service list - name: Add 'cups' to service list
ini_file: dest={{ service_filelist }} ini_file: dest={{ service_filelist }}
section=cups section=cups
option={{ item.option }} option={{ item.option }}
@ -65,7 +65,7 @@
- option: name - option: name
value: '"Common UNIX Printing System (CUPS)"' value: '"Common UNIX Printing System (CUPS)"'
- option: description - option: description
value: '"CUPS is a modular printing system which allows a computer to act as a print server. A computer running CUPS is a host that can accept print jobs from client computers, process them, and send them to the appropriate printer."' value: '"CUPS is a modular printing system which allows a computer to act as a print server. A computer running CUPS is a host that can accept print jobs from client computers, process them, and send them to the appropriate printer."'
- option: installed - option: installed
value: "{{ cups_install }}" value: "{{ cups_install }}"
- option: enabled - option: enabled

View file

@ -1,18 +1,18 @@
# By the time we get here we should have ka-lite of some version # By the time we get here we should have ka-lite of some version
# And the systemd unit files should be defined # And the systemd unit files should be defined
- name: Enable kalite-serve service - name: Enable 'kalite-serve' service
service: name=kalite-serve service: name=kalite-serve
enabled=yes enabled=yes
state=started state=started
- name: Disable kalite-serve service - name: Disable 'kalite-serve' service
service: name=kalite-serve service: name=kalite-serve
enabled=no enabled=no
state=stopped state=stopped
when: not kalite_enabled when: not kalite_enabled
# Since Fedora 18 we don't have a separate unit fiile for kalite-cron # Since Fedora 18 we don't have a separate unit file for kalite-cron
- name: Disable kalite cron server F18 - name: Disable kalite cron server F18
service: name=kalite-cron service: name=kalite-cron

View file

@ -1,6 +1,6 @@
# This is for Fedora 18, assumed to be an XO # This is for Fedora 18, assumed to be an XO
- name: Install dependent packages F18 - name: Install dependent packages (Fedora 18)
package: name={{ item }} package: name={{ item }}
state=present state=present
with_items: with_items:
@ -8,35 +8,35 @@
- expect - expect
when: is_F18 when: is_F18
- name: Install dependent pip packages F18 - name: Install dependent pip packages (Fedora 18)
pip: name=selenium pip: name=selenium
when: internet_available and is_F18 when: internet_available and is_F18
- name: Determine if kalite is already downloaded - name: Determine if KA Lite is already downloaded
stat: path={{ downloads_dir }}/ka-lite stat: path={{ downloads_dir }}/ka-lite
register: kalite register: kalite
- name: Download the latest kalite repo - name: Download the latest KA Lite repo
git: repo={{ kalite_repo_url }} git: repo={{ kalite_repo_url }}
dest={{ downloads_dir }}/ka-lite dest={{ downloads_dir }}/ka-lite
depth=1 depth=1
version="0.13.x" version="0.13.x"
ignore_errors: yes ignore_errors: yes
when: internet_available and kalite.stat.exists is defined and not kalite.stat.exists when: internet_available and kalite.stat.exists is defined and not kalite.stat.exists
- name: Create iiab-kalite user and password F18 - name: Create iiab-kalite user and password (Fedora 18)
user: name={{ kalite_user }} user: name={{ kalite_user }}
password={{ kalite_password_hash }} password={{ kalite_password_hash }}
update_password=on_create update_password=on_create
- name: Create kalite_root directory F18 - name: Create kalite_root directory (Fedora 18)
file: path={{ kalite_root }} file: path={{ kalite_root }}
owner=root owner=root
group=root group=root
mode=0755 mode=0755
state=directory state=directory
- name: Copy the kalite repo into place F18 - name: Copy the KA Lite repo into place (Fedora 18)
command: "rsync -at {{ downloads_dir }}/ka-lite/ {{ kalite_root }}" command: "rsync -at {{ downloads_dir }}/ka-lite/ {{ kalite_root }}"
- name: Make kalite_user owner - name: Make kalite_user owner
@ -54,7 +54,7 @@
group={{ kalite_user }} group={{ kalite_user }}
mode=0644 mode=0644
- name: Create kalite service(s) and support scripts - name: Create kalite-serve & kalite-cron services, and iiab_cronservectl.sh
template: backup=no template: backup=no
src={{ item.src }} src={{ item.src }}
dest={{ item.dest }} dest={{ item.dest }}

View file

@ -1,6 +1,6 @@
# This is for an OS other than Fedora 18 # This is for an OS other than Fedora 18
- name: Install missing packages required for kalite startup - name: Install missing packages required for KA Lite startup
package: name={{ item }} package: name={{ item }}
state=present state=present
with_items: with_items:
@ -10,7 +10,7 @@
get_url: url={{ kalite_requirements }} dest={{ pip_packages_dir }}/kalite.txt get_url: url={{ kalite_requirements }} dest={{ pip_packages_dir }}/kalite.txt
when: internet_available when: internet_available
- name: Install ka-lite dependencies with pip - name: Install KA Lite dependencies with pip (debuntu)
pip: requirements={{ pip_packages_dir }}/kalite.txt pip: requirements={{ pip_packages_dir }}/kalite.txt
virtualenv={{ kalite_venv }} virtualenv={{ kalite_venv }}
virtualenv_site_packages=no virtualenv_site_packages=no
@ -19,7 +19,7 @@
# extra_args="--disable-pip-version-check" # extra_args="--disable-pip-version-check"
when: internet_available and is_debuntu when: internet_available and is_debuntu
- name: Install ka-lite with pip - name: Install KA Lite with pip (OS's other than debuntu)
pip: name=ka-lite-static pip: name=ka-lite-static
version={{ kalite_version }} version={{ kalite_version }}
virtualenv={{ kalite_venv }} virtualenv={{ kalite_venv }}
@ -29,7 +29,7 @@
# extra_args="--disable-pip-version-check" # extra_args="--disable-pip-version-check"
when: internet_available and is_debuntu when: internet_available and is_debuntu
- name: Install ka-lite dependencies with pip - name: Install KA Lite dependencies with pip (debuntu)
pip: requirements={{ pip_packages_dir }}/kalite.txt pip: requirements={{ pip_packages_dir }}/kalite.txt
virtualenv={{ kalite_venv }} virtualenv={{ kalite_venv }}
virtualenv_site_packages=no virtualenv_site_packages=no
@ -37,7 +37,7 @@
# extra_args="--disable-pip-version-check" # extra_args="--disable-pip-version-check"
when: internet_available and not is_debuntu when: internet_available and not is_debuntu
- name: Install ka-lite with pip - name: Install KA Lite with pip (OS's other than debuntu)
pip: name=ka-lite-static pip: name=ka-lite-static
version={{ kalite_version }} version={{ kalite_version }}
virtualenv={{ kalite_venv }} virtualenv={{ kalite_venv }}
@ -46,7 +46,7 @@
# extra_args="--disable-pip-version-check" # extra_args="--disable-pip-version-check"
when: internet_available and not is_debuntu when: internet_available and not is_debuntu
- name: Default is to have cronserve started with kalite - name: Default is to have cronserve started with KA Lite
set_fact: set_fact:
job_scheduler_stanza: "" job_scheduler_stanza: ""
@ -55,7 +55,7 @@
job_scheduler_stanza: "--skip-job-scheduler " job_scheduler_stanza: "--skip-job-scheduler "
when: not kalite_cron_enabled when: not kalite_cron_enabled
- name: Create kalite service(s) and support scripts - name: Create 'kalite-serve' service, kalite.sh and kalite.conf
template: backup=no template: backup=no
src={{ item.src }} src={{ item.src }}
dest={{ item.dest }} dest={{ item.dest }}

View file

@ -2,17 +2,17 @@
# Assume all XOs are F18 and nothing else is # Assume all XOs are F18 and nothing else is
- name: Calc kalite db file name F18 - name: Calc KA Lite db file name (Fedora 18)
set_fact: set_fact:
kalite_db_name: "{{ kalite_root }}/kalite/database/data.sqlite" kalite_db_name: "{{ kalite_root }}/kalite/database/data.sqlite"
when: is_F18 when: is_F18
- name: Calc kalite db file name - name: Calc KA Lite db file name (OS's other than Fedora 18)
set_fact: set_fact:
kalite_db_name: "{{ kalite_root }}/database/data.sqlite" kalite_db_name: "{{ kalite_root }}/database/data.sqlite"
when: not is_F18 when: not is_F18
- name: See if kalite is already configured - name: See if KA Lite is already configured
stat: path="{{ kalite_db_name }}" stat: path="{{ kalite_db_name }}"
register: kalite_installed register: kalite_installed
@ -34,7 +34,7 @@
- include_tasks: enable.yml - include_tasks: enable.yml
- name: Add kalite to service list - name: Add 'kalite-serve' to service list
ini_file: dest='{{ service_filelist }}' ini_file: dest='{{ service_filelist }}'
section=kalite section=kalite
option='{{ item.option }}' option='{{ item.option }}'
@ -43,7 +43,7 @@
- option: name - option: name
value: kalite value: kalite
- option: description - option: description
value: '"KA-Lite is a server to present Khan Academy videos offline and to download them."' value: '"KA Lite is a server to present Khan Academy videos offline and to download them."'
- option: path - option: path
value: "{{ kalite_root }}" value: "{{ kalite_root }}"
- option: server_name - option: server_name

View file

@ -1,11 +1,11 @@
# This is for Fedora 18, assumed to be an XO # This is for Fedora 18, assumed to be an XO
- name: Run the setup using kalite manage F18 - name: Run the setup using 'kalite manage' (Fedora 18)
command: "/usr/bin/su {{ kalite_user }} -c '{{ kalite_root }}/bin/kalite manage setup --username={{ kalite_user }} --password={{ kalite_password }} --noinput'" command: "/usr/bin/su {{ kalite_user }} -c '{{ kalite_root }}/bin/kalite manage setup --username={{ kalite_user }} --password={{ kalite_password }} --noinput'"
async: 900 async: 900
poll: 10 poll: 10
- name: Finish setup by running kalite start F18 - name: Finish setup by running 'kalite start' (Fedora 18)
command: "/usr/bin/su {{ kalite_user }} -c '{{ kalite_root }}/bin/kalite start'" command: "/usr/bin/su {{ kalite_user }} -c '{{ kalite_root }}/bin/kalite start'"
async: 900 async: 900
poll: 10 poll: 10

View file

@ -7,7 +7,7 @@
mode=0755 mode=0755
state=directory state=directory
- name: Run the setup using kalite manage - name: Run the setup using 'kalite manage'
command: "{{ kalite_program }} manage setup --username={{ kalite_admin_user }} --password={{ kalite_admin_password }} --noinput" command: "{{ kalite_program }} manage setup --username={{ kalite_admin_user }} --password={{ kalite_admin_password }} --noinput"
environment: environment:
KALITE_HOME: "{{ kalite_root }}" KALITE_HOME: "{{ kalite_root }}"

View file

@ -21,11 +21,11 @@
- php{{ php_version }}-cli - php{{ php_version }}-cli
when: is_debuntu when: is_debuntu
- name: php-zip debian 8-9 changed name - name: php-zip name for Debian 9 or Ubuntu
package: name=php{{ php_version }}-zip package: name=php{{ php_version }}-zip
when: is_debian_9 or is_ubuntu when: is_debian_9 or is_ubuntu
- name: php-zip debian 8-9 changed name - name: php-zip name for Debian 8
package: name=php-pclzip package: name=php-pclzip
when: is_debian_8 when: is_debian_8

View file

@ -98,6 +98,6 @@
- option: name - option: name
value: dansguardian value: dansguardian
- option: description - option: description
value: '"DansGuardian searches web content for obectionable references and denies access when found."' value: '"DansGuardian searches web content for objectionable references and denies access when found."'
- option: enabled - option: enabled
value: "{{ dansguardian_enabled }}" value: "{{ dansguardian_enabled }}"

View file

@ -9,14 +9,14 @@
# but we use the tar file to get the latest version # but we use the tar file to get the latest version
- name: Get the Nextcloud software - name: Get the Nextcloud software
get_url: url={{ nextcloud_dl_url }}/{{ nextcloud_src_file }} dest={{ downloads_dir }}/{{ nextcloud_src_file }} get_url: url={{ nextcloud_dl_url }}/{{ nextcloud_src_file }} dest={{ downloads_dir }}/{{ nextcloud_src_file }}
when: internet_available when: internet_available
async: 900 async: 900
poll: 15 poll: 15
tags: tags:
- download - download
- name: Ubuntu and Debian treat names differently - name: Ubuntu and Debian treat names differently (Debian)
package: name={{ item }} state=present package: name={{ item }} state=present
with_items: with_items:
- libapache2-mod-php{{ php_version }} - libapache2-mod-php{{ php_version }}
@ -24,7 +24,7 @@
- php{{ php_version }}-zip - php{{ php_version }}-zip
when: is_debian when: is_debian
- name: Ubuntu and Debian treat names differently - name: Ubuntu and Debian treat names differently (Ubuntu)
package: name={{ item }} state=present package: name={{ item }} state=present
with_items: with_items:
- libapache2-mod-php - libapache2-mod-php
@ -33,7 +33,7 @@
- php-mbstring - php-mbstring
when: is_ubuntu when: is_ubuntu
- name: Install list of packages for debuntu - name: Install list of packages (debuntu)
package: name={{ item }} state=present package: name={{ item }} state=present
with_items: with_items:
- php{{ php_version }}-gd - php{{ php_version }}-gd
@ -44,7 +44,7 @@
- php{{ php_version }}-mcrypt - php{{ php_version }}-mcrypt
when: is_debuntu when: is_debuntu
- name: Install list of packages - name: Install list of packages (redhat)
package: name={{ item }} state=present package: name={{ item }} state=present
with_items: with_items:
- php - php
@ -58,14 +58,14 @@
# - php-imagick # - php-imagick
when: is_redhat when: is_redhat
- name: Copy it to permanent location /opt - name: Copy it to permanent location /opt (OS's other than Fedora 18)
unarchive: src={{ downloads_dir }}/{{ nextcloud_src_file }} unarchive: src={{ downloads_dir }}/{{ nextcloud_src_file }}
dest={{ nextcloud_prefix }} dest={{ nextcloud_prefix }}
creates={{ nextcloud_prefix }}/nextcloud/version.php creates={{ nextcloud_prefix }}/nextcloud/version.php
when: not is_F18 when: not is_F18
# ansible 1.4.1 does not have "creates" # ansible 1.4.1 does not have "creates"
- name: Copy it to permanent location /opt - name: Copy it to permanent location /opt (Fedora 18)
unarchive: src={{ downloads_dir }}/{{ nextcloud_src_file }} unarchive: src={{ downloads_dir }}/{{ nextcloud_src_file }}
dest={{ nextcloud_prefix }} dest={{ nextcloud_prefix }}
when: is_F18 when: is_F18
@ -75,7 +75,7 @@
state=directory state=directory
when: is_centos when: is_centos
- name: Add autoconfig file - name: Add autoconfig file (CentOS)
template: src=autoconfig.php.j2 template: src=autoconfig.php.j2
dest={{ nextcloud_prefix }}/nextcloud/config/autoconfig.php dest={{ nextcloud_prefix }}/nextcloud/config/autoconfig.php
owner={{ apache_user }} owner={{ apache_user }}

View file

@ -1,10 +1,10 @@
# This should go in computed_network.yml, but here for now # This should go in computed_network.yml, but here for now
- name: Compute nextcloud listen ip addr for nextcloud.conf - name: Compute Nextcloud listen ip addr for nextcloud.conf
set_fact: set_fact:
nextcloud_required_ip: "{{ ansible_default_ipv4.network }}/{{ ansible_default_ipv4.netmask }}" nextcloud_required_ip: "{{ ansible_default_ipv4.network }}/{{ ansible_default_ipv4.netmask }}"
when: ansible_default_ipv4.network is defined when: ansible_default_ipv4.network is defined
- name: Enable nextcloud by copying template to httpd config - name: Enable Nextcloud by copying template to httpd config
template: src=nextcloud.conf.j2 template: src=nextcloud.conf.j2
dest=/etc/{{ apache_config_dir }}/nextcloud.conf dest=/etc/{{ apache_config_dir }}/nextcloud.conf
owner=root owner=root
@ -12,7 +12,7 @@
mode=0644 mode=0644
when: nextcloud_enabled when: nextcloud_enabled
- name: Enable nextcloud - name: Enable Nextcloud
file: path=/etc/apache2/sites-enabled/nextcloud.conf file: path=/etc/apache2/sites-enabled/nextcloud.conf
src=/etc/apache2/sites-available/nextcloud.conf src=/etc/apache2/sites-available/nextcloud.conf
state=link state=link
@ -23,18 +23,18 @@
state=absent state=absent
when: not nextcloud_enabled and is_redhat when: not nextcloud_enabled and is_redhat
- name: Restart apache, so it picks up the new aliases - name: Restart Apache, so it picks up the new aliases
service: name={{ apache_service }} state=restarted service: name={{ apache_service }} state=restarted
# the install wizard does not succeed if already installed # the install wizard does not succeed if already installed
- name: Determine if nextcloud is installed - name: Determine if Nextcloud is installed
shell: > shell: >
sudo -u {{ apache_user }} php sudo -u {{ apache_user }} php
'{{ nextcloud_prefix }}/nextcloud/occ' status | '{{ nextcloud_prefix }}/nextcloud/occ' status |
gawk '/installed:/ { print $3 }' gawk '/installed:/ { print $3 }'
register: returned register: returned
- name: Run nextcloud initial install wizard - name: Run Nextcloud initial install wizard
shell: > shell: >
cd {{ nextcloud_prefix }}/nextcloud; cd {{ nextcloud_prefix }}/nextcloud;
sudo -u {{ apache_user }} php occ maintenance:install sudo -u {{ apache_user }} php occ maintenance:install
@ -46,13 +46,13 @@
--admin-pass "{{ nextcloud_admin_password }}" --admin-pass "{{ nextcloud_admin_password }}"
when: nextcloud_enabled and returned.stdout == "false" when: nextcloud_enabled and returned.stdout == "false"
- name: allow access from all hosts and ips - name: Allow access from all hosts and ips
command: php '{{ nextcloud_prefix }}/nextcloud/occ' config:system:set trusted_domains 1 --value=* command: php '{{ nextcloud_prefix }}/nextcloud/occ' config:system:set trusted_domains 1 --value=*
become: true become: true
become_user: "{{ apache_user }}" become_user: "{{ apache_user }}"
when: nextcloud_enabled and returned.stdout == "false" when: nextcloud_enabled and returned.stdout == "false"
- name: Determine if nextcloud user exists already - name: Determine if Nextcloud user exists already
shell: > shell: >
sudo -u {{ apache_user }} php sudo -u {{ apache_user }} php
'{{ nextcloud_prefix }}/nextcloud/occ' user:list | '{{ nextcloud_prefix }}/nextcloud/occ' user:list |
@ -60,7 +60,7 @@
register: returned_count register: returned_count
# nextcloud wants to make users rather than just mysql users and not done # nextcloud wants to make users rather than just mysql users and not done
- name: create the default user - name: Create the default user
shell: > shell: >
su -s /bin/sh {{ apache_user }} -c su -s /bin/sh {{ apache_user }} -c
'OC_PASS={{ nextcloud_user_password }}; 'OC_PASS={{ nextcloud_user_password }};

View file

@ -93,6 +93,6 @@
- option: name - option: name
value: Sugarizer value: Sugarizer
- option: description - option: description
value: '"The Sugar Learning Platform is a leading learning platform that began in the famous One Laptop Per Child project. Sugarizer is a web implementation of that platform."' value: '"The Sugar Learning Platform began with the famous One Laptop Per Child project, written in Python. Sugarizer is the new HTML/JavaScript implementation of Sugar, usable in most all browsers."'
- option: enabled - option: enabled
value: "{{ sugarizer_enabled }}" value: "{{ sugarizer_enabled }}"

View file

@ -11,15 +11,15 @@ if [ ! -f ./vars/local_vars.yml ]; then
case $OS in case $OS in
OLPC | fedora) OLPC | fedora)
cp ./vars/olpc.localvars ./vars/local_vars.yml cp ./vars/olpc.localvars ./vars/local_vars.yml
;; ;;
centos | debian | ubuntu | raspbian) centos | debian | ubuntu | raspbian)
cp ./vars/medium.localvars ./vars/local_vars.yml cp ./vars/medium.localvars ./vars/local_vars.yml
;; ;;
*) *)
echo "IIAB supports raspbian, debian, ubuntu, centos, and OLPC - exiting now..." echo "IIAB supports raspbian, debian, ubuntu, centos, and OLPC - exiting now..."
exit 1 exit 1
;; ;;
esac esac
fi fi

View file

@ -26,9 +26,20 @@ service_filelist: "{{ iiab_config_file }}"
disregard_network: False # use cache or error out if cache does not exist disregard_network: False # use cache or error out if cache does not exist
# Users and Passwords # Users and Passwords
# obtain a password hash with - python -c 'import crypt; print crypt.crypt("<plaintext>", "$6$<salt>")'
# Uncomment the following if you don't want iiab_admin_user (by default
# iiab-admin) to be auto-created in roles/iiab-admin/tasks/main.yml
# Also disables sudo-based verification of published passwords.
# no_admin: ""
# If no_admin variable is established above (its actual value is IGNORED) also
# set iiab_admin_user (below) to an existing Linux user that has sudo access.
# This is the username you'll use to login to Admin Console @ http://box/admin
iiab_admin_user: iiab-admin iiab_admin_user: iiab-admin
# Obtain a password hash with: python -c 'import crypt; print crypt.crypt("<plaintext>", "$6$<salt>")'
iiab_admin_passw_hash: $6$xsce51$D.IrrEeLBYIuJkGDmi27pZUGOwPFp98qpl3hxMwWV4hXigFGmdSvy3s/j7tn6OnyTTLmlV7SsN0lCUAFzxSop. iiab_admin_passw_hash: $6$xsce51$D.IrrEeLBYIuJkGDmi27pZUGOwPFp98qpl3hxMwWV4hXigFGmdSvy3s/j7tn6OnyTTLmlV7SsN0lCUAFzxSop.
# Languages # Languages

View file

@ -6,6 +6,18 @@
# Original Idea: branch github.com/xsce/xsce-local for your deployment # Original Idea: branch github.com/xsce/xsce-local for your deployment
# Users and Passwords
# Uncomment the following if you don't want iiab_admin_user (by default
# iiab-admin) to be auto-created in roles/iiab-admin/tasks/main.yml
# Also disables sudo-based verification of published passwords.
# no_admin: ""
# If no_admin variable is established above (its actual value is IGNORED) also
# set iiab_admin_user (below) to an existing Linux user that has sudo access.
# This is the username you'll use to login to Admin Console @ http://box/admin
iiab_admin_user: iiab-admin iiab_admin_user: iiab-admin
# Obtain a password hash with: python -c 'import crypt; print crypt.crypt("<plaintext>", "$6$<salt>")' # Obtain a password hash with: python -c 'import crypt; print crypt.crypt("<plaintext>", "$6$<salt>")'
@ -35,6 +47,7 @@ iiab_gateway_enabled: False
# Make this False to disable http://box/common/services/power_off.php button: # Make this False to disable http://box/common/services/power_off.php button:
allow_apache_sudo: True allow_apache_sudo: True
# Stages 3 & 4 must be run (using iiab-install or runtags) if changing these:
squid_install: False squid_install: False
squid_enabled: False squid_enabled: False