debian 12

This commit is contained in:
mwiegand 2022-05-04 20:50:03 +02:00
parent f416852225
commit 7588741b30
4 changed files with 47 additions and 4 deletions

View file

@ -63,4 +63,7 @@ for node in [
*wireguard_servers,
]:
print('rebooting', node.name)
print(node.run('systemctl reboot').stdout.decode())
try:
print(node.run('systemctl reboot').stdout.decode())
except Exception as e:
print(e)

View file

@ -6,6 +6,7 @@ defaults = {
'version': {
10: 11,
11: 17,
12: 17,
}[node.os_version[0]],
},
}

View file

@ -5,9 +5,6 @@ defaults = {
'packages': {
'telegraf': {},
},
'sources': {
'deb https://repos.influxdata.com/debian {release} stable',
},
},
'telegraf': {
'config': {
@ -81,6 +78,28 @@ defaults = {
}
@metadata_reactor.provides(
'apt/sources',
)
def apt(metadata):
release = {
'buster': 'buster',
'bullseye': 'bullseye',
'bookworm': 'bullseye',
}[metadata.get('os_release')]
return {
'apt': {
'packages': {
'telegraf': {},
},
'sources': {
f"deb https://repos.influxdata.com/debian {release} stable",
},
},
}
@metadata_reactor.provides(
'telegraf/config/outputs/influxdb_v2',
)

20
groups/os/debian-12.py Normal file
View file

@ -0,0 +1,20 @@
{
'supergroups': [
'debian',
],
'metadata': {
'apt': {
'sources': {
'deb http://security.debian.org/ {release}-security main contrib non-free',
},
},
'php': {
'version': '8.1',
},
'postgresql': {
'version': '14',
},
'os_release': 'bookworm',
},
'os_version': (12,),
}