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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Justin
slapos
Commits
da5a57bc
Commit
da5a57bc
authored
Feb 02, 2023
by
Justin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/dovecot: WIP instance dovecot
parent
2a8a2a3e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
19 deletions
+52
-19
software/dovecot/buildout.hash.cfg
software/dovecot/buildout.hash.cfg
+3
-3
software/dovecot/instance-dovecot.cfg.in
software/dovecot/instance-dovecot.cfg.in
+23
-8
software/dovecot/instance-postfix.cfg.jinja2.in
software/dovecot/instance-postfix.cfg.jinja2.in
+14
-0
software/dovecot/instance.cfg.in
software/dovecot/instance.cfg.in
+2
-1
software/dovecot/software.cfg
software/dovecot/software.cfg
+10
-7
No files found.
software/dovecot/buildout.hash.cfg
View file @
da5a57bc
...
...
@@ -15,15 +15,15 @@
[template]
filename = instance.cfg.in
md5sum =
66e1d9c9ac011bbac40770cfdc20c52
6
md5sum =
35079cbfed884eadcef732ad0842bd4
6
[template-dovecot]
filename = instance-dovecot.cfg.in
md5sum =
16b3ba167f55e33233a393a42ff62873
md5sum =
76e0f278e232b0e98b22d12244779b35
[template-postfix]
filename = instance-postfix.cfg.jinja2.in
md5sum =
23ef0d50d354bfc8f14c692b4826cb5
b
md5sum =
cfea5b89b15081da3a836483e930621
b
[template-postfix-master-cf]
filename = postfix_master.cf.jinja2.in
...
...
software/dovecot/instance-dovecot.cfg.in
View file @
da5a57bc
[buildout]
parts =
extends =
directory
eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline= true
[directory]
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc
var = $${buildout:directory}/var
srv = $${buildout:directory}/srv
bin = $${buildout:directory}/bin
tmp = $${buildout:directory}/tmp
usr = $${buildout:directory}/usr
run = $${:etc}/run
service = $${:etc}/service
[instance-parameter]
recipe = slapos.cookbook:slapconfiguration
computer = $${slap-connection:computer-id}
partition = $${slap-connection:partition-id}
url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
cert = $${slap-connection:cert-file}
[dovecot-ssl]
recipe = plone.recipe.command
cert-file = $${directory:data}/cert.pem
key-file = $${directory:data}/key.pem
command = $${openssl:location}/bin/openssl req -newkey rsa:2048 -batch -new -x509 -days 3650 -nodes -keyout "$${:key-file}" -out "$${:cert-file}"
update-command =
stop-on-error = true
software/dovecot/instance-postfix.cfg.jinja2.in
View file @
da5a57bc
...
...
@@ -32,6 +32,7 @@ recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc
plugin = $${:etc}/plugin
etc-postfix = $${:etc}/postfix
etc-dovecot = $${:etc}/dovecot
etc-cyrus = $${:etc}/cyrus
run = $${:etc}/run
bin = $${buildout:directory}/bin
...
...
@@ -255,6 +256,19 @@ link-binary =
command-line = $${directory:usr}/libexec/postfix/master
wrapper-path = $${directory:run}/postfix-master
[{{ section('service-dovecot') }}]
recipe = slapos.cookbook:wrapper
environment =
DOVE_CONFIG= $${directory:etc-dovecot}
command-line = $${directory:usr}/dovecot
wrapper-path = $${directory:run}/dovecot
[{{ section('dovecot-symlinks-libexec') }}]
recipe = slapos.cookbook:symbolic.link
target-directory = $${directory:usr}
link-binary =
{{ parameter_dict['dovecot-location'] }}/libexec/dovecot
[monitor-instance-parameter]
monitor-httpd-ipv6 = {{ (ipv6_set | list)[0] }}
monitor-httpd-port = {{ tcpv4_port + 2 }}
...
...
software/dovecot/instance.cfg.in
View file @
da5a57bc
...
...
@@ -6,7 +6,6 @@ eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[default-dynamic-template-parameters]
bin-directory = ${buildout:bin-directory}
buildout-bin-directory = ${buildout:bin-directory}
...
...
@@ -16,6 +15,7 @@ buildout-bin-directory = ${buildout:bin-directory}
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}
...
...
@@ -33,6 +33,7 @@ context =
key slapparameter_dict slap-configuration:configuration
key ipv6_set slap-configuration:ipv6
raw template_monitor ${monitor2-template:output}
raw template_dovecot ${template-dovecot:output}
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration.serialised
...
...
software/dovecot/software.cfg
View file @
da5a57bc
...
...
@@ -8,8 +8,9 @@ extends =
parts =
slapos-cookbook
dovecot
template
dovecot
[dovecot]
recipe = slapos.recipe.cmmi
...
...
@@ -26,17 +27,19 @@ recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/template.cfg
[
download-base
]
recipe = slapos.recipe.
build:download
[
template-postfix
]
recipe = slapos.recipe.
template
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/instance-postfix.cfg.jinja2
[template-dovecot]
<=download-base
[template-postfix]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/instance-postfix.cfg.jinja2
output = ${buildout:directory}/instance-dovecot.cfg
[download-base]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:filename}
[template-postfix-master-cf]
< = download-base
...
...
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