| 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'] |
| - } |
| - |
| } |