abusesa: Add colormap parameter

This commit is contained in:
Ossi Salmi 2016-02-23 11:34:29 +02:00
parent d6c7652060
commit 6ddcf27601
2 changed files with 11 additions and 0 deletions

View file

@ -11,6 +11,12 @@
# $config:
# Source URL of custom config file.
#
# $mapurl:
# Alternate base URL of map tiles.
#
# $colormap:
# URL of custom color map.
#
# $webhosts:
# List of live virtual hosts.
#
@ -18,6 +24,7 @@ class abusesa::live(
$authurl='/collab/?action=authcredentials',
$boshurl='/bosh/',
$mapurl=undef,
$colormap=undef,
$config=undef,
$webhosts=undef,
) {

View file

@ -6,6 +6,10 @@ config = {
'boshUrl' => @boshurl,
}
if @colormap
config['colormap'] = @colormap
end
if @mapurl
config['viewPlugins'] = [{
'id' => 'map',