diff --git a/files/naemon_monitor/menu_local.conf b/files/naemon_monitor/menu_local.conf new file mode 100644 index 000000000..1f6531d7c --- /dev/null +++ b/files/naemon_monitor/menu_local.conf @@ -0,0 +1,2 @@ +do '/usr/share/thruk/menu.conf'; +insert_item('General', { 'href' => '/grafana', 'name' => 'Grafana', target => '_self' }); diff --git a/manifests/naemon_monitor.pp b/manifests/naemon_monitor.pp index b28bb72e2..ef570abd1 100644 --- a/manifests/naemon_monitor.pp +++ b/manifests/naemon_monitor.pp @@ -103,6 +103,10 @@ ensure => directory, recurse => true, } + file { '/opt/naemon_monitor/menu_local.conf': + ensure => file, + content => file('sunet/naemon_monitor/menu_local.conf'), + } file { '/etc/systemd/system/sunet-naemon_monitor.service.d/override.conf': ensure => file, diff --git a/templates/naemon_monitor/docker-compose.yml.erb b/templates/naemon_monitor/docker-compose.yml.erb index 776e94c5e..5272b2442 100644 --- a/templates/naemon_monitor/docker-compose.yml.erb +++ b/templates/naemon_monitor/docker-compose.yml.erb @@ -50,6 +50,7 @@ services: - "/etc/dehydrated/certs/<%= @domain %>:/etc/dehydrated:ro" - '/opt/naemon_monitor/shib-certs:/etc/shibboleth/certs' - '/opt/naemon_monitor/data:/var/lib/thruk' + - '/opt/naemon_monitor/menu_local.conf:/etc/thruk/menu_local.conf' <%- @thruk_extra_volumes.each do |extra_volume| -%> - "<%= extra_volume %>" <%- end -%>