summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-04-07 19:20:50 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-04-07 19:20:50 -0300
commit8055770c9ce7df932cc63337355c059f54e556b9 (patch)
treecde69b1702306c9c0b76f4eafab9a03532f4cfa7
parent8ecd58a72f40f5801970b6c439e5f0f038cd6031 (diff)
downloadpuppet-mail-8055770c9ce7df932cc63337355c059f54e556b9.tar.gz
puppet-mail-8055770c9ce7df932cc63337355c059f54e556b9.tar.bz2
Web config for mlmmj
-rw-r--r--files/mlmmj/htpasswd0
-rw-r--r--manifests/web.pp16
2 files changed, 16 insertions, 0 deletions
diff --git a/files/mlmmj/htpasswd b/files/mlmmj/htpasswd
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/files/mlmmj/htpasswd
diff --git a/manifests/web.pp b/manifests/web.pp
index 2b3d7b9..95aa3b7 100644
--- a/manifests/web.pp
+++ b/manifests/web.pp
@@ -102,4 +102,20 @@ class mail::web::mlmmj inherits websites::setup {
package { [ 'mlmmj-php-web', 'mlmmj-php-web-admin' ]:
ensure => present,
}
+
+ file { '/etc/mlmmj-php-web-admin':
+ ensure => directory,
+ owner => mlmmj,
+ group => mlmmj,
+ mode => 0640,
+ }
+
+ file { '/etc/mlmmj-php-web-admin/htpasswd':
+ ensure => present,
+ owner => mlmmj,
+ group => mlmmj,
+ mode => 0640,
+ source => [ "puppet:///modules/site-mail/mlmmj/htpasswd",
+ "puppet:///modules/mail/mlmmj/htpasswd" ],
+ }
}