update bw to 4.3, add .provides() to metadata reactors
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
7f0fb7a6e2
commit
2d42e5f7dd
29 changed files with 158 additions and 47 deletions
|
@ -26,7 +26,9 @@ defaults = {
|
|||
}
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
@metadata_reactor.provides(
|
||||
'wireguard/network',
|
||||
)
|
||||
def get_wireguard_network_from_server(metadata):
|
||||
# FIXME This will break if more than one node sets 'wireguard/network'
|
||||
for rnode in repo.nodes:
|
||||
|
@ -46,7 +48,9 @@ def get_wireguard_network_from_server(metadata):
|
|||
return {}
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
@metadata_reactor.provides(
|
||||
'wireguard/peers',
|
||||
)
|
||||
def get_my_wireguard_peers(metadata):
|
||||
peers = {}
|
||||
|
||||
|
@ -76,7 +80,9 @@ def get_my_wireguard_peers(metadata):
|
|||
}
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
@metadata_reactor.provides(
|
||||
'icinga2_api/wireguard/services',
|
||||
)
|
||||
def icinga2(metadata):
|
||||
services = {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue