Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56987598
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/roles/mailserver/dovecot/init.sls b/roles/mailserver/dovecot/init.sls
index afc098d..003e24f 100644
--- a/roles/mailserver/dovecot/init.sls
+++ b/roles/mailserver/dovecot/init.sls
@@ -1,51 +1,52 @@
# -------------------------------------------------------------
# Salt — Provision dovecot Config
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import dirs with context %}
{% set db = pillar["dovecot_config"]["db"] %}
dovecot:
pkg.installed
{{ dirs.etc }}/dovecot/conf.d:
file.directory:
- mode: 755
- user: root
- group: wheel
- makedirs: True
{{ dirs.etc }}/dovecot/dovecot.conf:
file.managed:
- source: salt://roles/mailserver/dovecot/files/dovecot.conf
- template: jinja
{{ dirs.etc }}/dovecot/dovecot-sql.conf.ext:
file.managed:
- source: salt://roles/mailserver/dovecot/files/dovecot-sql.conf.ext
- template: jinja
- mode: 400
- context:
db:
hostname: {{ pillar["nasqueron_services"][db["service"]] }}
name: {{ db["database"] }}
password: {{ salt["credentials.get_password"](db["credential"]) }}
user: {{ salt["credentials.get_username"](db["credential"]) }}
dovecot_file_config_conf_d:
file.recurse:
- source: salt://roles/mailserver/dovecot/files/conf.d
- name: {{ dirs.etc }}/dovecot/conf.d
- file_mode: 755
- dir_mode: 755
+ - template: jinja
- context:
mailbox:
dir: /var/mail/_virtual
dovecot_running:
service.running:
- name: dovecot
- enable: True
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Nov 14, 12:44 (3 d, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4237248
Default Alt Text
(1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment