summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-19 18:01:30 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-19 18:01:30 -0200
commitcf7e736fd5be96c75e59182544ec9b12c361a6fa (patch)
tree93d115a29448da3fa2856a45a201cfc2334e5619
parentfdd0653fab6c8a459a0fd9d058f15cc0ebb4a05b (diff)
downloadpuppet-nginx-cf7e736fd5be96c75e59182544ec9b12c361a6fa.tar.gz
puppet-nginx-cf7e736fd5be96c75e59182544ec9b12c361a6fa.tar.bz2
Enhancing nginx::puppetmaster::disabled
-rw-r--r--manifests/puppetmaster.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/puppetmaster.pp b/manifests/puppetmaster.pp
index eed6318..b55bfbb 100644
--- a/manifests/puppetmaster.pp
+++ b/manifests/puppetmaster.pp
@@ -44,11 +44,21 @@ class nginx::puppetmaster inherits nginx::base {
}
class nginx::puppetmaster::disabled inherits nginx::puppetmaster {
+ File["/etc/nginx/nginx.conf", "/etc/nginx/conf.d/puppetmaster.conf",
+ "/etc/nginx", "/etc/nginx/sites-available", "/etc/nginx/sites-enabled"] {
+ ensure => absent,
+ }
+
Service['nginx'] {
+ enable => false,
ensure => stopped,
}
Nginx::Base::Site['puppetmaster'] {
ensure => absent,
}
+
+ Package['nginx'] {
+ ensure => absent,
+ }
}