bundlewrap/bundles/zfs-mirror/items.py
2021-10-12 22:28:57 +02:00

13 lines
331 B
Python

from ipaddress import ip_interface
files = {
'/opt/zfs-mirror': {
'mode': '550',
'content_type': 'mako',
'context': {
'server_ip': ip_interface(
repo.get_node(node.metadata.get('zfs-mirror/server')).metadata.get('network/internal/ipv4')
).ip,
},
}
}