• Thomas Gambier's avatar
    Pure-FTPd SR · 4ea4d3ab
    Thomas Gambier authored
    This SR has been developed for a demo. The purpose is to have a running pureftpd server which will call a script "/opt/pureftpd/upload_script" each time a file is uploaded. Pureftpd is used because it is already used in the current working environment of our partner and they don't want to change for now.
    
    The script /opt/pureftpd/upload_script" is left out of the SR on purpose because it will be written by people outside Nexedi at first and contains sensitive information. Also, it is on purpose in /opt directory of the machine because this SR will be deployed on only one machine for now and the script will be shared by all pureftpd instances.
    
    /reviewed-on nexedi/slapos!503
    4ea4d3ab
software.cfg 934 Bytes
[buildout]
extends =
  ../../stack/slapos.cfg
  ../../component/pure-ftpd/buildout.cfg
  ../../component/bash/buildout.cfg
  buildout.hash.cfg
  ../../stack/monitor/buildout.cfg

parts =
  slapos-cookbook
  instance-profile


# force to install plone.recipe.command and slapos.toolbox as it will be used during instanciation 
[slapos-cookbook]
eggs +=
  plone.recipe.command
  slapos.toolbox


[instance-profile]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/${:filename}
rendered = ${buildout:directory}/instance.cfg
mode = 0644
extensions = jinja2.ext.do
context =
  section buildout buildout
  key bash_location bash:location
  raw monitor_rendered ${monitor-template:rendered}
  raw pureftpd_bin ${pure-ftpd:location}/sbin/pure-ftpd
  raw pureuploadscript_bin ${pure-ftpd:location}/sbin/pure-uploadscript
  raw purepw_bin ${pure-ftpd:location}/bin/pure-pw


[versions]
slapos.recipe.template = 4.3