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
|
@ -22,7 +22,10 @@ defaults = {
|
|||
}
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
@metadata_reactor.provides(
|
||||
'unbound/threads',
|
||||
'unbound/cache_slabs',
|
||||
)
|
||||
def cpu_cores_to_config_values(metadata):
|
||||
num_cpus = metadata.get('vm/cpu', 1)
|
||||
|
||||
|
@ -34,7 +37,9 @@ def cpu_cores_to_config_values(metadata):
|
|||
}
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
@metadata_reactor.provides(
|
||||
'iptables/bundle_rules/unbound',
|
||||
)
|
||||
def iptables(metadata):
|
||||
interfaces = metadata.get('unbound/restrict-to-interfaces', set())
|
||||
iptables = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue