property :site, :kind_of => String, :name_attribute => true
property :aliases, :kind_of => [String, Array]
property :directory, :kind_of => String
-property :version, :kind_of => String, :default => "1.29"
+property :version, :kind_of => String, :default => "1.31"
property :database_name, :kind_of => String, :required => true
property :database_user, :kind_of => String, :required => true
property :database_password, :kind_of => String, :required => true
ruby_block "catch-installer-localsettings-run" do
action :run
block do
- #
end
not_if do
::File.exist?("#{mediawiki_directory}/LocalSettings-install.php")
mediawiki_extension "AntiSpoof" do
site new_resource.site
template "mw-ext-AntiSpoof.inc.php.erb"
+ compose true
update_site false
end
mediawiki_extension "AbuseFilter" do
site new_resource.site
template "mw-ext-AbuseFilter.inc.php.erb"
+ compose true
update_site false
end
mediawiki_extension "Elastica" do
site new_resource.site
+ compose true
update_site false
end
update_site false
end
+ mediawiki_extension "TemplateData" do
+ site new_resource.site
+ update_site false
+ end
+
cookbook_file "#{site_directory}/cc-wiki.png" do
cookbook "mediawiki"
owner node[:mediawiki][:user]