{{ :blocks:logo-apl.png?nolink |}} ===== 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. ------- [[:local:vmoodle:technique|Back to the technical guide]] - [[:local:vmoodle|Back to the component index]] - [[:plugins|Back to the plugins index]] - [[:start|Back to the catalogue]]