projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
576c8a0
)
Use .dig to dig into hiera structs
author
Tollef Fog Heen
<tfheen@err.no>
Fri, 2 Feb 2018 09:57:12 +0000
(10:57 +0100)
committer
Tollef Fog Heen
<tfheen@err.no>
Fri, 2 Feb 2018 09:57:12 +0000
(10:57 +0100)
modules/roles/manifests/security_mirror.pp
patch
|
blob
|
history
diff --git
a/modules/roles/manifests/security_mirror.pp
b/modules/roles/manifests/security_mirror.pp
index
0972418
..
c0b4447
100644
(file)
--- a/
modules/roles/manifests/security_mirror.pp
+++ b/
modules/roles/manifests/security_mirror.pp
@@
-58,8
+58,8
@@
class roles::security_mirror {
binds => $binds,
}
- $onion_v4_addr = hiera("roles.security_mirror
.${::fqdn}.onion_v4_address", undef
)
- notify { "Onion address: ${onion_v4_address}": }
+ $onion_v4_addr = hiera("roles.security_mirror
", {}
)
+ .dig($::fqdn, 'onion_v4_address')
if $onion_v4_addr {
onion::service { 'security.debian.org':
port => 80,