From 2c23704f080f78c62a52359d195f29e637ae19b4 Mon Sep 17 00:00:00 2001 From: Rico Ullmann Date: Tue, 21 Dec 2021 17:06:27 +0100 Subject: [PATCH] basic: cleanup bundle for usage in this repo --- bundles/basic/items.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/bundles/basic/items.py b/bundles/basic/items.py index ed794d4..cec34df 100644 --- a/bundles/basic/items.py +++ b/bundles/basic/items.py @@ -42,18 +42,6 @@ actions = { description = [] -if not node.metadata.get('icinga_options/exclude_from_monitoring', False): - description.append('icingaweb2: https://icinga.kunsmann.eu/monitoring/host/show?host={}'.format(node.name)) - -if node.has_bundle('telegraf'): - description.append('Grafana: https://grafana.kunsmann.eu/d/{}'.format(UUID(int=node.magic_number).hex[:10])) - -if ( - not node.metadata.get('icinga_options/exclude_from_monitoring', False) or - node.has_bundle('telegraf') -): - description.append('') # divider line - if node.metadata.get('nginx/vhosts', {}): description.append('nginx vhosts:') @@ -74,15 +62,3 @@ if node.metadata.get('nginx/vhosts', {}): if node.metadata.get('description', []): description.append('') # divider line - -for line in node.metadata.get('description', []): - description.append('# {}'.format(italic(line))) - -if description: - files['/etc/node.description'] = { - 'content': '\n'.join(description) + '\n', - } -else: - files['/etc/node.description'] = { - 'delete': True, - }