From 9864e5713cbcc0d970940db2b90931c6ca0dc96c Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sat, 28 Apr 2012 16:08:17 +0100 Subject: [PATCH] this should be under a role name Signed-off-by: Stephen Gran --- .../templates/dakmaster/conf-builddlist.erb | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 modules/roles/templates/dakmaster/conf-builddlist.erb 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: +%> + -- 2.39.2