summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2010-02-17 16:10:18 -0200
committerdrebs <drebs@riseup.net>2010-02-17 16:10:18 -0200
commit7c40c6aa71a8f11f0ea3f90689bbdc9f2d058c7f (patch)
tree289b4bc5f622f59cc348a8ec11da09edbb3601f7
parentf28e75161e074c2ebddd874618b72309a8d9e656 (diff)
downloadpuppet-nginx-7c40c6aa71a8f11f0ea3f90689bbdc9f2d058c7f.tar.gz
puppet-nginx-7c40c6aa71a8f11f0ea3f90689bbdc9f2d058c7f.tar.bz2
Referring to service on superclass.
-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"],