--- /dev/null
+~FC003
+~FC064
+~FC065
+~FC066
+~FC071
--- /dev/null
+# Hot cookbook
+
+This cookbook configures the the redirect website found at
+[hot.openstreetmap.org](https://hot.openstreetmap.org).
--- /dev/null
+name "hot"
+maintainer "OpenStreetMap Administrators"
+maintainer_email "admins@openstreetmap.org"
+license "Apache-2.0"
+description "Configures hot web site"
+long_description IO.read(File.join(File.dirname(__FILE__), "README.md"))
+version "1.0.0"
+supports "ubuntu"
+depends "apache"
--- /dev/null
+#
+# Cookbook Name:: hot
+# Recipe:: default
+#
+# Copyright 2018, OpenStreetMap Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+include_recipe "apache"
+
+ssl_certificate "hot.openstreetmap.org" do
+ domains ["hot.openstreetmap.org", "hot.osm.org"]
+ notifies :reload, "service[apache2]"
+end
+
+apache_site "hot.openstreetmap.org" do
+ template "apache.erb"
+end
--- /dev/null
+# DO NOT EDIT - This file is being maintained by Chef
+
+<VirtualHost *:80>
+ ServerName hot.openstreetmap.org
+ ServerAlias hot.osm.org
+ ServerAdmin webmaster@openstreetmap.org
+
+ CustomLog /var/log/apache2/hot.openstreetmap.org-access.log combined
+ ErrorLog /var/log/apache2/hot.openstreetmap.org-error.log
+
+ RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
+ RedirectPermanent / https://www.hotosm.org/
+</VirtualHost>
+
+<VirtualHost *:443>
+ ServerName hot.openstreetmap.org
+ ServerAlias hot.osm.org
+ ServerAdmin webmaster@openstreetmap.org
+
+ CustomLog /var/log/apache2/hot.openstreetmap.org-access.log combined
+ ErrorLog /var/log/apache2/hot.openstreetmap.org-error.log
+
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/hot.openstreetmap.org.pem
+ SSLCertificateKeyFile /etc/ssl/private/hot.openstreetmap.org.key
+
+ RedirectPermanent / https://www.hotosm.org/
+</VirtualHost>
"role[blog]",
"role[otrs]",
"role[donate]",
+ "recipe[hot]",
"recipe[dhcpd]",
"recipe[openvpn]"
)