From 6ddcf276018709bd22658e8e2bc86fffe2f3919b Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Tue, 23 Feb 2016 11:34:29 +0200 Subject: [PATCH] abusesa: Add colormap parameter --- abusesa/manifests/live.pp | 7 +++++++ abusesa/templates/live/config.json.erb | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/abusesa/manifests/live.pp b/abusesa/manifests/live.pp index 1384592..cd05b5f 100644 --- a/abusesa/manifests/live.pp +++ b/abusesa/manifests/live.pp @@ -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, ) { diff --git a/abusesa/templates/live/config.json.erb b/abusesa/templates/live/config.json.erb index d993b87..11987dc 100644 --- a/abusesa/templates/live/config.json.erb +++ b/abusesa/templates/live/config.json.erb @@ -6,6 +6,10 @@ config = { 'boshUrl' => @boshurl, } +if @colormap + config['colormap'] = @colormap +end + if @mapurl config['viewPlugins'] = [{ 'id' => 'map',