Puppet Class: role::urlshortener
- Defined in:
- puppet/modules/role/manifests/urlshortener.pp
Overview
Class: role::urlshortener
Configures UrlShortener, a MediaWiki extension for making short URLs
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'puppet/modules/role/manifests/urlshortener.pp', line 3
class role::urlshortener {
require ::role::mediawiki
include ::apache::mod::rewrite
mediawiki::extension { 'UrlShortener':
needs_update => true,
settings => {
'wgUrlShortenerTemplate' => '/s/$1',
},
}
apache::site_conf { 'urlshortener_short_url_support':
site => $::mediawiki::wiki_name,
content => template('role/urlshortener/apache2.conf.erb'),
}
}
|