2013-10-29 23:53:04 +01:00
|
|
|
class zulip-internal::mediawiki {
|
2013-11-05 19:53:13 +01:00
|
|
|
include zulip-internal::postgres_common
|
2013-07-25 23:38:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
$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,
|
2013-10-29 23:53:04 +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-10-29 23:53:04 +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',
|
|
|
|
}
|
|
|
|
}
|