Commit 11588661 authored by Joanne Hugé's avatar Joanne Hugé

WIP

parent d6357ff8
# Dovecot
# https://doc.dovecot.org/
[dovecot]
recipe = slapos.recipe.cmmi
url = https://dovecot.org/releases/2.3/dovecot-2.3.20.tar.gz
location = @@LOCATION@@
configure-command = ./configure
configure-options =
--prefix=${:location}
make-targets = install
post-install = cp -r ${:location}/share/doc/dovecot/example-config/* ${:location}/etc/dovecot/
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
[template] [template]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = 35079cbfed884eadcef732ad0842bd46 md5sum = 86824391101f5e2131c4c06d2e7ba7f2
[template-dovecot] [template-default]
filename = instance-dovecot.cfg.in filename = instance-default.cfg.in
md5sum = 76e0f278e232b0e98b22d12244779b35 md5sum = 47f942d4bf70ef430f455498963b58a7
[template-postfix] [template-postfix]
filename = instance-postfix.cfg.jinja2.in filename = instance-postfix.cfg.jinja2.in
......
...@@ -23,4 +23,3 @@ partition = $${slap-connection:partition-id} ...@@ -23,4 +23,3 @@ partition = $${slap-connection:partition-id}
url = $${slap-connection:server-url} 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}
...@@ -35,6 +35,16 @@ context = ...@@ -35,6 +35,16 @@ context =
raw template_monitor ${monitor2-template:output} raw template_monitor ${monitor2-template:output}
raw template_dovecot ${template-dovecot:output} raw template_dovecot ${template-dovecot:output}
[dynamic-template-default]
recipe = slapos.recipe.template:jinja2
url = ${template-default:output}
filename = instance-default.cfg
output = $${buildout:directory}/$${:filename}
extensions = jinja2.ext.do
context =
key slapparameter_dict slap-configuration:configuration
raw template_monitor ${monitor2-template:output}
[slap-configuration] [slap-configuration]
recipe = slapos.cookbook:slapconfiguration.serialised recipe = slapos.cookbook:slapconfiguration.serialised
computer = $${slap-connection:computer-id} computer = $${slap-connection:computer-id}
...@@ -45,5 +55,5 @@ cert = $${slap-connection:cert-file} ...@@ -45,5 +55,5 @@ cert = $${slap-connection:cert-file}
[switch-softwaretype] [switch-softwaretype]
recipe = slapos.cookbook:switch-softwaretype recipe = slapos.cookbook:switch-softwaretype
default = dynamic-template-postfix:output default = dynamic-template-default:output
RootSoftwareInstance = $${:default} RootSoftwareInstance = $${:default}
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
extends = extends =
../../component/xz-utils/buildout.cfg ../../component/xz-utils/buildout.cfg
../../component/postfix/buildout.cfg ../../component/postfix/buildout.cfg
../../component/dovecot/buildout.cfg
../../stack/monitor/buildout.cfg ../../stack/monitor/buildout.cfg
../../stack/slapos.cfg ../../stack/slapos.cfg
buildout.hash.cfg buildout.hash.cfg
...@@ -11,17 +12,6 @@ parts = ...@@ -11,17 +12,6 @@ parts =
template template
dovecot dovecot
[dovecot]
recipe = slapos.recipe.cmmi
url = https://dovecot.org/releases/2.3/dovecot-2.3.20.tar.gz
location = @@LOCATION@@
configure-command = ./configure
configure-options =
--prefix=${:location}
make-targets = install
post-install = cp -r ${:location}/share/doc/dovecot/example-config/* ${:location}/etc/dovecot/
[template] [template]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename} url = ${:_profile_base_location_}/${:filename}
...@@ -32,10 +22,10 @@ recipe = slapos.recipe.template ...@@ -32,10 +22,10 @@ recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename} url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/instance-postfix.cfg.jinja2 output = ${buildout:directory}/instance-postfix.cfg.jinja2
[template-dovecot] [template-default]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename} url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/instance-dovecot.cfg output = ${buildout:directory}/instance-default.cfg
[download-base] [download-base]
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment