X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/7108c794e6ce1a3ea78f3ac6ff8fd7ea3bdc62a3..d293fc15606614a6476d5aa03b81ef820b6c9674:/cookbooks/community/recipes/default.rb diff --git a/cookbooks/community/recipes/default.rb b/cookbooks/community/recipes/default.rb index 89743de31..08f316d68 100644 --- a/cookbooks/community/recipes/default.rb +++ b/cookbooks/community/recipes/default.rb @@ -19,13 +19,17 @@ include_recipe "accounts" include_recipe "docker" -include_recipe "geoipupdate" include_recipe "git" include_recipe "ssl" passwords = data_bag_item("community", "passwords") license_keys = data_bag_item("geoipupdate", "license-keys") unless kitchen? +# Disable any default installed apache2 service. Web server is embedded within the discourse docker container +service "apache2" do + action [:disable, :stop] +end + directory "/srv/community.openstreetmap.org" do owner "root" group "root" @@ -54,7 +58,7 @@ template "/srv/community.openstreetmap.org/docker/containers/data.yml" do source "data.yml.erb" owner "root" group "root" - mode "644" + mode "640" variables :passwords => passwords notifies :run, "execute[discourse_container_data_rebuild]" end @@ -63,7 +67,7 @@ template "/srv/community.openstreetmap.org/docker/containers/web_only.yml" do source "web_only.yml.erb" owner "root" group "root" - mode "644" + mode "640" variables :license_keys => license_keys, :passwords => passwords notifies :run, "execute[discourse_container_web_only_bootstrap]" end @@ -72,7 +76,7 @@ template "/srv/community.openstreetmap.org/docker/containers/mail-receiver.yml" source "mail-receiver.yml.erb" owner "root" group "root" - mode "644" + mode "640" variables :passwords => passwords notifies :run, "execute[discourse_container_mail_receiver_rebuild]" end