wip
This commit is contained in:
parent
8b1afdc038
commit
33320a7c8c
5 changed files with 84 additions and 0 deletions
3
bundles/grafana/items.py
Normal file
3
bundles/grafana/items.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
files['/etc/grafana/test'] = {
|
||||
'content': repo.libs.ini.dumps({'HALLO': {'was': 'itlos', 'ich': 123}, 'YO': {}}),
|
||||
}
|
29
bundles/grafana/metadata.py
Normal file
29
bundles/grafana/metadata.py
Normal file
|
@ -0,0 +1,29 @@
|
|||
defaults = {
|
||||
'apt': {
|
||||
'packages': {
|
||||
'grafana': {},
|
||||
},
|
||||
'sources': [
|
||||
'deb https://packages.grafana.com/oss/deb stable main',
|
||||
],
|
||||
},
|
||||
'postgresql': {
|
||||
'databases': {
|
||||
'grafana': {
|
||||
'owner': 'grafana',
|
||||
},
|
||||
},
|
||||
'roles': {
|
||||
'grafana': {
|
||||
'password': repo.vault.password_for(f'{node.name} postgres role grafana'),
|
||||
},
|
||||
},
|
||||
},
|
||||
'zfs': {
|
||||
'datasets': {
|
||||
'tank/grafana': {
|
||||
'mountpoint': '/var/lib/grafana'
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
30
data/apt/keys/packages.grafana.com.asc
Normal file
30
data/apt/keys/packages.grafana.com.asc
Normal file
|
@ -0,0 +1,30 @@
|
|||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: GnuPG v1
|
||||
|
||||
mQENBFiHXVIBCADr3VDEAGpq9Sg/xrPVu1GGqWGXdbnTbbNKeveCtFHZz7/GSATW
|
||||
iwiY1skvlAOBiIKCqJEji0rZZgd8WxuhdfugiCBk1hDTMWCpjI0P+YymV77jHjYB
|
||||
jHrKNlhb+aLjEd9Gf2EtbKUT1fvGUkzlVrcRGSX/XR9MBZlgja7NIyuVbn3uwZQ4
|
||||
jflWSNSlvMpohNxTFkrBFTRrCJXhbDLfCS46+so22CP3+1VQyqJ7/6RWK9v9KYdS
|
||||
AVNgILXMggSrMqha4WA1a/ktczVQXNtP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eWf
|
||||
30CZ/wHg3NNIMB7I31vgmMOEbHQdv0LPTi9TG205VQeehcpNtZRZQ0D8TIetbxyi
|
||||
Emmn9osig9U3/7jaAWBabE/9bGx4TF3eLlEH9wmFrNYeXvgRqmyqVoqhIMCNAAOY
|
||||
REYyHyy9mzr9ywkwl0aroBqhzKIPyFlatZy9oRKllY/CCKO9RJy4DZidLphuwzqU
|
||||
ymdQ1sqe5nKvwG5GvcncPc3O7LMevDBWnpNNkgERnVxCqpm90TuE3ONbirnU4+/S
|
||||
tUsVU1DERc1fjOCnAm4pKIlNYphISIE7OQ==
|
||||
=0pMC
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
18
libs/ini.py
Normal file
18
libs/ini.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
from configparser import ConfigParser
|
||||
|
||||
class Writable():
|
||||
data = ''
|
||||
|
||||
def write(self, line):
|
||||
self.data += line
|
||||
|
||||
def dumps(dict):
|
||||
config = ConfigParser()
|
||||
|
||||
for section, settings in dict.items():
|
||||
config[section] = settings
|
||||
|
||||
writable = Writable()
|
||||
config.write(writable)
|
||||
|
||||
return writable.data
|
|
@ -8,6 +8,7 @@
|
|||
],
|
||||
'bundles': [
|
||||
'gitea',
|
||||
'grafana',
|
||||
'influxdb2',
|
||||
'postgresql',
|
||||
'wireguard',
|
||||
|
@ -27,6 +28,9 @@
|
|||
'sha256': '0d11d87ce60d5d98e22fc52f2c8c6ba2b54b14f9c26c767a46bf102c381ad128',
|
||||
'domain': 'git.sublimity.de',
|
||||
},
|
||||
'grafana': {
|
||||
'hostname': 'grafana.sublimity.de',
|
||||
},
|
||||
'influxdb': {
|
||||
'hostname': 'influxdb.sublimity.de',
|
||||
'client_token': '!decrypt:encrypt$gAAAAABg25z8fEYjuRkhg4XuYMtJsPO5SaqlexuricXPZAzZ51_iQtPe5v7S503hMFdZ7j-XQUP6Q2y3ovbzhouRYeRZy1W020csOOtBcH08X-ya9cCAOCMnJdujg0MVakxPJhNPa5Ip5XsI4Bjb0EcftNDayQWQsZw1vFHBHllD-ALTisoCdbImD6a1iT4NuT57JGydbWGW',
|
||||
|
|
Loading…
Reference in a new issue