- roles::static_mirror_web
roles::static_mirror_web::onion_service: true
-roles::static_mirror_web::onion_addr: '5.153.231.4'
}
if $onion_service {
- $onion_addr = filter_ipv4($listen_addr)[0]
+ $onion_addr = empty($listen_addr) ? {
+ true => $base::public_address,
+ default => filter_ipv4($listen_addr)[0]
+ }
if ! $onion_addr {
fail("Do not have a useable address for the onionservice on ${::hostname}. Is \$listen_addr empty or does it not have an IPv4 address?.")
}
if $onion_service {
- $onion_addr = filter_ipv4($listen_addr)[0]
+ $onion_addr = empty($listen_addr) ? {
+ true => $base::public_address,
+ default => filter_ipv4($listen_addr)[0]
+ }
if ! $onion_addr {
fail("Do not have a useable address for the onionservice on ${::hostname}. Is \$listen_addr empty or does it not have an IPv4 address?.")
}