X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e44c47b0fd84d13f70f56b1838bd213b7666ebb7..121252c9ad2a4debf5cd9189a46ee07ab0235923:/cookbooks/wordpress/providers/site.rb diff --git a/cookbooks/wordpress/providers/site.rb b/cookbooks/wordpress/providers/site.rb index a664b0ea8..36b6f5a3b 100644 --- a/cookbooks/wordpress/providers/site.rb +++ b/cookbooks/wordpress/providers/site.rb @@ -30,18 +30,18 @@ use_inline_resources action :create do version = new_resource.version || Chef::Wordpress.current_version - node.set_unless[:wordpress][:sites][new_resource.name] = {} - - node.set[:wordpress][:sites][new_resource.name][:directory] = site_directory - - node.set_unless[:wordpress][:sites][new_resource.name][:auth_key] = SecureRandom.base64(48) - node.set_unless[:wordpress][:sites][new_resource.name][:secure_auth_key] = SecureRandom.base64(48) - node.set_unless[:wordpress][:sites][new_resource.name][:logged_in_key] = SecureRandom.base64(48) - node.set_unless[:wordpress][:sites][new_resource.name][:nonce_key] = SecureRandom.base64(48) - node.set_unless[:wordpress][:sites][new_resource.name][:auth_salt] = SecureRandom.base64(48) - node.set_unless[:wordpress][:sites][new_resource.name][:secure_auth_salt] = SecureRandom.base64(48) - node.set_unless[:wordpress][:sites][new_resource.name][:logged_in_salt] = SecureRandom.base64(48) - node.set_unless[:wordpress][:sites][new_resource.name][:nonce_salt] = SecureRandom.base64(48) + node.normal_unless[:wordpress][:sites][new_resource.name] = {} + + node.normal[:wordpress][:sites][new_resource.name][:directory] = site_directory + + node.normal_unless[:wordpress][:sites][new_resource.name][:auth_key] = SecureRandom.base64(48) + node.normal_unless[:wordpress][:sites][new_resource.name][:secure_auth_key] = SecureRandom.base64(48) + node.normal_unless[:wordpress][:sites][new_resource.name][:logged_in_key] = SecureRandom.base64(48) + node.normal_unless[:wordpress][:sites][new_resource.name][:nonce_key] = SecureRandom.base64(48) + node.normal_unless[:wordpress][:sites][new_resource.name][:auth_salt] = SecureRandom.base64(48) + node.normal_unless[:wordpress][:sites][new_resource.name][:secure_auth_salt] = SecureRandom.base64(48) + node.normal_unless[:wordpress][:sites][new_resource.name][:logged_in_salt] = SecureRandom.base64(48) + node.normal_unless[:wordpress][:sites][new_resource.name][:nonce_salt] = SecureRandom.base64(48) mysql_user "#{new_resource.database_user}@localhost" do password new_resource.database_password