]> git.openstreetmap.org Git - chef.git/blob - cookbooks/irc/recipes/default.rb
Use strings for file modes
[chef.git] / cookbooks / irc / recipes / default.rb
1 #
2 # Cookbook:: irc
3 # Recipe:: default
4 #
5 # Copyright:: 2011, OpenStreetMap Foundation
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #     https://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19
20 include_recipe "apache"
21
22 ssl_certificate "irc.openstreetmap.org" do
23   domains ["irc.openstreetmap.org", "irc.osm.org"]
24   notifies :reload, "service[apache2]"
25 end
26
27 directory "/srv/irc.openstreetmap.org" do
28   owner "root"
29   group "root"
30   mode "755"
31 end
32
33 remote_directory "/srv/irc.openstreetmap.org/html" do
34   source "html"
35   owner "root"
36   group "root"
37   mode "755"
38   files_owner "root"
39   files_group "root"
40   files_mode 0o644
41 end
42
43 apache_site "irc.openstreetmap.org" do
44   template "apache.erb"
45   directory "/srv/irc.openstreetmap.org/html"
46   variables :aliases => ["irc.osm.org"]
47 end