#
-# Cookbook Name:: chef
+# Cookbook:: chef
# Recipe:: server
#
-# Copyright 2010, OpenStreetMap Foundation
+# Copyright:: 2010, OpenStreetMap Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
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"
apache_site "chef.openstreetmap.org" do
template "apache.erb"
- variables :git_allowed => git_allowed
end
template "/etc/cron.daily/chef-server-backup" do