From: Tom Hughes Date: Sat, 1 Aug 2020 15:56:15 +0000 (+0100) Subject: Defer creation of the parsoid config to the end of the run X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/edaf3fc71f0556b56fd6f69743cddef843a265b6 Defer creation of the parsoid config to the end of the run --- diff --git a/cookbooks/mediawiki/recipes/default.rb b/cookbooks/mediawiki/recipes/default.rb index 2f9437760..77f956b69 100644 --- a/cookbooks/mediawiki/recipes/default.rb +++ b/cookbooks/mediawiki/recipes/default.rb @@ -73,12 +73,18 @@ file "/etc/mediawiki/parsoid/settings.js" do end template "/etc/mediawiki/parsoid/config.yaml" do + action :nothing source "parsoid-config.yaml.erb" owner "root" group "root" mode "644" end +notify_group "parsoid-config" do + action :run + notifies :create, "template[/etc/mediawiki/parsoid/config.yaml]" +end + service "parsoid" do action [:enable] supports :status => false, :restart => true, :reload => false