Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
e8afb6ff
Commit
e8afb6ff
authored
Feb 11, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
d9006186
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
104 additions
and
64 deletions
+104
-64
software/dovecot/buildout.hash.cfg
software/dovecot/buildout.hash.cfg
+12
-9
software/dovecot/dovecot-passwd.jinja2
software/dovecot/dovecot-passwd.jinja2
+1
-0
software/dovecot/dovecot.jinja2.conf
software/dovecot/dovecot.jinja2.conf
+28
-4
software/dovecot/instance-default.cfg.in
software/dovecot/instance-default.cfg.in
+46
-13
software/dovecot/instance.cfg.in
software/dovecot/instance.cfg.in
+5
-26
software/dovecot/software.cfg
software/dovecot/software.cfg
+12
-12
No files found.
software/dovecot/buildout.hash.cfg
View file @
e8afb6ff
...
@@ -15,28 +15,31 @@
...
@@ -15,28 +15,31 @@
[template]
[template]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
687e195329d644340e388af5c0372f58
md5sum =
9d1d98a0b67791e3fd40618c8f41764c
[template-default]
[template-default]
filename
= instance-default.cfg.in
_update_hash_filename_
= instance-default.cfg.in
md5sum = 7
285ff357250ced114620545a226532d
md5sum = 7
aa7f16772318e6e33e504bb9e61a935
[template-postfix]
[template-postfix]
filename
= instance-postfix.cfg.jinja2.in
_update_hash_filename_
= instance-postfix.cfg.jinja2.in
md5sum = cfea5b89b15081da3a836483e930621b
md5sum = cfea5b89b15081da3a836483e930621b
[template-postfix-master-cf]
[template-postfix-master-cf]
filename
= postfix_master.cf.jinja2.in
_update_hash_filename_
= postfix_master.cf.jinja2.in
md5sum = ef164517e3f7170d03499967d625c3bb
md5sum = ef164517e3f7170d03499967d625c3bb
[template-postfix-main-cf]
[template-postfix-main-cf]
filename
= postfix_main.cf.jinja2.in
_update_hash_filename_
= postfix_main.cf.jinja2.in
md5sum = e9f03c66627beb4054d45123450162d2
md5sum = e9f03c66627beb4054d45123450162d2
[template-postfix-aliases]
[template-postfix-aliases]
filename
= postfix_aliases.jinja2.in
_update_hash_filename_
= postfix_aliases.jinja2.in
md5sum = 0969fbb25b05c02ef3c2d437b2f4e1a0
md5sum = 0969fbb25b05c02ef3c2d437b2f4e1a0
[dovecot.jinja2.conf]
[dovecot.jinja2.conf]
filename = dovecot.jinja2.conf
_update_hash_filename_ = dovecot.jinja2.conf
md5sum = 265e4d7a54ebb66811f1d8b042f8a51b
md5sum = c0e6264806c5a7244fd4d0dd3ca32f93
[dovecot-passwd.jinja2]
_update_hash_filename_ = dovecot-passwd.jinja2
md5sum = e93c6661a80135b763db27e47786107c
software/dovecot/dovecot-passwd.jinja2
0 → 100644
View file @
e8afb6ff
doveuser:{PLAIN}0WOu(yLok)u.w6&2
software/dovecot/dovecot.jinja2.conf
View file @
e8afb6ff
protocols
=
imap
protocols
=
imap
listen
= *, ::
listen
= *, ::
base_dir
= {{
directory
[
'run'
] }}
base_dir
= {{
directory
[
'run'
] }}
# https://wiki.dovecot.org/HowTo/Rootless
default_internal_user
=
doveuser
default_login_user
=
doveuser
default_internal_group
=
doveuser
service
anvil
{
chroot
=
}
service
imap
-
login
{
chroot
=
}
service
pop3
-
login
{
chroot
=
}
service
imap
-
login
{
inet_listener
imap
{
port
=
10143
}
inet_listener
imaps
{
port
=
10993
}
}
log_path
= {{
directory
[
'log'
] }}/
dovecot
.
log
namespace
inbox
{
namespace
inbox
{
inbox
=
yes
inbox
=
yes
location
=
location
=
...
@@ -23,12 +46,13 @@ namespace inbox {
...
@@ -23,12 +46,13 @@ namespace inbox {
}
}
prefix
=
prefix
=
}
}
passdb
{
driver
=
pam
}
ssl
=
no
ssl
=
no
passdb
{
driver
=
passwd
-
file
args
= {{
dovecot_passwd
}}
}
userdb
{
userdb
{
driver
=
passwd
driver
=
passwd
}
}
software/dovecot/instance-default.cfg.in
View file @
e8afb6ff
[buildout]
[buildout]
parts =
parts =
directory
directory
eggs-directory = {{ buildout['eggs-directory'] }}
dovecot-conf
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
dovecot-service
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline= true
offline= true
[directory]
[directory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc
home = ${buildout:directory}
var = $${buildout:directory}/var
etc = ${:home}/etc
srv = $${buildout:directory}/srv
var = ${:home}/var
bin = $${buildout:directory}/bin
etc = ${:home}/etc
tmp = $${buildout:directory}/tmp
bin = ${:home}/bin
usr = $${buildout:directory}/usr
tmp = ${:home}/tmp
run = $${:etc}/run
run = ${:var}/run
service = $${:etc}/service
script = ${:etc}/run
service = ${:etc}/service
promise = ${:etc}/promise
log = ${:var}/log
[slap-configuration]
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration
recipe = slapos.cookbook:slapconfiguration
...
@@ -24,10 +29,38 @@ url = $${slap-connection:server-url}
...
@@ -24,10 +29,38 @@ url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
key = $${slap-connection:key-file}
cert = $${slap-connection:cert-file}
cert = $${slap-connection:cert-file}
[
dovecot.conf
]
[
config-base
]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
extensions = jinja2.ext.do
extensions = jinja2.ext.do
url = {{ dovecot_conf_template }}
extra-context =
context =
context =
section directory directory
section directory directory
key ipv6 slap-configuration:ipv6-random
# section slap_configuration slap-configuration
${:extra-context}
[dovecot-conf]
<= config-base
url = {{ dovecot_conf_template }}
output = ${directory:etc}/dovecot.conf
extra-context =
key dovecot_passwd dovecot-passwd:output
[dovecot-passwd]
<= config-base
url = {{ dovecot_passwd_template }}
output = ${directory:etc}/dovecot-passwd
[dovecot-wrapper]
recipe = slapos.recipe.template
output = ${directory:bin}/${:_buildout_section_name_}
inline =
#!/bin/sh
{{ dovecot_binary }} -c ${dovecot-conf:output}
[dovecot-service]
recipe = slapos.cookbook:wrapper
command-line = ${dovecot-wrapper:output}
wrapper-path = ${directory:service}/dovecot
mode = 0775
pidfile = ${directory:run}/dovecot.pid
hash-files =
${dovecot-conf:output}
${dovecot-wrapper:output}
software/dovecot/instance.cfg.in
View file @
e8afb6ff
...
@@ -10,41 +10,20 @@ offline = true
...
@@ -10,41 +10,20 @@ offline = true
bin-directory = ${buildout:bin-directory}
bin-directory = ${buildout:bin-directory}
buildout-bin-directory = ${buildout:bin-directory}
buildout-bin-directory = ${buildout:bin-directory}
[dynamic-template-postfix-parameters]
<= default-dynamic-template-parameters
cyrus-sasl-location = ${cyrus-sasl:location}
openssl = ${openssl:location}
postfix-location = ${postfix:location}
dovecot-location = ${dovecot:location}
template-postfix-aliases = ${template-postfix-aliases:target}
template-postfix-main-cf = ${template-postfix-main-cf:target}
template-postfix-master-cf = ${template-postfix-master-cf:target}
xz-utils-location = ${xz-utils:location}
[dynamic-template-postfix]
recipe = slapos.recipe.template:jinja2
url = ${template-postfix:output}
filename = instance-postfix.cfg
output = $${buildout:directory}/$${:filename}
extensions = jinja2.ext.do
context =
import urllib urllib
section parameter_dict dynamic-template-postfix-parameters
key slapparameter_dict slap-configuration:configuration
key ipv6_set slap-configuration:ipv6
raw template_monitor ${monitor2-template:output}
raw template_default ${template-default:output}
[dynamic-template-default]
[dynamic-template-default]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
url = ${template-default:
outpu
t}
url = ${template-default:
targe
t}
filename = instance-default.cfg
filename = instance-default.cfg
output = $${buildout:directory}/$${:filename}
output = $${buildout:directory}/$${:filename}
extensions = jinja2.ext.do
extensions = jinja2.ext.do
context =
context =
key develop_eggs_directory buildout:develop-eggs-directory
key eggs_directory buildout:eggs-directory
key slapparameter_dict slap-configuration:configuration
key slapparameter_dict slap-configuration:configuration
raw template_monitor ${monitor2-template:output}
raw template_monitor ${monitor2-template:output}
raw dovecot_conf_template ${dovecot.jinja2.conf:target}
raw dovecot_conf_template ${dovecot.jinja2.conf:target}
raw dovecot_passwd_template ${dovecot-passwd.jinja2:target}
raw dovecot_binary ${dovecot:location}/sbin/dovecot
[slap-configuration]
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration.serialised
recipe = slapos.cookbook:slapconfiguration.serialised
...
...
software/dovecot/software.cfg
View file @
e8afb6ff
...
@@ -17,19 +17,12 @@ recipe = slapos.recipe.template
...
@@ -17,19 +17,12 @@ recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename}
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/template.cfg
output = ${buildout:directory}/template.cfg
[template-postfix]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/instance-postfix.cfg.jinja2
[template-default]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/instance-default.cfg
[download-base]
[download-base]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:filename}
url = ${:_profile_base_location_}/${:_update_hash_filename_}
[template-default]
<= download-base
[template-postfix-master-cf]
[template-postfix-master-cf]
< = download-base
< = download-base
...
@@ -40,5 +33,12 @@ url = ${:_profile_base_location_}/${:filename}
...
@@ -40,5 +33,12 @@ url = ${:_profile_base_location_}/${:filename}
[template-postfix-aliases]
[template-postfix-aliases]
< = download-base
< = download-base
[copy-to-instance]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_buildout_section_name_}
filename = ${:_buildout_section_name_}
[dovecot.jinja2.conf]
[dovecot.jinja2.conf]
< = download-base
< = copy-to-instance
[dovecot-passwd.jinja2]
< = copy-to-instance
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment