X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/01b2f3402f5e3b7fbb20abdfde4444a72278f060..f4bdb57179d283094086b70456798ffee045c6e6:/cookbooks/dns/recipes/default.rb diff --git a/cookbooks/dns/recipes/default.rb b/cookbooks/dns/recipes/default.rb index e2b41155d..4fbde88c0 100644 --- a/cookbooks/dns/recipes/default.rb +++ b/cookbooks/dns/recipes/default.rb @@ -18,7 +18,7 @@ # include_recipe "git" -include_recipe "apache" +include_recipe "apache::ssl" passwords = data_bag_item("dns", "passwords") @@ -71,6 +71,12 @@ template "/srv/dns.openstreetmap.org/html/index.html" do variables :zones => zones end +ssl_certificate "dns.openstreetmap.org" do + domains "dns.openstreetmap.org" + fallback_certificate "openstreetmap" + notifies :reload, "service[apache2]" +end + apache_site "dns.openstreetmap.org" do template "apache.erb" directory "/srv/dns.openstreetmap.org"