MediaWiki K8s
| Channel | Revision | Published | Runs on |
|---|---|---|---|
| 1.45/edge | 5 | Yesterday |
juju deploy mediawiki-k8s --channel 1.45/edge
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
-
composer | string
The contents of a composer.local.json file to customize MediaWiki extensions and dependencies on top of what is provided by default.
For example:
{ "require": { "mediawiki/visual-editor": "dev-REL1_35" } }See MediaWiki's documentation for more context on how to configure this.
-
local-settings | string
The contents of a LocalSettings.php like file to customize MediaWiki configuration on top of what is provided by default. These settings will be inserted into the base
LocalSettings.phpfile used by MediaWiki usingrequire_once.Certain settings such as secrets and database credentials are restricted and will always be overridden by the charm.
For example, to set
vector2022as the default skin:<?php $wgDefaultSkin = 'vector2022'; ?>See MediaWiki's documentation for more information about LocalSettings.php.
-
oauth-extra-scopes | string
Additional OAuth/OIDC scopes to request from the identity provider, as a space-separated string.
The charm always requests 'openid', 'profile', and 'email'. Use this option to request additional scopes beyond those defaults.
For example: 'groups roles offline_access'
-
robots-txt | string
Default: User-agent: * Allow: /w/load.php? Disallow: /w/ # Allow the Internet Archiver to index action=raw and thereby store the raw wikitext of pages User-agent: ia_archiver Allow: /*&action=raw
The contents of a robots.txt file to be served at the web root of the MediaWiki deployment. This is useful for controlling how search engines index the wiki.
The default is sensible for the majority of use cases, but it may need to be changed depending on specific requirements or certain settings overrides, such as
$wgArticlePath. -
ssh-key | secret
An optional Juju user secret containing SSH private keys to enable git via SSH for operations inside the charm's containers.
The secret may contain the following fields, each holding a PEM-formatted, non-password-protected private key:
mediawiki — used inside the mediawiki container, e.g. for installing extensions via Composer from private repositories.
git-sync — used by the git-sync sidecar container for fetching static assets from a private repository.
Each field is individually optional; if a field is absent, that container will not use an SSH key.
Keys are written to the container filesystem, so ensure each key is appropriately scoped.
Make sure to "grant-secret" this secret to the mediawiki charm.
-
ssh-known-hosts | string
Default: github.com ssh-rsa AA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1rJ+/UP+897+FXFR9w/B1EPRjiQ35ZNQZKPP4isxPtyMuCQkZY7ckWr5YsylNfvNcyGDnO1XazZhJ71rzDpi1RmnFXBW5i+2dm2y7
Contents for the SSH known_hosts file used when cloning via SSH.
Each line should follow the standard known_hosts format (e.g. "hostname algorithm base64-key"). The remote extracted from static-assets-git-repo must appear in this value, otherwise the charm will block.
The default includes public host keys for github.com and git.launchpad.net. To add another host (e.g. gitlab.com), run "ssh-keyscan gitlab.com" and append the output lines to this value.
-
static-assets-git-ref | string
The Git reference (branch, tag, or commit) to check out after cloning the repository specified by
static-assets-git-repo.If not specified, the "HEAD" of the default branch of the repository will be used.
-
static-assets-git-repo | string
The Git repository URL to clone static assets from. This is useful for serving assets such as custom logos and a favicon.
Supports HTTP(S), SSH, and SCP-style (git@github.com:user/repo.git) URLs.
The repository will be cloned to
$charmStaticAssetsinside the MediaWiki container.For instance, a logo named
my_logo.svgin the root of the git repository will end up with the path$charmStaticAssets/my_logo.svg. It is up to the user to configure MediaWiki to use these assets.See the MediaWiki documentation page on $wgLogos for more information on setting logos. Other static assets can be configured similarly.
Note that hidden files (those starting with a dot) will not be served by the web server.
Should a clone operation fail, any existing assets will not be cleared out. To clear out existing assets, set this configuration option to an empty string.
-
static-assets-git-sparse-checkout | string
The contents of a sparse-checkout file to pass to git-sync, limiting which paths in the repository are checked out.
When set, only the paths matching the patterns in this file will be present under
$charmStaticAssets. This is useful when the repository contains files that should not be served (e.g. a README or LICENSE), or when only a subdirectory of the repository is relevant.The file format is described at https://git-scm.com/docs/git-sparse-checkout.
If not set, the entire repository is checked out.
-
url-origin | string
The URL origin for the MediaWiki deployment. It should either be protocol-relative or specify either http:// or https://. For example, '//my-wiki.example.com' or 'https://my-wiki.example.com'. This is used for '$wgServer' and configuring ingress.
If not specified, the charm will fall back to the application name. '$wgServer' may be overridden with the
local-settingsconfiguration option.