From: Paul Norman Date: Mon, 24 Feb 2025 19:21:39 +0000 (-0800) Subject: vectortile: make enabled a boolean X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/34698e3bb3dbc2c0b6e5301ae2bb51bb824cc452?hp=e27132d1764ae447400169468c20b02f3176dcc8 vectortile: make enabled a boolean --- diff --git a/cookbooks/vectortile/attributes/default.rb b/cookbooks/vectortile/attributes/default.rb index 912b7ee25..4ec9120d2 100644 --- a/cookbooks/vectortile/attributes/default.rb +++ b/cookbooks/vectortile/attributes/default.rb @@ -4,8 +4,8 @@ default[:vectortile][:database][:nodes_store] = :flat default[:vectortile][:serve][:threads] = node.cpu_cores default[:vectortile][:serve][:mode] = :live default[:vectortile][:replication][:url] = "https://osm-planet-eu-central-1.s3.dualstack.eu-central-1.amazonaws.com/planet/replication/minute" -default[:vectortile][:replication][:status] = :enabled -default[:vectortile][:replication][:tileupdate] = :enabled +default[:vectortile][:replication][:enabled] = true +default[:vectortile][:replication][:tileupdate] = true default[:vectortile][:replication][:threads] = node.cpu_cores default[:vectortile][:tilekiln][:version] = "0.6.5" diff --git a/cookbooks/vectortile/recipes/default.rb b/cookbooks/vectortile/recipes/default.rb index 703407f11..feda712a0 100644 --- a/cookbooks/vectortile/recipes/default.rb +++ b/cookbooks/vectortile/recipes/default.rb @@ -246,7 +246,7 @@ execute "/srv/vector.openstreetmap.org/spirit/scripts/get-external-data.py" do end template "/usr/local/bin/vector-update" do - source node[:vectortile][:replication][:tileupdate] == :enabled ? "vector-update-tile.erb" : "vector-update-notile.erb" + source node[:vectortile][:replication][:tileupdate] ? "vector-update-tile.erb" : "vector-update-notile.erb" owner "root" group "root" mode "755" @@ -279,7 +279,7 @@ systemd_timer "replicate" do accuracy_sec 5 end -if node[:vectortile][:replication][:status] == :enabled +if node[:vectortile][:replication][:enabled] service "replicate.timer" do action [:enable, :start] end diff --git a/roles/dribble.rb b/roles/dribble.rb index fb68919f4..cb592383d 100644 --- a/roles/dribble.rb +++ b/roles/dribble.rb @@ -58,10 +58,6 @@ default_attributes( } }, :vectortile => { - :replication => { - :status => :enabled, - :tileupdate => :enabled - }, :tilekiln => { :version => "0.7.0" }