Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12587216
config.sls
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
config.sls
View Options
# -------------------------------------------------------------
# Salt — Provision Dovecot
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
from
"map.jinja"
import
dirs
with context
%}
{%
set
db
=
pillar
[
"dovecot_config"
][
"db"
]
%}
{%
set
network
=
salt
[
'node.resolve_network'
]()
%}
{{
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
:
ip_internal
:
{{
network
[
"private_ipv4_address"
]
}}
mailbox
:
dir
:
/var/mail/_virtual
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 13, 15:32 (18 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3157451
Default Alt Text
config.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment