roundcube: First draft of role
This commit is contained in:
parent
9a988bf637
commit
42cb1c86c9
7 changed files with 118 additions and 0 deletions
6
roles/roundcube/templates/local.php.j2
Normal file
6
roles/roundcube/templates/local.php.j2
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
$config["domain"] = "{{ mail_domain }}";
|
||||
$config["product_name"] = "foo.sh - Webmail";
|
||||
|
||||
?>
|
18
roles/roundcube/templates/roundcube-container.service.j2
Normal file
18
roles/roundcube/templates/roundcube-container.service.j2
Normal file
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=Roundcube Container
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=roundcube
|
||||
EnvironmentFile=/etc/sysconfig/roundcube-container
|
||||
ExecStart=/usr/bin/podman run \
|
||||
--rm -p 127.0.0.1:8004:80 \
|
||||
--name roundcube \
|
||||
--volume=/etc/roundcube:/var/roundcube/config:ro \
|
||||
--env=ROUNDCUBEMAIL_* docker.io/roundcube/roundcubemail:{{ roundcube_version }}-apache
|
||||
ExecStop=/usr/bin/podman stop --ignore roundcube
|
||||
ExecStopPost=/usr/bin/podman rm -f --ignore roundcube
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
11
roles/roundcube/templates/roundcube-container.sysconfig.j2
Normal file
11
roles/roundcube/templates/roundcube-container.sysconfig.j2
Normal file
|
@ -0,0 +1,11 @@
|
|||
ROUNDCUBEMAIL_DEFAULT_HOST=ssl://{{ mail_server }}
|
||||
ROUNDCUBEMAIL_DEFAULT_PORT=993
|
||||
ROUNDCUBEMAIL_SMTP_SERVER=tls://{{ mail_server }}
|
||||
ROUNDCUBEMAIL_SMTP_PORT=587
|
||||
|
||||
#ROUNDCUBEMAIL_DB_TYPE=mysql
|
||||
#ROUNDCUBEMAIL_DB_HOST=sqldb02.home.foo.sh
|
||||
#ROUNDCUBEMAIL_DB_PORT=3306
|
||||
#ROUNDCUBEMAIL_DB_USER=roundcube
|
||||
#ROUNDCUBEMAIL_DB_PASSWORD="{{ roundcube_mysql_pass }}"
|
||||
#ROUNDCUBEMAIL_DB_NAME=roundcube
|
Loading…
Add table
Add a link
Reference in a new issue