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

Unified Diff: modules/filterserver/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
« no previous file with comments | « no previous file | modules/nginx/manifests/init.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/filterserver/manifests/init.pp
===================================================================
--- a/modules/filterserver/manifests/init.pp
+++ b/modules/filterserver/manifests/init.pp
@@ -67,45 +67,45 @@ class filterserver {
file {'/var/www/subscriptionStats.ini':
ensure => present,
owner => rsync
}
file {'/etc/nginx/sites-available/inc.easylist-downloads':
ensure => file,
- require => Anchor['nginx::end'],
+ notify => Service['nginx'],
Andrey Novikov 2013/02/06 10:03:54 The point was to hide implementation from other mo
Wladimir Palant 2013/02/06 10:42:31 ~> is just an alternative syntax for "notify => ",
before => Nginx::Hostconfig['easylist-downloads.adblockplus.org'],
source => 'puppet:///modules/filterserver/inc.easylist-downloads'
}
file {'/etc/nginx/sites-available/inc.easylist-downloads-txt':
ensure => file,
- require => Anchor['nginx::end'],
+ notify => Service['nginx'],
before => Nginx::Hostconfig['easylist-downloads.adblockplus.org'],
source => 'puppet:///modules/filterserver/inc.easylist-downloads-txt'
}
file {'/etc/nginx/sites-available/inc.easylist-downloads-tpl':
ensure => file,
- require => Anchor['nginx::end'],
+ notify => Service['nginx'],
before => Nginx::Hostconfig['easylist-downloads.adblockplus.org'],
source => 'puppet:///modules/filterserver/inc.easylist-downloads-tpl'
}
file {'/etc/nginx/sites-available/easylist-downloads.adblockplus.org_sslcert.key':
ensure => file,
- require => Anchor['nginx::end'],
+ notify => Service['nginx'],
before => Nginx::Hostconfig['easylist-downloads.adblockplus.org'],
source => 'puppet:///modules/private/easylist-downloads.adblockplus.org_sslcert.key'
}
file {'/etc/nginx/sites-available/easylist-downloads.adblockplus.org_sslcert.pem':
ensure => file,
- require => Anchor['nginx::end'],
+ notify => Service['nginx'],
before => Nginx::Hostconfig['easylist-downloads.adblockplus.org'],
mode => 0400,
source => 'puppet:///modules/private/easylist-downloads.adblockplus.org_sslcert.pem'
}
nginx::hostconfig{'easylist-downloads.adblockplus.org':
source => 'puppet:///modules/filterserver/easylist-downloads.adblockplus.org',
enabled => true
« no previous file with comments | « no previous file | modules/nginx/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld