• Julien Muchembled's avatar
    Automatic ERP5 Site creation · 6bb4c56e
    Julien Muchembled authored
    If the following configuration section is present:
    
    <product-config initsite>
      owner <user-id>
      id <site-id>
      <key> <value>
    </product-config>
    
    the ERP5 product automatically creates a site at startup if there's none.
    This is done by "extending" AppInitializer (OFS.Application).
    
    <key> is any string parameter accepted by manage_addERP5Site, including new
    ones to configure Cloudooo and install bt5. Cloudooo is often required by the
    configurator: apart from that, it does not deserve a field on the addERP5Site
    form.
    
    This deprecates erp5_promise, at least in its current form, for several reasons:
    
    - Since 7fe14b20, alarms aren't run often
      enough.
    
    - For the configuration of external services like memcached, using an alarm or
      anything not instantaneous to update them is wrong because it poses a risk to
      connect to wrong instances. erp5_promise does not handle the catalog because
      it could not and we have another mechanism for that (userhosts...
    6bb4c56e