8a77c1bd24
Change-Id: I62bd3069bc491af0cd89569a1b306c765eeee864 Reviewed-on: https://review.openstack.org/14336 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
36 lines
820 B
Puppet
36 lines
820 B
Puppet
class mediawiki($role, $site_hostname, $mediawiki_location='') {
|
|
if ($role == 'app' or $role == 'all') {
|
|
include apache
|
|
require apache::dev
|
|
include mediawiki::php,
|
|
mediawiki::app
|
|
|
|
package { 'libapache2-mod-php5':
|
|
ensure => present
|
|
}
|
|
|
|
apache::vhost { $site_hostname:
|
|
port => 443,
|
|
docroot => 'MEANINGLESS ARGUMENT',
|
|
priority => '50',
|
|
template => 'mediawiki/apache/mediawiki.erb',
|
|
ssl => true,
|
|
}
|
|
a2mod { 'rewrite':
|
|
ensure => present
|
|
}
|
|
a2mod { 'expires':
|
|
ensure => present
|
|
}
|
|
|
|
}
|
|
if ($role == 'image-scaler' or $role == 'all') {
|
|
include mediawiki::image_scaler,
|
|
mediawiki::php,
|
|
mediawiki::app
|
|
}
|
|
if ($role == 'search' or $role == 'all') {
|
|
include mediawiki::search
|
|
}
|
|
}
|