2013-11-05 21:21:00 +01:00
|
|
|
class zulip_internal::mediawiki {
|
|
|
|
include zulip_internal::postgres_common
|
2013-07-25 23:38:40 +02:00
|
|
|
|
|
|
|
|
2013-11-08 21:17:14 +01:00
|
|
|
$mediawiki_packages = [# Packages needed for mediawiki
|
|
|
|
"mediawiki",
|
|
|
|
"mediawiki-extensions",
|
|
|
|
]
|
2013-07-25 23:38:40 +02:00
|
|
|
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,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/mediawiki/LocalSettings.php",
|
2013-07-25 23:38:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
file { '/usr/local/share/mediawiki/extensions/Auth_remoteuser.php':
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/mediawiki/Auth_remoteuser.php",
|
2013-07-25 23:38:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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',
|
|
|
|
}
|
|
|
|
}
|