mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
initial checkin -- May 27, 2017
This commit is contained in:
commit
845632d0ac
488 changed files with 41559 additions and 0 deletions
12
roles/moodle/templates/022-moodle.j2
Normal file
12
roles/moodle/templates/022-moodle.j2
Normal file
|
@ -0,0 +1,12 @@
|
|||
# replaces stock moodle.conf
|
||||
Alias /moodle {{ moodle_base }}
|
||||
|
||||
# Moodle public web pages - must be publically accessible
|
||||
<Directory {{ moodle_base }}>
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
# Moodle private data - must NOT be publically accessible
|
||||
<Directory {{ moodle_data }}>
|
||||
Require all denied
|
||||
</Directory>
|
8
roles/moodle/templates/moodle_installer
Executable file
8
roles/moodle/templates/moodle_installer
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash -x
|
||||
sudo -u {{ apache_data }} /usr/bin/php {{moodle_base}}/admin/cli/install.php \
|
||||
--wwwroot=http://schoolserver.lan/moodle --dataroot={{moodle_data}} \
|
||||
--dbtype=pgsql --dbname=moodle --dbuser=Admin --dbpass=changeme \
|
||||
--fullname=Your_School --shortname=School \
|
||||
--adminuser=admin --adminpass=changeme \
|
||||
--non-interactive --agree-license
|
||||
chown {{ apache_data}}:{{ apache_data }} {{ moodle_base }}/config.php
|
Loading…
Add table
Add a link
Reference in a new issue