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

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

Issue 9321092: Make sure nginx is properly restarted when the configuration changes (Closed)
Patch Set: Created Feb. 6, 2013, 9:50 a.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
Index: modules/nginx/manifests/init.pp
===================================================================
--- a/modules/nginx/manifests/init.pp
+++ b/modules/nginx/manifests/init.pp
@@ -10,17 +10,18 @@ class nginx (
File {
owner => root,
group => root,
mode => 0644,
}
file {'/etc/nginx/nginx.conf':
content => template('nginx/nginx.conf.erb'),
- require => Package['nginx']
+ require => Package['nginx'],
+ notify => Service['nginx']
}
file {'/etc/nginx/sites-available/default':
ensure => absent,
require => Package['nginx']
}
# file {'/etc/nginx/sites-enabled/default':
@@ -51,19 +52,9 @@ class nginx (
service {'nginx':
ensure => running,
enable => true,
hasrestart => true,
hasstatus => true,
require => File['/etc/nginx/nginx.conf']
}
-
- anchor {'nginx::begin':
- before => Package['nginx']
- }
-
- anchor {'nginx::end':
- require => Package['nginx'],
- notify => Service['nginx']
- }
-
}
« modules/filterserver/manifests/init.pp ('K') | « modules/filterserver/manifests/init.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld