]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/recipes/default.rb
We want ::File here not Chef::Provider::File
[chef.git] / cookbooks / tile / recipes / default.rb
index 9f54d530dbec066d8f3e27af17986e4d0e617f24..8d3b2e8dc9ff4814582d6fc88d7ce60818e378b0 100644 (file)
@@ -257,7 +257,7 @@ node[:tile][:styles].each do |name,details|
   end
 
   details[:tile_directories].each do |directory|
-    directory "#{directory[:name]}" do
+    directory directory[:name] do
       owner "www-data"
       group "www-data"
       mode 0755
@@ -374,8 +374,8 @@ postgresql_munin "gis" do
   database "gis"
 end
 
-tile_uid = node[:etc][:passwd]["tile"][:uid]
-www_data_gid = node[:etc][:group]["www-data"][:gid]
+tile_uid = node[:etc][:passwd][:"tile"][:uid]
+www_data_gid = node[:etc][:group][:"www-data"][:gid]
 
 ruby_block node[:tile][:node_file] do
   block do