]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mediawiki/resources/site.rb
Make default mw file extensions a blank array
[chef.git] / cookbooks / mediawiki / resources / site.rb
index 68b56e6ccd26bdae054d890f6d8f3ce7af8da296..a210e806b6ac8498b6486f27b4a8b83a4b222b2f 100644 (file)
 # limitations under the License.
 #
 
-actions :create, :delete
+actions :create, :update, :delete
 default_action :create
 
 attribute :name, :kind_of => String, :name_attribute => true
 attribute :aliases, :kind_of => [String, Array]
 attribute :directory, :kind_of => String
-attribute :version, :kind_of => String, :default => "1.22"
+attribute :version, :kind_of => String, :default => "1.24"
 attribute :database_name, :kind_of => String, :required => true
 attribute :database_user, :kind_of => String, :required => true
 attribute :database_password, :kind_of => String, :required => true
@@ -46,6 +46,7 @@ attribute :private_accounts, :kind_of => [TrueClass, FalseClass], :default => fa
 attribute :private, :kind_of => [TrueClass, FalseClass], :default => false
 attribute :recaptcha_public_key, :kind_of => String
 attribute :recaptcha_private_key, :kind_of => String
+attribute :extra_file_extensions, :kind_of => [String, Array], :default => []
 attribute :reload_apache, :kind_of => [TrueClass, FalseClass], :default => true
 
 def after_created
@@ -74,6 +75,7 @@ def mediawiki_params
     :site_notice => site_notice,
     :site_readonly => site_readonly,
     :ssl_enabled => ssl_enabled,
+    :extra_file_extensions  => extra_file_extensions,
     :private_accounts => private_accounts,
     :private => private
   }