basedir = data_bag_item("accounts", "nominatim")["home"]
email_errors = data_bag_item("accounts", "lonvia")["email"]
+directory "#{basedir}" do
+ owner "nominatim"
+ group "nominatim"
+ mode 0o755
+ recursive true
+end
+
+
directory node[:nominatim][:logdir] do
owner "nominatim"
group "nominatim"
mode 0o664
end
-directory "#{basedir}/status" do
- owner "nominatim"
- group "postgres"
- mode 0o775
-end
-
## Postgresql
include_recipe "postgresql"
user "nominatim"
group "nominatim"
mode 0o755
- variables :logfile => "#{node[:nominatim][:logdir]}/update.log",
+ variables :bindir => build_directory,
+ :srcdir => source_directory,
+ :logfile => "#{node[:nominatim][:logdir]}/update.log",
:branch => node[:nominatim][:revision],
:update_stop_file => "#{basedir}/status/updates_disabled"
end
munin_plugin "nominatim_throttled_ips" do
target "#{source_directory}/munin/nominatim_throttled_ips"
end
+
+directory "#{basedir}/status" do
+ owner "nominatim"
+ group "postgres"
+ mode 0o775
+end