summaryrefslogtreecommitdiff
path: root/manifests/web.pp
blob: 82ac85a49f125f75dca6210c3bf1c94bca52a146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class mail::web inherits websites::setup {
  include php::imap

  apache::site { "postfixadmin":
    docroot => "${apache_sites_folder}/postfixadmin/site",
    use     => [ "Site postfixadmin" ],
  }

  apache::site { "mail":
    docroot => "/usr/share/squirrelmail",
    source  => true,
  }

  file { "${apache_sites_folder}/postfixadmin/site/config.inc.php":
    ensure  => present,
    owner   => www-data,
    group   => root,
    mode    => 0640,
    content => template('mail/postfixadmin/config.inc.php.erb'),
    require => File["${apache_sites_folder}/postfixadmin/site"],
  }
}