]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/cgiirc/recipes/default.rb
Enable SSL for irc.osm.org
[chef.git] / cookbooks / cgiirc / recipes / default.rb
index 5f6c0eced3cce6327745a0b85c3938a1ff3c9215..173eebfdd5f404175e3a5204771a1c69600cfa62 100644 (file)
@@ -17,7 +17,7 @@
 # limitations under the License.
 #
 
 # limitations under the License.
 #
 
-include_recipe "apache"
+include_recipe "apache::ssl"
 
 blocks = data_bag_item("cgiirc", "blocks")
 
 
 blocks = data_bag_item("cgiirc", "blocks")
 
@@ -38,6 +38,12 @@ template "/etc/cgiirc/ipaccess" do
   variables :blocks => blocks["addresses"]
 end
 
   variables :blocks => blocks["addresses"]
 end
 
+ssl_certificate "irc.openstreetmap.org" do
+  domains "irc.openstreetmap.org"
+  fallback_certificate "openstreetmap"
+  notifies :reload, "service[apache2]"
+end
+
 apache_site "irc.openstreetmap.org" do
   template "apache.erb"
 end
 apache_site "irc.openstreetmap.org" do
   template "apache.erb"
 end