summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp5
1 files changed, 1 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 582f795..1f08ad0 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -94,10 +94,7 @@ class nginx inherits nginx::base {
require => File["/etc/ssl/private"],
}
- service { "nginx":
- enable => true,
- ensure => running,
- hasrestart => true,
+ Service["nginx"] {
require => [ File["/etc/nginx/sites-enabled/$domain"],
Package["nginx"],
File["/etc/ssl/private/cert.pem"],