X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/a68415b8f2bf106b6ea5948b0605c897b516ef4f..6d0fd628cfdf5b2e32c656b78ece007752c522f2:/cookbooks/git/recipes/web.rb diff --git a/cookbooks/git/recipes/web.rb b/cookbooks/git/recipes/web.rb index 5a59e1c4b..8eb83bf15 100644 --- a/cookbooks/git/recipes/web.rb +++ b/cookbooks/git/recipes/web.rb @@ -17,7 +17,7 @@ # limitations under the License. # -include_recipe "apache::ssl" +include_recipe "apache" package "gitweb" @@ -32,9 +32,15 @@ template "/etc/gitweb.conf" do mode 0o644 end +ssl_certificate node[:git][:host] do + domains [node[:git][:host]] + Array(node[:git][:aliases]) + notifies :reload, "service[apache2]" +end + apache_site node[:git][:host] do template "apache.erb" directory git_directory + variables :aliases => Array(node[:git][:aliases]) end template "#{git_directory}/robots.txt" do