puppet/abusesa/templates/live/config.json.erb
2016-02-23 11:34:29 +02:00

22 lines
336 B
Text

<%
require 'json'
config = {
'authUrl' => @authurl,
'boshUrl' => @boshurl,
}
if @colormap
config['colormap'] = @colormap
end
if @mapurl
config['viewPlugins'] = [{
'id' => 'map',
'name' => 'Map',
'type' => 'PolymapsView',
'settings' => { 'mapUrl' => @mapurl },
}]
end
-%>
<%= JSON.pretty_generate(config) %>