X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/cf074f83728ffa2fdc43cf10f0dca5a4b443a29e..e1bc94ff7a1970c8bc669a034ffbf7d0165e510a:/cookbooks/mediawiki/resources/site.rb diff --git a/cookbooks/mediawiki/resources/site.rb b/cookbooks/mediawiki/resources/site.rb index f27c150f5..7bf4d5abc 100644 --- a/cookbooks/mediawiki/resources/site.rb +++ b/cookbooks/mediawiki/resources/site.rb @@ -23,8 +23,7 @@ default_action :create property :site, :kind_of => String, :name_property => true property :aliases, :kind_of => [String, Array] -property :directory, :kind_of => String -property :version, :kind_of => String, :default => "1.37" +property :version, :kind_of => String, :default => "1.39" property :database_name, :kind_of => String, :required => true property :database_user, :kind_of => String, :required => [:create, :update] property :database_password, :kind_of => String, :required => [:create, :update] @@ -61,6 +60,7 @@ action :create do mysql_user "#{new_resource.database_user}@localhost" do password new_resource.database_password + reload true end mysql_database new_resource.database_name do @@ -531,6 +531,7 @@ action :update do cwd mediawiki_directory user node[:mediawiki][:user] group node[:mediawiki][:group] + timeout 86400 end end @@ -558,7 +559,7 @@ action_class do include OpenStreetMap::Mixin::PersistentToken def site_directory - new_resource.directory || "/srv/#{new_resource.site}" + "/srv/#{new_resource.site}" end def mediawiki_reference