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

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

Issue 29328011: Issue 3062 - Explicitly ensure /var/cache/nginx being present (Closed)
Patch Set: Created Sept. 16, 2015, 12:55 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
diff --git a/modules/nginx/manifests/init.pp b/modules/nginx/manifests/init.pp
index 45fe3d23b54060aa5d5178a45fee4db316aba2ac..5e3c97c7862417217b5d45876bcbc97211f70376 100644
--- a/modules/nginx/manifests/init.pp
+++ b/modules/nginx/manifests/init.pp
@@ -60,6 +60,12 @@ class nginx (
require => Package['nginx']
}
+ file {'/var/cache/nginx':
+ before => Service['nginx'],
+ ensure => directory,
+ require => Package['nginx'],
+ }
+
define hostconfig (
$domain = $title,
$alt_names = [],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld