X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/94db71c4cc23c8d77a0a3e8bbf13e5250485738b..760d6ef7a14a6bcd89804c10aa9b20775f1af3fc:/cookbooks/chef/recipes/server.rb diff --git a/cookbooks/chef/recipes/server.rb b/cookbooks/chef/recipes/server.rb index 12c43840a..9581b1a56 100644 --- a/cookbooks/chef/recipes/server.rb +++ b/cookbooks/chef/recipes/server.rb @@ -84,6 +84,10 @@ service "chef-server" do subscribes :restart, "systemd_service[chef-server]" end +git_allowed = search(:node, node[:git][:allowed_nodes]).collect do |n| + n.ipaddresses(:role => :external) +end.flatten + apache_module "alias" apache_module "proxy_http" @@ -95,6 +99,7 @@ end apache_site "chef.openstreetmap.org" do template "apache.erb" + variables :git_allowed => git_allowed end template "/etc/cron.daily/chef-server-backup" do