diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-04-07 20:02:50 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-04-07 20:02:50 -0300 |
commit | ca2576f90aa75e5d9459c07e83c80f5084b3f9e6 (patch) | |
tree | 7e6a18fba3b757c43338815786d2999ca76e6b85 /manifests | |
parent | 8055770c9ce7df932cc63337355c059f54e556b9 (diff) | |
download | puppet-mail-ca2576f90aa75e5d9459c07e83c80f5084b3f9e6.tar.gz puppet-mail-ca2576f90aa75e5d9459c07e83c80f5084b3f9e6.tar.bz2 |
Disabling mlmmj web interface
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/mlmmj.pp | 2 | ||||
-rw-r--r-- | manifests/web.pp | 18 |
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, + } +} |