Browse files

Fix a few deprecations that will be removed in Chef 11.0

  • Loading branch information...
1 parent 63eb230 commit f1b673e7e8d5af2a94e9e1a9d68948a0f6fc8d8e @michaelklishin michaelklishin committed Nov 4, 2012
View
2 ci_environment/java/recipes/oraclejdk7.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-node['java']['java_home'] = node.java.oraclejdk7.java_home
+node.set[:java][:java_home] = node.java.oraclejdk7.java_home
# This recipe relies on a PPA package and is Ubuntu/Debian specific. Please
# keep this in mind.
View
10 ci_environment/mongodb/recipes/apt.rb
@@ -20,12 +20,12 @@
# limitations under the License.
#
-node[:mongodb][:installed_from] = "apt"
+node.set[:mongodb][:installed_from] = "apt"
# default settings from apt repo
-node[:mongodb][:datadir] = "/var/lib/mongodb"
-node[:mongodb][:config] = "/etc/mongodb.conf"
-node[:mongodb][:logfile] = "/var/log/mongodb/mongodb.log"
-node[:mongodb][:pidfile] = "/var/run/mongodb.pid"
+node.set[:mongodb][:datadir] = "/var/lib/mongodb"
+node.set[:mongodb][:config] = "/etc/mongodb.conf"
+node.set[:mongodb][:logfile] = "/var/log/mongodb/mongodb.log"
+node.set[:mongodb][:pidfile] = "/var/run/mongodb.pid"
execute "apt-get update" do
View
2 ci_environment/postgresql/recipes/server_on_ramfs.rb
@@ -19,7 +19,7 @@
include_recipe "ramfs"
-node[:postgresql][:data_dir] = "#{node[:ramfs][:dir]}/postgresql"
+node.set[:postgresql][:data_dir] = "#{node[:ramfs][:dir]}/postgresql"
include_recipe "postgresql::server"
View
4 ci_environment/riak/recipes/config.rb
@@ -41,10 +41,10 @@
# kv.rb
-node.riak.kv.storage_backend = (node.riak.kv.storage_backend).to_s.to_sym
+node.set.riak.kv.storage_backend = (node.riak.kv.storage_backend).to_s.to_sym
# sasl.rb
-node.riak.sasl.errlog_type = (node.riak.sasl.errlog_type).to_s.to_sym
+node.set.riak.sasl.errlog_type = (node.riak.sasl.errlog_type).to_s.to_sym
case node.riak.kv.storage_backend

0 comments on commit f1b673e

Please sign in to comment.