Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/nginx/manifests/init.pp

Issue 29321355: Issue 2600 - Normalize ownership and priviliges for Nginx logs (Closed)
Patch Set: Created July 3, 2015, 12:22 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/nginx/manifests/init.pp
===================================================================
--- a/modules/nginx/manifests/init.pp
+++ b/modules/nginx/manifests/init.pp
@@ -119,6 +119,13 @@
require => Package['nginx']
}
+ exec {"set_logfiles_owner_and_permissions":
+ command => '/bin/chown www-data.adm /var/log/nginx/* && /bin/chmod 0640 /var/log/nginx/*',
mathias 2015/07/03 13:51:04 Except for intermediate fixes, please do not use s
Fred 2015/07/06 16:11:52 Acknowledged.
+ # this should all be provided by package nginx:
+ # require => [File['/var/log/nginx'], User['www-data'], Group['adm']]
mathias 2015/07/03 13:51:04 This comment is both wrong (neither User['www-data
Fred 2015/07/06 16:11:52 Acknowledged.
+ require => Package['nginx']
mathias 2015/07/03 13:51:04 Please always use trailing commas, even when defin
Fred 2015/07/06 16:11:52 Acknowledged.
+ }
+
service {'nginx':
ensure => running,
enable => true,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld