Enable SSL for user sites on the dev server
[chef.git] / cookbooks / dev / recipes / default.rb
index 5186e1109934d65bbf01c835d961d81603e4d46c..35efa45f71ded8c9694aedb998dbbc0050c4761d 100644 (file)
@@ -136,6 +136,11 @@ search(:accounts, "*:*").each do |account|
     notifies :reload, "service[php7.0-fpm]"
   end
 
+  ssl_certificate "#{name}.dev.openstreetmap.org" do
+    domains ["#{name}.dev.openstreetmap.org", "#{name}.dev.osm.org"]
+    notifies :reload, "service[apache2]"
+  end
+
   apache_site "#{name}.dev.openstreetmap.org" do
     template "apache.user.erb"
     directory "#{user_home}/public_html"