directory "#{user_home}/public_html"
variables :user => name, :port => port
end
+
+ template "/etc/sudoers.d/#{name}" do
+ source "sudoers.user.erb"
+ owner "root"
+ group "root"
+ mode 0440
+ variables :user => name
+ end
end
if node[:postgresql][:clusters][:"9.3/main"]
--- /dev/null
+# DO NOT EDIT - This file is being maintained by Chef
+<%= @user %> ALL=(ALL) NOPASSWD: /bin/cat /var/log/apache2/<%= @user %>.dev.openstreetmap.org-access.log
+<%= @user %> ALL=(ALL) NOPASSWD: /bin/cat /var/log/apache2/<%= @user %>.dev.openstreetmap.org-access.log.1
+<%= @user %> ALL=(ALL) NOPASSWD: /bin/cat /var/log/apache2/<%= @user %>.dev.openstreetmap.org-error.log
+<%= @user %> ALL=(ALL) NOPASSWD: /bin/cat /var/log/apache2/<%= @user %>.dev.openstreetmap.org-error.log.1