]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Web config for mlmmj
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 7 Apr 2012 22:20:50 +0000 (19:20 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 7 Apr 2012 22:20:50 +0000 (19:20 -0300)
files/mlmmj/htpasswd [new file with mode: 0644]
manifests/web.pp

diff --git a/files/mlmmj/htpasswd b/files/mlmmj/htpasswd
new file mode 100644 (file)
index 0000000..e69de29
index 2b3d7b9be98c28552ad3a81b2207841d4b4c5dc0..95aa3b7c3b40b8604bac07802fc1638cba7fe4a0 100644 (file)
@@ -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" ],
+  }
 }