Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11726119
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
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 eeede39..afc098d 100644
--- a/roles/mailserver/dovecot/init.sls
+++ b/roles/mailserver/dovecot/init.sls
@@ -1,46 +1,51 @@
# -------------------------------------------------------------
# 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
- context:
mailbox:
dir: /var/mail/_virtual
+
+dovecot_running:
+ service.running:
+ - name: dovecot
+ - enable: True
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Sep 19, 00:33 (18 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2991976
Default Alt Text
(1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment