Skip to content

Commit

Permalink
Use the planet user consistently for generating planet data
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Sep 23, 2023
1 parent 957fe0c commit 052ea0a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions cookbooks/planet/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

remote_directory node[:planet][:dump][:xml_history_directory] do
source "history_cgi"
owner "www-data"
owner "planet"
group "planet"
mode "775"
files_owner "root"
Expand All @@ -61,7 +61,7 @@

remote_directory "/store/planet/cc-by-sa" do
source "ccbysa_cgi"
owner "www-data"
owner "planet"
group "planet"
mode "775"
files_owner "root"
Expand All @@ -71,7 +71,7 @@

remote_directory "/store/planet/cc-by-sa/full-experimental" do
source "ccbysa_history_cgi"
owner "www-data"
owner "planet"
group "planet"
mode "775"
files_owner "root"
Expand All @@ -82,20 +82,20 @@
[:xml_directory, :xml_history_directory,
:pbf_directory, :pbf_history_directory].each do |dir|
directory node[:planet][:dump][dir] do
owner "www-data"
owner "planet"
group "planet"
mode "775"
end
end

directory "/store/planet/notes" do
owner "www-data"
owner "planet"
group "planet"
mode "775"
end

directory "/store/planet/statistics" do
owner "www-data"
owner "planet"
group "planet"
mode "775"
end
Expand Down Expand Up @@ -141,7 +141,7 @@
systemd_service "planet-file-cleanup" do
description "Cleanup old planet files"
exec_start "/usr/local/bin/planet-file-cleanup --debug"
user "www-data"
user "planet"
sandbox true
read_write_paths [
node[:planet][:dump][:xml_directory],
Expand Down
8 changes: 4 additions & 4 deletions cookbooks/planet/recipes/dump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
end

directory "/store/planetdump" do
owner "www-data"
group "www-data"
owner "planet"
group "planet"
mode "755"
recursive true
end
Expand All @@ -105,7 +105,7 @@

systemd_service "planetdump@" do
description "Planet dump for %i"
user "www-data"
user "planet"
exec_start "/usr/local/bin/planetdump %i"
memory_max "64G"
sandbox true
Expand Down Expand Up @@ -134,7 +134,7 @@
systemd_service "planet-dump-mirror" do
description "Update planet dump mirrors"
exec_start "/usr/local/bin/planet-mirror-redirect-update"
user "www-data"
user "planet"
sandbox :enable_network => true
memory_deny_write_execute false
read_write_paths "/store/planet/.htaccess"
Expand Down
4 changes: 2 additions & 2 deletions cookbooks/planet/recipes/notes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
systemd_service "planet-notes-dump" do
description "Create notes dump"
exec_start "/usr/local/bin/planet-notes-dump"
user "www-data"
user "planet"
sandbox :enable_network => true
read_write_paths "/store/planet/notes"
end
Expand All @@ -78,7 +78,7 @@
systemd_service "planet-notes-cleanup" do
description "Delete old notes dumps"
exec_start "/usr/local/bin/planet-notes-cleanup"
user "www-data"
user "planet"
sandbox true
read_write_paths "/store/planet/notes"
end
Expand Down

0 comments on commit 052ea0a

Please sign in to comment.