From f334b93756f969364d3122e3e1483a5eb859c350 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 30 Aug 2020 11:27:15 +0200 Subject: [PATCH] nodes/doc.lon1.grafana: introduce node --- data/bind/files/zones/kunbox.net | 8 +++++-- nodes/doc/lon1/grafana.py | 40 ++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 nodes/doc/lon1/grafana.py diff --git a/data/bind/files/zones/kunbox.net b/data/bind/files/zones/kunbox.net index b543ff2..181a659 100644 --- a/data/bind/files/zones/kunbox.net +++ b/data/bind/files/zones/kunbox.net @@ -9,8 +9,12 @@ $ORIGIN kunbox.net. IN MX 10 mx0 IN TXT v=spf1 a mx ~all -; NODE digitalocean.lon1.icinga2 -icinga2.lon1.doc IN A 165.232.42.173 +; NODE doc.lon1.grafana +grafana.lon1.doc IN A 165.232.105.69 + IN AAAA 2a03:b0c0:1:e0::627:8001 + +; NODE doc.lon1.icinga2 +icinga2.lon1.doc IN A 165.232.42.173 IN AAAA 2a03:b0c0:1:e0::665:8001 ; NODE gce.bind01 diff --git a/nodes/doc/lon1/grafana.py b/nodes/doc/lon1/grafana.py new file mode 100644 index 0000000..9658f9d --- /dev/null +++ b/nodes/doc/lon1/grafana.py @@ -0,0 +1,40 @@ +nodes['doc.lon1.grafana'] = { + 'bundles': { + 'zfs', + }, + 'groups': { + 'webserver', + }, + 'metadata': { + 'apt': { + 'repos': { + 'backports': { + 'install_gpg_key': False, # default debian signing key + 'items': [ + 'deb http://deb.debian.org/debian buster-backports main', + ], + }, + }, + }, + 'nginx': { + 'vhosts': { + }, + }, + 'zfs': { + 'pools': { + 'tank': { + 'device': '/dev/disk/by-id/scsi-0DO_Volume_volume-lon1-02-part1', + }, + }, + 'module_options': { + 'zfs_arc_max_mb': 0, + }, + }, + 'vm': { + 'cpu': 1, + 'ram': 1, + }, + }, + 'os': 'debian', + 'os_version': (10, 5), +}