]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/wordpress/resources/site.rb
Limit required attributes to the actions that need them
[chef.git] / cookbooks / wordpress / resources / site.rb
index c86705d5df02832725697960ed6a366358195a5f..1771c2a1bbb7f84b4c6e3ba5eff9c81a945afde5 100644 (file)
@@ -25,8 +25,8 @@ property :aliases, :kind_of => [String, Array]
 property :directory, :kind_of => String
 property :version, :kind_of => String
 property :database_name, :kind_of => String, :required => true
-property :database_user, :kind_of => String, :required => true
-property :database_password, :kind_of => String, :required => true
+property :database_user, :kind_of => String, :required => [:create]
+property :database_password, :kind_of => String, :required => [:create]
 property :database_prefix, :kind_of => String, :default => "wp_"
 property :urls, :kind_of => Hash, :default => {}
 property :reload_apache, :kind_of => [TrueClass, FalseClass], :default => true