summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-18 18:54:29 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-18 18:54:29 -0200
commitfdd0653fab6c8a459a0fd9d058f15cc0ebb4a05b (patch)
treeb168aec329e4a99b91c0c1094a02ec07aba16094
parent532a4eee5fb4efe2bc09902a450ceeb53d908e31 (diff)
downloadpuppet-nginx-fdd0653fab6c8a459a0fd9d058f15cc0ebb4a05b.tar.gz
puppet-nginx-fdd0653fab6c8a459a0fd9d058f15cc0ebb4a05b.tar.bz2
Adding 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 6bbe046..eed6318 100644
--- a/manifests/puppetmaster.pp
+++ b/manifests/puppetmaster.pp
@@ -42,3 +42,13 @@ class nginx::puppetmaster inherits nginx::base {
content => template("nginx/nginx.conf.puppetmaster.erb"),
}
}
+
+class nginx::puppetmaster::disabled inherits nginx::puppetmaster {
+ Service['nginx'] {
+ ensure => stopped,
+ }
+
+ Nginx::Base::Site['puppetmaster'] {
+ ensure => absent,
+ }
+}