abusesa: Add colormap parameter
This commit is contained in:
parent
d6c7652060
commit
6ddcf27601
2 changed files with 11 additions and 0 deletions
|
@ -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,
|
||||
) {
|
||||
|
|
|
@ -6,6 +6,10 @@ config = {
|
|||
'boshUrl' => @boshurl,
|
||||
}
|
||||
|
||||
if @colormap
|
||||
config['colormap'] = @colormap
|
||||
end
|
||||
|
||||
if @mapurl
|
||||
config['viewPlugins'] = [{
|
||||
'id' => 'map',
|
||||
|
|
Loading…
Add table
Reference in a new issue