]> git.openstreetmap.org Git - chef.git/commitdiff
community: fix order of triggers, data before web
authorGrant Slater <git@firefishy.com>
Fri, 11 Mar 2022 23:29:04 +0000 (23:29 +0000)
committerGrant Slater <git@firefishy.com>
Fri, 11 Mar 2022 23:29:04 +0000 (23:29 +0000)
cookbooks/community/recipes/default.rb

index 35dec91564189e9dd2f27a0f86342afc206c672f..23b888af09bd90154420639f829fb74f5912dd09 100644 (file)
@@ -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"