X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/2c13e97fd4d53a098147c6c6a975977534e02e2c..0f3cdcb49d8f3e8e1eedc01800aeeb51bfd34ff3:/cookbooks/tilecache/recipes/default.rb diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index 87b27bc01..f18896479 100644 --- a/cookbooks/tilecache/recipes/default.rb +++ b/cookbooks/tilecache/recipes/default.rb @@ -39,7 +39,7 @@ package "oathtool" tilecaches = search(:node, "roles:tilecache").sort_by { |n| n[:hostname] } tilerenders = search(:node, "roles:tile").sort_by { |n| n[:hostname] } -tilecache_tokens = data_bag_item("tilecache", "tokens") +web_passwords = data_bag_item("web", "passwords") tilecaches.each do |cache| cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| @@ -103,7 +103,7 @@ template "/usr/local/bin/nginx_generate_tilecache_qos_map" do owner "root" group "root" mode 0o750 - variables tokens: => tilecache_tokens + variables :web_passwords => web_passwords end template "/etc/cron.d/tilecache" do @@ -113,9 +113,9 @@ template "/etc/cron.d/tilecache" do mode 0o644 end -execute 'execute_nginx_generate_tilecache_qos_map' do - command '/usr/local/bin/nginx_generate_tilecache_qos_map' - creates '/etc/nginx/conf.d/tile_qos_rates.map' +execute "execute_nginx_generate_tilecache_qos_map" do + command "/usr/local/bin/nginx_generate_tilecache_qos_map" + creates "/etc/nginx/conf.d/tile_qos_rates.map" action :run end