1. 06 Jun, 2019 1 commit
    • certificate_authority: unique_subject = no · 4e29c395
      "openssl ca" is keeping track of all generated certificates in its DB.
      If we try to regenerate a certificate that was already generated,
      openssl ca fails with :
      
      ERROR:There is already a certificate for /C=XX/ST=(State,)/O=Company/CN=ca-shellinabox/emailAddress=xx@example.com
      
      Changing "unique_subject" to no removes this ERROR.
      
      /reviewed-on !556
      Thomas Gambier committed
  2. 28 Feb, 2019 1 commit
  3. 20 Feb, 2019 1 commit
  4. 18 Feb, 2019 1 commit
  5. 03 Jan, 2019 1 commit
  6. 27 Dec, 2018 1 commit
  7. 16 Dec, 2018 1 commit
  8. 13 Dec, 2018 1 commit
  9. 26 Nov, 2018 1 commit
  10. 15 Nov, 2018 2 commits
  11. 14 Nov, 2018 1 commit
  12. 21 Sep, 2018 1 commit
  13. 06 Sep, 2018 3 commits
  14. 03 Sep, 2018 2 commits
  15. 31 Aug, 2018 3 commits
  16. 29 Aug, 2018 1 commit
  17. 23 Aug, 2018 1 commit
  18. 17 Aug, 2018 1 commit
  19. 28 Jul, 2018 1 commit
  20. 29 Jun, 2018 1 commit
    • Stop using erp5 test recipe · 1436c63b
      The goal is to drop slapos.cookbook:erp5.test
      
      No need for a recipe to do a bit of url parsing and generating 2 wrappers.
      Also, drop unused & empty "host-common" section.
      
      - stack/erp5: Add path to all binary links in PATH
      - stack/erp5: Add single quotation marks to not break parameters in many lines
      - stack/erp5: Fix path to avoid one section to overwrite the file from another section
      - stack/erp5: pass cloudooo host instead of the IP address. The IP address and cloudooo hostname are well in $SLAPPART/etc/hosts
      - stack/erp5: Use use-ipv6 instance parameter to control where caucased listens when locally deployed.
        Drop incomplete 6tunnel usage on balancer toward zopes.
      
      Tests are somehow happy test_result_module/20180626-62AD32BB test_result_module/20180626-70AC16FA
      
      If no objections I would like to merge tomorrow but feel free to press merge for me :)
      
      The goal is rebase !318 to fix the conflict and merge after tomorrow.
      
      /cc @rafael @vpelletier 
      
      /reviewed-on !347
      Vincent Pelletier committed
  21. 21 Jun, 2018 1 commit
  22. 18 May, 2018 1 commit
    • Automatic restart of services when configuration changes · 6b82838e
      The main idea is to rename the service wrapper using a hash of the corresponding configuration files. In that way, if the config files are updated, the corresponding script file, section in supervisor.conf and service process will be updated accordingly.
      - the file name in wrapper_path contains a hash of the corresponding config files
      - when config files change, and therefore the hash, the wrapper will be re-created and the corresponding service restarted
      - the config files paths will be a parameter in the corresponding buildout section, if it isn't set there won't be hash-check
      
      /reviewed-on !326
      Roque committed
  23. 17 May, 2018 1 commit
  24. 27 Apr, 2018 1 commit
    • userinfo: expose values as string · f06e61a6
      To be compatible with buildout (and not only `slapos.recipe.template:jinja2`)
      
      See [#20180416-1138FFA](https://nexedi.erp5.net/bug_module/20180416-1138FFA/)
      
      ---
      
      Running this buildout:
      
      ```
      [buildout]
      parts=x
      
      [userinfo]
      recipe = slapos.cookbook:userinfo
      
      [x]
      recipe = plone.recipe.command
      command = echo "Hello user id ${userinfo:pw-uid}"
      ```
      
      
      In a slapos patched buildout it outputs: `"Hello user id !py!991"` (which means it's not usable for references directly in other buildout parts)
      
      In a "non patched" buildout fail with error:
      
      ```
      While:
        Installing.
        Getting section x.
        Initializing section x.
        Getting option x:command.
        Getting section userinfo.
        Initializing section userinfo.
      
      An internal error occurred due to a bug in either zc.buildout or in a
      recipe being used:
      Traceback (most recent call last):
        File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 2127, in main
          getattr(buildout, command)(args)
        File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 681, in install
          [self[part]['recipe'] for part in install_parts]
        File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1278, in __getitem__
          options._initialize()
        File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1376, in _initialize
          self._dosub(k, v)
        File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1431, in _dosub
          v = '$$'.join([self._sub(s, seen) for s in v.split('$$')])
        File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1495, in _sub
          v = self.buildout[section].get(option, None, seen)
        File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1278, in __getitem__
          options._initialize()
        File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1386, in _initialize
          self.initialize()
        File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1395, in initialize
          self.recipe = recipe_class(buildout, name, self)
        File "/tmp/x/eggs/slapos.cookbook-1.0.62-py2.7.egg/slapos/recipe/userinfo.py", line 13, in __init__
          options['pw-uid'] = pinfo.pw_uid
        File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1520, in __setitem__
          raise TypeError('Option values must be strings', value)
      TypeError: ('Option values must be strings', 991)
      ```
      
      /cc @Nicolas @alain.takoudjou  @vpelletier 
      
      /reviewed-on !321
      Jérome Perrin committed
  25. 10 Apr, 2018 1 commit
    • slapos.cookbook: add new recipe for python promises plugin script generation with eggs · 6f7b3a31
      This recipe will be used to generate promise in etc/plugin dir. It solve the problem of promise eggs
      dependencies and allow to set custom parameter to use in promise.
      
      The generated script will looks like:
      
          import sys
          sys.path[0:0] = [
            ...
          ]
      
          extra_config_dict = {
            'KEY': 'VALUE'
          }
      
          CONTENT
      
      CONTENT is a python code, the expected content looks like:
      
          from namespace.module import RunPromise
      
      then the promise section in buildout will be something like:
      
          [my-promise]
          recipe = slapos.cookbook:promise.plugin
          eggs =
            NAME
            ...
          output = OUTPUT
          content =
            from namespace.module import RunPromise
      
          config-KEY = VALUE
      Alain Takoudjou committed
  26. 04 Apr, 2018 2 commits
  27. 16 Mar, 2018 1 commit
  28. 13 Mar, 2018 1 commit
  29. 12 Mar, 2018 1 commit
  30. 26 Feb, 2018 1 commit
  31. 13 Feb, 2018 3 commits