Skip to content

Commit

Permalink
Merge pull request #209 from SUNET/kano-thruk-link
Browse files Browse the repository at this point in the history
add a link to grafana from left menu
  • Loading branch information
mickenordin authored Oct 22, 2024
2 parents 7756550 + fe5bca3 commit 2cc9151
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions files/naemon_monitor/menu_local.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
do '/usr/share/thruk/menu.conf';
insert_item('General', { 'href' => '/grafana', 'name' => 'Grafana', target => '_self' });
4 changes: 4 additions & 0 deletions manifests/naemon_monitor.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions templates/naemon_monitor/docker-compose.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%>
Expand Down

0 comments on commit 2cc9151

Please sign in to comment.