zulip/puppet/zulip-internal/manifests/mediawiki.pp

40 lines
1.2 KiB
ObjectPascal
Raw Normal View History

class zulip-internal::mediawiki {
include zulip-internal::postgres_common
$mediawiki_packages = [ "mediawiki", "mediawiki-extensions" ]
package { $mediawiki_packages: ensure => "installed" }
apache2site {'mediawiki':
require => [File['/etc/apache2/sites-available/'],
Apache2mod['headers'], Apache2mod['ssl'],
],
ensure => present,
}
file { '/etc/mediawiki/LocalSettings.php':
ensure => file,
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/zulip-internal/mediawiki/LocalSettings.php",
}
file { '/usr/local/share/mediawiki/extensions/Auth_remoteuser.php':
ensure => file,
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/zulip-internal/mediawiki/Auth_remoteuser.php",
}
file { '/etc/mediawiki-extensions/extensions-available/Auth_remoteuser.php':
ensure => 'link',
target => '/usr/local/share/mediawiki/extensions/Auth_remoteuser.php',
}
file { '/etc/mediawiki-extensions/extensions-enabled/Auth_remoteuser.php':
ensure => 'link',
target => '../extensions-available/Auth_remoteuser.php',
}
}