From: Stephen Gran Date: Sat, 28 Apr 2012 15:08:17 +0000 (+0100) Subject: this should be under a role name X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9864e5713cbcc0d970940db2b90931c6ca0dc96c;p=dsa-puppet.git this should be under a role name Signed-off-by: Stephen Gran --- diff --git a/modules/roles/templates/dakmaster/conf-builddlist.erb b/modules/roles/templates/dakmaster/conf-builddlist.erb new file mode 100644 index 00000000..d216cdc9 --- /dev/null +++ b/modules/roles/templates/dakmaster/conf-builddlist.erb @@ -0,0 +1,26 @@ +## +## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. +## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git +## + + + +<%= + lines = [] + + scope.lookupvar('site::allnodeinfo').keys.sort.each do |node| + next unless scope.lookupvar('site::allnodeinfo')[node]['purpose'] + if scope.lookupvar('site::allnodeinfo')[node]['purpose'].include?('buildd') + lines << " # #{scope.lookupvar('site::allnodeinfo')[node]['hostname'].to_s}" + scope.lookupvar('site::allnodeinfo')[node]['ipHostNumber'].each do |addr| + lines << " allow from #{addr}" + end + end + end + + lines.join("\n") +# vim:set et: +# vim:set sts=2 ts=2: +# vim:set shiftwidth=2: +%> +