Outage manager

Authentication ::: auth_outage
Maintained by Catalyst IT, Brendan Heywood
A plugin to manage outage periods, such as scheduled maintenance, including CLI tools to embed in your scripting.

Outage manager 1.0.3

Moodle 3.0, 3.1
Released: Friday, 14 October 2016, 10:24 AM

Moodle Outage manager plugin

What is this?

This is a Moodle plugin which makes the student experience of planned outages nicer, and provides extra tools for administrators and testers that help before and after the outage window.

The main idea is that instead of an outage being a very booleon on/off situation, this plugin creates the concept of graduated outages where at predefined times before an outage and after, different levels of warning and access can be provided to students and testers letting them know what is about to happen and why.

Installation

  1. Install the plugin the same as any standard moodle plugin either via the Moodle plugin directory, or you can use git to clone it into your source:

    git clone git@github.com:catalyst/moodle-auth_outage.git auth/outage

    Or install via the Moodle plugin directory:

    https://moodle.org/plugins/auth_outage

  2. Then run the Moodle upgrade

If you have issues please log them in github here:

https://github.com/catalyst/moodle-auth_outage/issues

  1. Go to Dashboard ► Site administration ► Plugins ► Authentication ► Manage authentication, enable the Outage manager plugin and place it on the top.

How to use

  1. Go to Dashboard ► Site administration ► Plugins ► Authentication ► Outage manager ► Manage and set up your future outages.

  2. (optional) Integrate your maintenance scripts using the CLI in auth/outage/cli.

Example of CLI usage:

$ php cli/create.php --help
Creates a new outage.

  -h,  --help               shows parameters help.
  -c,  --clone              clone another outage except for the start time.
  -a,  --autostart          must be Y or N, sets if the outage automatically triggers maintenance mode.
  -w,  --warn               how many seconds before it starts to display a warning.
  -s,  --start              in how many seconds should this outage start. Required.
  -d,  --duration           how many seconds should the outage last.
  -t,  --title              the title of the outage.
  -e,  --description        the description of the outage.
       --onlyid             only outputs the new outage id, useful for scripts.
  -b,  --block              blocks until outage starts.

Why it is an auth plugin?

One of the graduated stages this plugin introduces is a 'tester only' mode which disables login for most normal users. This is conceptually similar to the maintenance mode but enables testers to login and confirm the state after an upgrade without needing full admin privileges.

Feedback and issues

Please raise any issues in github:

https://github.com/catalyst/moodle-auth_outage/issues

Pull requests are welcome smile

If you need anything urgently or would like to sponsor a feature please contact Catalyst IT Australia:

https://www.catalyst-au.net/contact-us

Version information

Version build number
2016101400
Version release name
1.0.3
Maturity
Stable version
MD5 Sum
9c565a0a3e7cf1ec5f1ad68ec19c88fe
Supported software
Moodle 3.0, Moodle 3.1

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS branch
master

Default installation instructions for plugins of the type Authentication

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myauth") in the "auth" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation