Compare commits

..

1 commit

Author SHA1 Message Date
7350b01403
wip 2025-06-22 10:57:27 +02:00
6 changed files with 74 additions and 65 deletions

View file

@ -1,3 +0,0 @@
# svc_systemd = {
# 'ifupdown.service': {},
# }

View file

@ -36,7 +36,6 @@ def dhcp(metadata):
'systemd/units', 'systemd/units',
) )
def units(metadata): def units(metadata):
if node.has_bundle('systemd-networkd'):
units = {} units = {}
for network_name, network_conf in metadata.get('network').items(): for network_name, network_conf in metadata.get('network').items():
@ -95,5 +94,3 @@ def units(metadata):
'units': units, 'units': units,
} }
} }
else:
return {}

View file

@ -13,7 +13,6 @@ defaults = {
'os-prober': { 'os-prober': {
'installed': False, 'installed': False,
}, },
'dnsmasq-base': {},
}, },
'sources': { 'sources': {
'proxmox-ve': { 'proxmox-ve': {

View file

@ -1,9 +1,6 @@
assert node.has_bundle('systemd') assert node.has_bundle('systemd')
files = { files = {
'/etc/network/interfaces': {
'delete': True,
},
'/etc/resolv.conf': { '/etc/resolv.conf': {
'content_type': 'mako', 'content_type': 'mako',
}, },
@ -21,3 +18,9 @@ directories = {
svc_systemd = { svc_systemd = {
'systemd-networkd.service': {}, 'systemd-networkd.service': {},
} }
if not node.has_bundle('proxmox-ve'):
files['/etc/network/interfaces'] = {
'delete': True,
}

View file

@ -5,6 +5,5 @@
], ],
'bundles': [ 'bundles': [
'ifupdown', 'ifupdown',
'proxmox-ve',
], ],
} }

View file

@ -3,7 +3,7 @@
'groups': [ 'groups': [
'autologin', 'autologin',
'backup', 'backup',
'debian-12-pve', 'debian-12',
'home', 'home',
'nextcloud', 'nextcloud',
'monitored', 'monitored',
@ -32,8 +32,10 @@
'systemd-swap', 'systemd-swap',
'twitch-clip-download', 'twitch-clip-download',
'raspberrymatic-cert', 'raspberrymatic-cert',
#'tasmota-charge',
'wol-waker', 'wol-waker',
'zfs', 'zfs',
'proxmox-ve',
], ],
'metadata': { 'metadata': {
'id': 'af96709e-b13f-4965-a588-ef2cd476437a', 'id': 'af96709e-b13f-4965-a588-ef2cd476437a',
@ -154,6 +156,18 @@
}, },
}, },
'systemd-swap': 4_000_000_000, 'systemd-swap': 4_000_000_000,
'tasmota-charge': {
'phone': {
'ip': '10.0.0.175',
'user': 'u0_a233',
'password': 'november',
},
'plug': {
'ip': '10.0.2.115',
'min': 45,
'max': 70,
},
},
'twitch-clip-download': { 'twitch-clip-download': {
'channel_name': 'cronekorkn_', 'channel_name': 'cronekorkn_',
}, },