summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-04-07 20:02:50 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-04-07 20:02:50 -0300
commitca2576f90aa75e5d9459c07e83c80f5084b3f9e6 (patch)
tree7e6a18fba3b757c43338815786d2999ca76e6b85 /manifests
parent8055770c9ce7df932cc63337355c059f54e556b9 (diff)
downloadpuppet-mail-ca2576f90aa75e5d9459c07e83c80f5084b3f9e6.tar.gz
puppet-mail-ca2576f90aa75e5d9459c07e83c80f5084b3f9e6.tar.bz2
Disabling mlmmj web interface
Diffstat (limited to 'manifests')
-rw-r--r--manifests/mlmmj.pp2
-rw-r--r--manifests/web.pp18
2 files changed, 19 insertions, 1 deletions
diff --git a/manifests/mlmmj.pp b/manifests/mlmmj.pp
index bada09e..52b9bd0 100644
--- a/manifests/mlmmj.pp
+++ b/manifests/mlmmj.pp
@@ -1,6 +1,6 @@
class mail::mlmmj {
include mail::packages::mlmmj
- include mail::web::mlmmj
+ include mail::web::mlmmj::disabled
group { 'mlmmj':
ensure => present,
diff --git a/manifests/web.pp b/manifests/web.pp
index 95aa3b7..4d87a09 100644
--- a/manifests/web.pp
+++ b/manifests/web.pp
@@ -119,3 +119,21 @@ class mail::web::mlmmj inherits websites::setup {
"puppet:///modules/mail/mlmmj/htpasswd" ],
}
}
+
+class mail::web::mlmmj::disabled inherits mail::web:mlmmj {
+ Apache::Site["$mlmmj_subdomain"] {
+ ensure => absent,
+ }
+
+ Package[ 'mlmmj-php-web', 'mlmmj-php-web-admin' ] {
+ ensure => absent,
+ }
+
+ File['/etc/mlmmj-php-web-admin'] {
+ ensure => absent,
+ }
+
+ File['/etc/mlmmj-php-web-admin/htpasswd'] {
+ ensure => absent,
+ }
+}