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:
afc4eac
)
Add localhost listens when listen-addresses is set
author
Tollef Fog Heen
<tfheen@err.no>
Fri, 2 Feb 2018 08:33:44 +0000
(09:33 +0100)
committer
Tollef Fog Heen
<tfheen@err.no>
Fri, 2 Feb 2018 08:33:58 +0000
(09:33 +0100)
modules/roles/manifests/debian_mirror.pp
patch
|
blob
|
history
diff --git
a/modules/roles/manifests/debian_mirror.pp
b/modules/roles/manifests/debian_mirror.pp
index
78aa89b
..
c0b17b3
100644
(file)
--- a/
modules/roles/manifests/debian_mirror.pp
+++ b/
modules/roles/manifests/debian_mirror.pp
@@
-6,6
+6,7
@@
class roles::debian_mirror {
$listen_addresses = Hash(hiera('roles.debian_mirror').map |$h| {
$h.map |$k, $v| { [$k,$v] }[0]
}).dig($::fqdn, 'listen-addresses')
+ .then |$a| { $a + [ '127.0.0.1:80', '[::1]:80' ] }
.lest || { ['*:80'] }
$vhost_listen = join([