]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilelog/recipes/default.rb
Run tile log analysis as the planet user
[chef.git] / cookbooks / tilelog / recipes / default.rb
index b911dacffc8040950b2433b40dc012a6342798bc..823e1a3f605e1ece32636f6be362c8b47d7c48c6 100644 (file)
@@ -31,12 +31,12 @@ end
 python_package "tilelog" do
   python_virtualenv tilelog_directory
   python_version "3"
-  version "1.4.1"
+  version "1.7.0"
 end
 
 directory tilelog_output_directory do
-  user "www-data"
-  group "www-data"
+  user "planet"
+  group "planet"
   mode "755"
   recursive true
 end
@@ -52,13 +52,10 @@ end
 
 systemd_service "tilelog" do
   description "Tile log analysis"
-  user "www-data"
+  user "planet"
   exec_start "/usr/local/bin/tilelog"
   nice 10
-  private_tmp true
-  private_devices true
-  protect_system "strict"
-  protect_home true
+  sandbox :enable_network => true
   read_write_paths tilelog_output_directory
 end