Commit 0855e3d5 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Łukasz Nowak

software/proftpd: Switch to monitor-promise-base

parent 4919f7af
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
[instance-profile] [instance-profile]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = 8ed5b4a7940db47ccb386c2f4e3e7273 md5sum = efb4238229681447aa7fe73898dffad4
[instance-default] [instance-default]
filename = instance-default.cfg.in filename = instance-default.cfg.in
md5sum = 4cba10d2e9fc4b17c73c78bde0bcb86c md5sum = 2a2c066d7d40dd8545f3008f434ee842
[proftpd-config-file] [proftpd-config-file]
filename = proftpd-config-file.cfg.in filename = proftpd-config-file.cfg.in
......
...@@ -3,6 +3,7 @@ parts = ...@@ -3,6 +3,7 @@ parts =
promises promises
publish-connection-parameter publish-connection-parameter
extends = {{ template_monitor }}
[instance-parameter] [instance-parameter]
# TODO: this is not needed # TODO: this is not needed
...@@ -29,7 +30,6 @@ var = ${:home}/var ...@@ -29,7 +30,6 @@ var = ${:home}/var
log = ${:var}/log log = ${:var}/log
srv = ${:home}/srv srv = ${:home}/srv
service = ${:etc}/service service = ${:etc}/service
promise = ${:etc}/promise
proftpd-dir = ${:srv}/proftpd/ proftpd-dir = ${:srv}/proftpd/
ssh-authorized-keys-dir = ${:etc}/authorized_keys/ ssh-authorized-keys-dir = ${:etc}/authorized_keys/
...@@ -40,10 +40,6 @@ rendered = ${directory:etc}/${:_buildout_section_name_}.cfg ...@@ -40,10 +40,6 @@ rendered = ${directory:etc}/${:_buildout_section_name_}.cfg
mode = 0644 mode = 0644
extensions = jinja2.ext.do extensions = jinja2.ext.do
[check-port-listening-promise]
recipe = slapos.cookbook:check_port_listening
path = ${directory:promise}/${:_buildout_section_name_}
[proftpd-userinfo] [proftpd-userinfo]
recipe = slapos.cookbook:userinfo recipe = slapos.cookbook:userinfo
...@@ -81,9 +77,11 @@ command-line = ...@@ -81,9 +77,11 @@ command-line =
wrapper-path = ${directory:service}/proftpd wrapper-path = ${directory:service}/proftpd
[proftpd-listen-promise] [proftpd-listen-promise]
<= check-port-listening-promise <= monitor-promise-base
hostname = ${proftpd:ipv6} module = check_port_listening
port = ${proftpd:sftp-port} name = ${:_buildout_section_name_}.py
config-hostname = ${proftpd:ipv6}
config-port = ${proftpd:sftp-port}
[ftpasswd] [ftpasswd]
...@@ -129,7 +127,7 @@ context = ...@@ -129,7 +127,7 @@ context =
[promises] [promises]
recipe = recipe =
instance-promises = instance-promises =
${proftpd-listen-promise:path} ${proftpd-listen-promise:name}
[publish-connection-parameter] [publish-connection-parameter]
......
...@@ -25,6 +25,7 @@ context = ...@@ -25,6 +25,7 @@ context =
raw ftpdctl_bin {{ ftpdctl_bin }} raw ftpdctl_bin {{ ftpdctl_bin }}
raw ssh_keygen_bin {{ ssh_keygen_bin }} raw ssh_keygen_bin {{ ssh_keygen_bin }}
raw perl_bin {{ perl_bin }} raw perl_bin {{ perl_bin }}
raw template_monitor {{ template_monitor }}
[instance-default] [instance-default]
<= instance-template <= instance-template
......
[buildout] [buildout]
extends = extends =
../../stack/slapos.cfg ../../stack/slapos.cfg
../../stack/monitor/buildout.cfg
../../component/openssh/buildout.cfg ../../component/openssh/buildout.cfg
../../component/proftpd/buildout.cfg ../../component/proftpd/buildout.cfg
buildout.hash.cfg buildout.hash.cfg
...@@ -38,7 +39,7 @@ context = ...@@ -38,7 +39,7 @@ context =
key ftpdctl_bin proftpd-output:ftpdctl key ftpdctl_bin proftpd-output:ftpdctl
key ssh_keygen_bin openssh-output:keygen key ssh_keygen_bin openssh-output:keygen
key perl_bin proftpd-output:perl key perl_bin proftpd-output:perl
raw template_monitor ${monitor2-template:rendered}
[versions] [versions]
collective.recipe.environment = 1.1.0 collective.recipe.environment = 1.1.0
......
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