use_inline_resources
action :create do
- node.set_unless[:mediawiki][:sites][new_resource.name] = {}
+ node.normal_unless[:mediawiki][:sites][new_resource.name] = {}
- node.set[:mediawiki][:sites][new_resource.name][:directory] = site_directory
- node.set[:mediawiki][:sites][new_resource.name][:version] = new_resource.version
+ node.normal[:mediawiki][:sites][new_resource.name][:directory] = site_directory
+ node.normal[:mediawiki][:sites][new_resource.name][:version] = new_resource.version
- node.set_unless[:mediawiki][:sites][new_resource.name][:wgSecretKey] = SecureRandom.base64(48)
+ node.normal_unless[:mediawiki][:sites][new_resource.name][:wgSecretKey] = SecureRandom.base64(48)
mysql_user "#{new_resource.database_user}@localhost" do
password new_resource.database_password
end
if File.exist?("/etc/openvpn/#{name}.key")
- node.set[:openvpn][:keys][name] = IO.read("/etc/openvpn/#{name}.key")
+ node.normal[:openvpn][:keys][name] = IO.read("/etc/openvpn/#{name}.key")
end
elsif peer && peer[:openvpn]
file "/etc/openvpn/#{name}.key" do
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