Skip to content

Commit

Permalink
Change nginx log directory owner to fix log rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
waj-kubiak committed Apr 1, 2022
1 parent 5283a55 commit 95aec3c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Puppet module for managing Nginx for Kraken Technologies machines.

## Changelog

### v1.9.2

- Change nginx log directory owner to fix log rotation.

### v1.9.1

- Fix bug in handling Ubuntu 20.04.
Expand Down
7 changes: 7 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
require => Exec["update package lists for nginx"],
}

file { "nginx log dir":
path => "/var/log/nginx",
ensure => "directory",
mode => "0755",
require => Package["nginx"],
}

file { "nginx config":
path => "/etc/nginx/nginx.conf",
ensure => "file",
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "octoenergy-octo_nginx",
"version": "1.9.1",
"version": "1.9.2",
"author": "Kraken Technologies",
"license": "BSD",
"summary": "Nginx module for Kraken Technologies",
Expand Down

0 comments on commit 95aec3c

Please sign in to comment.