Puppet Class: role::private
- Defined in:
- puppet/modules/role/manifests/private.pp
Overview
Class: role::private
This role creates one additional wiki, private.wiki.local.wmftest.net which is configured to approximate the setup of the private WMF wikis
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'puppet/modules/role/manifests/private.pp', line 5
class role::private {
require ::role::mediawiki
require ::role::swift
mediawiki::wiki { 'private': }
mediawiki::settings { 'private:general':
values => {
wgUploadPath => '/w/img_auth.php',
wgThumbnailScriptPath => '/w/thumb.php',
wgWhitelistRead => [
'Main Page',
'Special:UserLogin',
'Special:UserLogout',
],
wgEmailAuthentication => false,
wgBlockDisablesLogin => true,
wgVisualEditorParsoidForwardCookies => true,
},
}
mediawiki::settings { 'private:repo':
values => template('role/private/local_repo.php.erb'),
}
mediawiki::settings { 'private:swift':
values => template('swift/private.conf.php.erb'),
}
mediawiki::settings { 'private:rights':
values => template('role/private/rights.php.erb'),
}
apache::site_conf { 'private_deny_images':
site => $::mediawiki::wiki_name,
content => template('role/private/apache2.conf.erb'),
require => Mediawiki::Wiki['private'],
}
# GlobalUsage (from the commons role) should be disabled but there
# is no easy way to do that.
}
|