]> git.openstreetmap.org Git - chef.git/commitdiff
tilecache: fix token in databag
authorGrant Slater <git@firefishy.com>
Mon, 2 Jan 2017 21:09:49 +0000 (21:09 +0000)
committerGrant Slater <git@firefishy.com>
Mon, 2 Jan 2017 21:09:49 +0000 (21:09 +0000)
cookbooks/tilecache/recipes/default.rb

index cee98a156171ea6dc226a9c04fbe46748769ddcf..f188964796cf4929e6b86e4abfc4b3f8d3d16919 100644 (file)
@@ -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] }
 
 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|
 
 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
   owner "root"
   group "root"
   mode 0o750
-  variables :tokens => tilecache_tokens
+  variables :web_passwords => web_passwords
 end
 
 template "/etc/cron.d/tilecache" do
 end
 
 template "/etc/cron.d/tilecache" do