From: Grant Slater Date: Fri, 11 Mar 2022 23:29:04 +0000 (+0000) Subject: community: fix order of triggers, data before web X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/9ea9aee7f9fa1fb3c68cf32aedea233f4d7c8f81 community: fix order of triggers, data before web --- diff --git a/cookbooks/community/recipes/default.rb b/cookbooks/community/recipes/default.rb index 35dec9156..23b888af0 100644 --- a/cookbooks/community/recipes/default.rb +++ b/cookbooks/community/recipes/default.rb @@ -25,11 +25,6 @@ include_recipe "geoipupdate" passwords = data_bag_item("community", "passwords") license_keys = data_bag_item("geoipupdate", "license-keys") -ssl_certificate "community.openstreetmap.org" do - domains ["community.openstreetmap.org", "community.osm.org"] - notifies :run, "execute[discourse_container_web_only_rebuild]" -end - directory "/srv/community.openstreetmap.org" do owner "root" group "root" @@ -89,6 +84,11 @@ execute "discourse_container_data_rebuild" do group "root" end +ssl_certificate "community.openstreetmap.org" do + domains ["community.openstreetmap.org", "community.osm.org"] + notifies :run, "execute[discourse_container_web_only_rebuild]" +end + execute "discourse_container_web_only_rebuild" do action :nothing command "./launcher rebuild web_only"