local:vmoodle:cli:bulkrenewmentkeys

Additional Network Scripts: Mnet Key Renewal (Industrialisation)

VMoodle: Technical Guide

Context

This script industrialises the launch of the renew_mnetkeys.php script (worker) on all the available hosts of a VMoodle network.

It will ONLY process active tenants.

Syntax

  \$sudo -u www-data /usr/bin/php local/vmoodle/cli/bulkrenewmentkeys.php --withmaster

Options

  • -m, –withmaster Renews the keys for the main site (network head) before processing the network tenants
  • -h, –help Displays help
  • -d, –debug Enables debug mode (Moodle debug) of the workers.
  • -v, –verbose Increases output verbosity
  • -s, –fullstop Stops the command at the first worker error encountered, otherwise skips the faulty worker and continues.

Action

With the withmaster mode active:

  • Renews the keys for all the known peers of the main site.
  • Renews the available keys of each tenant.

Without the withmaster mode active:

  • Renews the available keys of each tenant only.

Additional notes

Differences with the bulkinitmnet.php script

The bulkinitmnet.php script, in addition to setting up the network keys, will set up the service exchange strategies defined in the VMoodle configuration.

Moreover, this script will only process sites defined as VMoodle tenants. The bulkrenewmnetkeys.php script will try to renew all the known network peers of the local environment where the command is applied, whether they are defined as VMoodle tenants or not.


Back to the technical guide - Back to the component index - Back to the plugins index - Back to the catalogue

local/vmoodle/cli/bulkrenewmentkeys.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki