Initial version of alpine module.
This commit is contained in:
parent
0190fc4a94
commit
f60f848d46
2 changed files with 34 additions and 0 deletions
30
alpine/manifests/init.pp
Normal file
30
alpine/manifests/init.pp
Normal file
|
@ -0,0 +1,30 @@
|
|||
|
||||
class alpine {
|
||||
|
||||
package { "alpine":
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
if ! $mail_server {
|
||||
$mail_server = "mail.${domain}"
|
||||
}
|
||||
if ! $mail_domain {
|
||||
$mail_domain = "${domain}"
|
||||
}
|
||||
|
||||
file { "/usr/bin/pine":
|
||||
ensure => link,
|
||||
target => "/usr/bin/alpine",
|
||||
require => Package["alpine"],
|
||||
}
|
||||
|
||||
file { "/etc/pine.conf.fixed":
|
||||
ensure => present,
|
||||
content => template("alpine/pine.conf.fixed.erb"),
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
require => Package["alpine"],
|
||||
}
|
||||
|
||||
}
|
4
alpine/templates/pine.conf.fixed.erb
Normal file
4
alpine/templates/pine.conf.fixed.erb
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
user-domain=<%= mail_domain %>
|
||||
smtp-server=<%= mail_server %>/TLS
|
||||
inbox-path={<%= mail_server %>/USER=${USER}/SSL}INBOX
|
Loading…
Add table
Reference in a new issue