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, |