Moodlemoot dublin 2012 multitenancy

Post on 01-Jul-2015

2118 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

Alex Büchner's talk from the Moodlemoot in Dublin about multi-tenancy

Transcript

Multi-Tenancy Support

in Moodle 2.x

Alex Büchner@mcbuchner

Central

Moodle 1

Moodle 2

Moodle 3

Moodle 4

Moodle 5

Moodle …

Multi-tenancy in Moodle 2.3

Tenant

docs.moodle.org/dev/Multitenant_support

MDL-28946

August 2011

“It should be possible to implement this in 2.2dev…”

January 2012

“This is obviously much much longer and more

complex than originally envisaged”

March 2012

“Multi-tenancy has been dropped in 2.3.

It turned out to be more trouble than it was worth…”

Central Instance

Local Instance(s)

User Management

Course Management

Themes

Reports

Settings

Modules

Code

User & Course Management

How is user information stored?

LDAP / MS-AD / database / external system

Are user names unique?

Will courses be managed centrally, locally or both?

Who is allowed to “see” what?

User & Role Web Services

Settings

Global vs. local admin settings

“Freeze” values in in config.php

E.g. $CFG->loginhttps=false;

Flavours

Modules & Code

Are all instances code-identical?

Changes to the central core code?

Changes to the local core code?

Do all instances require a separate URL?

Centralised code

Web server configuration

Separate vhost for each Moodle instance

DocumentRoot identical for all entries

Moodle setup (config.php)<?php // Moodle configuration file

$moodle_host = $_SERVER['HTTP_HOST'];

require_once(„/etc/moodles/‟.$moodle_host.‟_config.php‟);

Individual config.php‟s in /etc/moodles

$CFG->dirroot same as DocumentRoot

Distributed code

git fetch

/usr/bin/php admin/cli/maintenance.php --enable

git merge origin/cvshead

/usr/bin/php admin/cli/upgrade.php --non-interactive

/usr/bin/php admin/cli/maintenance.php --disable

Central Local

Checklist

Criteria Options Impact

User Management central / local External Management (LDAP / Web Services)

Usernames unique yes / no Separate instances required

Visibility open / closed Separate instances required

Course management central / local Separate system required

Admin settings central / local / hybrid Control

Modules 1:n / n:n GIT

Code modifications central / local / no GIT

URL central / sub-domain / separate Web server configuration

Themes For each tenant / one-for-all Separate instances required

Reporting local / across sites Separate report generator

… … …

www.synergy-learning.com

Thank you

Alex Büchner

Twitter: @mcbuchner

top related