VMoodle Local: Difference between revisions

From MoodleDocs
(Created page with "This plugin is the continuity of the older VMoodle block. the core implementation of VMoodle has moved from a block to a local plugin, as local plugin naturally handles subp...")
 
No edit summary
Line 1: Line 1:
**This doc is in progress**
This plugin is the continuity of the older VMoodle block.  
This plugin is the continuity of the older VMoodle block.  


Line 4: Line 6:


See [[VMoodle_Block|The VMoodle block implementation]] for complementary information.
See [[VMoodle_Block|The VMoodle block implementation]] for complementary information.
=== Installation ===
# Get the plugin archive (local_vmoodle.zip) and deploy it into the /local folder of your Moodle distribution.
# Run the administration notifications to get the plugin registered. 
Once the local plugin has been registered, there is a pair of things to do to get VMoodle start accepting virtualisation :
You need first to edit the copy the vconfig-dist.php in blocks/vmoodle to vconfig.php, and give the database access
schema to your master database. (most often, this will use the same DB access credentials than master config.php). VConfig will look like :
  $CFG->vmasterdbhost = 'localhost';
  $CFG->vmasterdbtype = 'mysqli';
  $CFG->vmasterdbname = 'moodle';
  $CFG->vmasterdblogin = '<mydblogin>';
  $CFG->vmasterdbpass = '<mydbpass>';
  $CFG->vmasterdbpersist =  false;
  $CFG->vmasterprefix    = 'mdl_';
  $CFG->vmoodledefault    = 1; // tells if the default physical config can be used as true host
Keep this file in the blocks/vmoodle directory, or raise it up the the root level of Moodle. (No impact). What follows will consider
the first option.
you need fist to hook the VMoodle configuration in your config file, and define explicitely the $CFG->dirroot key as this would be done
too late by setup.php.
  $CFG->dirroot = '<your/moodle/path>';
  include_once $CFG->dirroot.'/blocks/vmoodle/vconfig.php';
Note that including from a hardwritten path will not preserve you to define $CFG->dirroot, as this path is used
in VMoodle bootstrapping code.
==VMoodle Features==
===Features Addressing the "Moodle Factory" Administration===
* Virtualisation Hook for the standard 'config.php' [[Configuration file]]
* Deployment of new instances from within the Master instance administration
* Moodle snapshot to create platform templates for further deployment
* On demand Moodle deployment
* Deployment of virtualized Moodle within a Moodle Network strategy
* VMoodle [[Cron]] rotation handles automatically all instances in a VMoodle array.
* Additional Key Refresh Automation to keep [https://docs.moodle.org/dev/SSH_key SSH keys] always consistent.
===Features Addressing the "MNetwork Level Administration"===
Multiplying instances will ever raise issues of administration because increasing the amount of information to be managed and complexity of the system. The VMoodle block provides a super-administration toolset allowing distributing administration commands across a Moodle Network so getting things faster even when the number of Moodle gets quite high. This administration layer provides a command framework for extensibility.
* SQL orders can be distributed on all managed nodes
* Role comparison and sync between many nodes
* Capability resync between many nodes
* Massive upgrade of all nodes when upgrading or installing new plugins.
====Access to Mnetwork Level Administration====
You may access to the [[MNet]] level administration clicking on the link "Administrate" showing in the footer of the "VMoodle" bloc instance.
Three subservices are available :
* [[Moodle Instance Management|Managing virtual instances and deployment]] : lists nodes and allows enabling, disabling snapshooting and deleting a node, ...
* [[Super-administration|Super-administration]] : a set of primitives that can be processed simultaneously on distributed Moodles.
* [[MNET Service Template|MNET Services Template]] : A form to define a template or [[MNet]] services settings to be applied as a default to any new Moodle clone.

Revision as of 12:58, 18 June 2016

    • This doc is in progress**

This plugin is the continuity of the older VMoodle block.

the core implementation of VMoodle has moved from a block to a local plugin, as local plugin naturally handles subplugin without core modification.

See The VMoodle block implementation for complementary information.

Installation

  1. Get the plugin archive (local_vmoodle.zip) and deploy it into the /local folder of your Moodle distribution.
  2. Run the administration notifications to get the plugin registered.

Once the local plugin has been registered, there is a pair of things to do to get VMoodle start accepting virtualisation :

You need first to edit the copy the vconfig-dist.php in blocks/vmoodle to vconfig.php, and give the database access schema to your master database. (most often, this will use the same DB access credentials than master config.php). VConfig will look like :

  $CFG->vmasterdbhost = 'localhost';
  $CFG->vmasterdbtype = 'mysqli';
  $CFG->vmasterdbname = 'moodle';
  $CFG->vmasterdblogin = '<mydblogin>';
  $CFG->vmasterdbpass = '<mydbpass>';
  $CFG->vmasterdbpersist =  false;
  $CFG->vmasterprefix    = 'mdl_';
  $CFG->vmoodledefault    = 1; // tells if the default physical config can be used as true host

Keep this file in the blocks/vmoodle directory, or raise it up the the root level of Moodle. (No impact). What follows will consider the first option.

you need fist to hook the VMoodle configuration in your config file, and define explicitely the $CFG->dirroot key as this would be done too late by setup.php.

  $CFG->dirroot = '<your/moodle/path>';
  include_once $CFG->dirroot.'/blocks/vmoodle/vconfig.php';

Note that including from a hardwritten path will not preserve you to define $CFG->dirroot, as this path is used in VMoodle bootstrapping code.

VMoodle Features

Features Addressing the "Moodle Factory" Administration

  • Virtualisation Hook for the standard 'config.php' Configuration file
  • Deployment of new instances from within the Master instance administration
  • Moodle snapshot to create platform templates for further deployment
  • On demand Moodle deployment
  • Deployment of virtualized Moodle within a Moodle Network strategy
  • VMoodle Cron rotation handles automatically all instances in a VMoodle array.
  • Additional Key Refresh Automation to keep SSH keys always consistent.

Features Addressing the "MNetwork Level Administration"

Multiplying instances will ever raise issues of administration because increasing the amount of information to be managed and complexity of the system. The VMoodle block provides a super-administration toolset allowing distributing administration commands across a Moodle Network so getting things faster even when the number of Moodle gets quite high. This administration layer provides a command framework for extensibility.

  • SQL orders can be distributed on all managed nodes
  • Role comparison and sync between many nodes
  • Capability resync between many nodes
  • Massive upgrade of all nodes when upgrading or installing new plugins.

Access to Mnetwork Level Administration

You may access to the MNet level administration clicking on the link "Administrate" showing in the footer of the "VMoodle" bloc instance.

Three subservices are available :