From: Grant Slater Date: Mon, 2 Jan 2017 21:09:49 +0000 (+0000) Subject: tilecache: fix token in databag X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/0f3cdcb49d8f3e8e1eedc01800aeeb51bfd34ff3?hp=c09775bf0196a3aebfd459cf290220c969753cb9 tilecache: fix token in databag --- diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index cee98a156..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