X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2d198194421c661f2181c8ceca09eb55c2180eda..46230812e0c9de44789e26349ad8686bd27cff36:/cookbooks/nominatim/recipes/default.rb diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index 976bdb4c2..63734cdb8 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -20,6 +20,13 @@ 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" @@ -344,7 +351,7 @@ end include_recipe "fail2ban" fail2ban_filter "nominatim" do - failregex '^ - - \[[^]]+\] "[^"]+" 429 ' + failregex '^ - - \[\] "[^"]+" 429 ' end fail2ban_jail "nominatim" do