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:
b77434d
)
Handle hosts that are not in ldap yet
author
Peter Palfrader
<peter@palfrader.org>
Thu, 6 Nov 2014 16:59:33 +0000
(17:59 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Thu, 6 Nov 2014 16:59:33 +0000
(17:59 +0100)
modules/ferm/templates/defs.conf.erb
patch
|
blob
|
history
diff --git
a/modules/ferm/templates/defs.conf.erb
b/modules/ferm/templates/defs.conf.erb
index
ebaf9e4
..
a99f279
100644
(file)
--- a/
modules/ferm/templates/defs.conf.erb
+++ b/
modules/ferm/templates/defs.conf.erb
@@
-27,6
+27,7
@@
%w{mailrelay nagiosmaster extranrpeclient muninmaster dbmaster static_mirror static_source static_master dns_geo postgres_backup_server}.each do |role|
rolehost[role] = []
roles[role].each do |node|
+ next unless allnodeinfo.has_key(node) and allnodeinfo[node].has_key?('ipHostNumber')
rolehost[role] << allnodeinfo[node]['ipHostNumber']
end
rolehost[role].flatten!.sort.uniq