dd9f2c041b
This patch aims to alleviate the 'parameterised class parameter without a default value' error that occurs in init.pp Change-Id: Ie13e49612966c122f0253f8a6e75cde53e265754 Reviewed-on: https://review.openstack.org/15779 Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
41 lines
822 B
Puppet
41 lines
822 B
Puppet
# Class: mediawiki
|
|
#
|
|
class mediawiki(
|
|
$role = '',
|
|
$site_hostname = '',
|
|
$mediawiki_location = ''
|
|
) {
|
|
|
|
if ($role == 'app' or $role == 'all') {
|
|
require apache::dev
|
|
include apache
|
|
include mediawiki::php
|
|
include 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
|
|
include mediawiki::php
|
|
include mediawiki::app
|
|
}
|
|
}
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|