local:vmoodle:technique
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| local:vmoodle:technique [2016/05/11 11:38] – [Virtualisation de Moodle : Guide technique] admin | local:vmoodle:technique [2026/11/13 20:37] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ===== Guide technique ===== | + | < |
| - | ===== VMoodle ===== | + | =====VMoodle: Technical guide ===== |
| - | ==== Principe de virtualisation ==== | ||
| - | La virtualisation de Moodle consiste à n' | + | ==== Virtualisation principle ==== |
| - | La commutation de configuration est basée sur la reconnaissance du nom d' | + | Virtualising Moodle means using a single installed code base to operate an indeterminate number of Moodle platforms, standalone or configured in a network. The process stores the main configuration parameters |
| - | * Utilisation de scripts CLI en mode console | + | The configuration switch is based on recognising the host name in the server' |
| - | * Utilisation de plusieurs Moodle sur la même racine de domaine (en sous-répertoires) | + | |
| - | ==== Contraintes sur les scripts | + | * Use of CLI scripts in console mode (see below) |
| + | * Use of several Moodles on the same domain root (in subdirectories) | ||
| - | Les scripts | + | ==== Constraints on CLI scripts |
| - | C'est pourquoi l' | + | Standard Moodle |
| - | php {cliscript} --{param1}={val1} | + | That is why the VMoodle implementation provides most of the standard CLI scripts adapted for virtualised use by adding a --host |
| + | php {cliscript} --{param1}={val1} --host=http:// | ||
| + | |||
| + | VMoodle also provides a series of industrialisation scripts to massively carry out deployments and transformations of many Moodle units. | ||
| + | |||
| + | === Available standard scripts === | ||
| + | |||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | |||
| + | === Industrialisation scripts === | ||
| + | |||
| + | Industrialisation scripts allow massive distributed operations on all the tenants registered in the virtualisation. | ||
| + | |||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | * local/ | ||
| + | |||
| + | Progress notifications: | ||
| + | |||
| + | | ||
| + | |||
| + | === Additional scripts === | ||
| + | |||
| + | On the basis of this industrialised launch structure, other VMoodle-specific scripts are available in the ''/ | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | |||
| + | === Super-administration command launcher === | ||
| + | |||
| + | VMoodle has a set of network super-administration commands to launch actions on all or part of the virtualised Moodle instances. These commands can be invoked from the VMoodle administration interface, but now also on the command line with the command: | ||
| + | |||
| + | php local/ | ||
| + | |||
| + | The command will always run starting from the main instance (a super-administration command cannot be launched in a virtual instance). The command accepts 4 parameters: | ||
| + | |||
| + | * **fromhost**: | ||
| + | * **tohosts**: | ||
| + | * **command**: | ||
| + | * **attributes**: | ||
| + | |||
| + | Command example: | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | === Testing the target hosts on a " | ||
| + | |||
| + | You can check the list of targets of a command launch before actually launching it: | ||
| + | |||
| + | php run_command.php --command=showtargets [--fromhost=< | ||
| + | |||
| + | The result of this command displays the list of virtual Moodles to which the command will be applied. | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==== Using several Moodles on the same host root (subdirectories) ==== | ||
| + | |||
| + | Using the additional configuration key: | ||
| + | |||
| + | $CFG-> | ||
| + | |||
| + | enables the ' | ||
| + | operated as a first-level subdirectory of a single domain root: | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | ... | ||
| + | |||
| + | The advantage of this model is the saving in HTTPS certificates (a single domain certificate for all instances). It may however cause some confusion in the memorisation of data entered on the web client side. | ||
| + | |||
| + | The instance name is automatically captured from the subdirectory name. | ||
| + | |||
| + | Setting up virtualised Moodles at a lower level of the tree is not supported. | ||
| + | |||
| + | To set up this type, you will need to set up instance symbolic links in Moodle' | ||
| + | |||
| + | drwxrwsr-x 11 root root admin | ||
| + | drwxrwsr-x 24 root root auth | ||
| + | drwxrwsr-x | ||
| + | drwxrwsr-x | ||
| + | drwxrwsr-x | ||
| + | -rw-rwSr-- | ||
| + | drwxrwsr-x 70 root root blocks | ||
| + | drwxrwsr-x | ||
| + | -rw-rwSr-- | ||
| + | drwxrwsr-x | ||
| + | drwxrwsr-x | ||
| + | drwxrwsr-x | ||
| + | drwxrwsr-x | ||
| + | drwxrwsr-x | ||
| + | drwxrwsr-x | ||
| + | ... | ||
| + | | ||
| + | lrwxrwxrwx | ||
| + | lrwxrwxrwx | ||
| + | lrwxrwxrwx | ||
| + | ... | ||
| + | |||
| + | This setup ensures that each virtualised Moodle in a subdirectory has the Moodle source code available. The instance management tooling handles the setup of these symbolic links on behalf of the Moodle administrator through a local sudo procedure. The VMoodle configuration must designate a sudo user able to manipulate Moodle' | ||
| + | |||
| + | ------- | ||
| + | < | ||
| + | [[: | ||
| + | < | ||
| - | [[: | ||
local/vmoodle/technique.1462959499.txt.gz · Dernière modification : (modification externe)
