+ notifies :run, "execute[discourse_container_data_rebuild]"
+ notifies :run, "execute[discourse_container_web_only_rebuild]"
+end
+
+template "/srv/community.openstreetmap.org/docker/containers/data.yml" do
+ source "data.yml.erb"
+ owner "root"
+ group "root"
+ mode "644"
+ variables :license_keys => license_keys, :passwords => passwords
+ notifies :run, "execute[discourse_container_data_rebuild]"
+end
+
+template "/srv/community.openstreetmap.org/docker/containers/web_only.yml" do
+ source "web_only.yml.erb"
+ owner "root"
+ group "root"
+ mode "644"
+ variables :license_keys => license_keys, :passwords => passwords
+ notifies :run, "execute[discourse_container_web_only_rebuild]"
+end
+
+execute "discourse_container_data_rebuild" do
+ action :nothing
+ command "./launcher rebuild data"
+ cwd "/srv/community.openstreetmap.org/docker/"
+ user "root"
+ group "root"
+end
+
+execute "discourse_container_web_only_rebuild" do
+ action :nothing
+ command "./launcher rebuild web_only"
+ cwd "/srv/community.openstreetmap.org/docker/"
+ user "root"
+ group "root"