1. 10 Jan, 2025 1 commit
    • Xavier Thompson's avatar
      slapconfiguration: Add .jsonschema recipe · 2b1713e6
      Xavier Thompson authored
      
      [slapconfiguration]
      <= slap-connection
      recipe = slapos.cookbook:slapconfiguration.jsonschema
      jsonschema = ${buildout:directory}/software.cfg.json
      
      The recipe validates instance parameters against the JSON schema, and
      automatically fills in values of parameters left unset from defaults
      specified in the schema, both for the main instance and for every
      shared instance, if any.
      
      Validation error or conflicting defaults - when the instance validates
      multiple combined schemas that each set different defaults - can occur.
      
      In case of error in the main instance parameters, the recipe raises an
      exception. Otherwise, the completed instance parameters are available
      in `configuration`.
      
      For shared instances, valid and conflict-free instances are
      collected in `valid-shared-instance-list` as dicts in the form of:
      ```
      {'reference': "...", 'parameters': {...}}
      ```
      with parameters completed by defaults as appropriate.
      
      Invalid shared instances are collected in `invalid-slave-instance-list`
      as dicts in the form of:
      ```
      {'reference': "...", 'parameters': {...}, 'errors': [...]}
      ```
      with parameters left as-is without added defaults.
      Co-authored-by: Thomas Gambier's avatarThomas Gambier <thomas.gambier@nexedi.com>
      2b1713e6
  2. 22 Oct, 2024 1 commit
  3. 04 Oct, 2024 1 commit
  4. 17 Sep, 2024 2 commits
  5. 11 Sep, 2024 1 commit
  6. 04 Sep, 2024 1 commit
  7. 29 Aug, 2024 1 commit
  8. 16 May, 2024 1 commit
  9. 22 Jan, 2024 2 commits
    • Jérome Perrin's avatar
      Release slapos.cookbook (1.0.351) · daadef35
      Jérome Perrin authored
      daadef35
    • Jérome Perrin's avatar
      random: expose hashed passwords in recipe options · bb841a7b
      Jérome Perrin authored
      Directly expose all passlib.hash supported hashes, using a `passwd-`
      prefix. For example, to access `sha256_crypt`, use `passwd-sha256-crypt`
      option name.
      
        [secret]
        recipe = slapos.cookbook:generate.password
      
        [config-file]
        hashed-password = ${secret:passwd-sha256-crypt}
      
      This changes the format of storage-path, it used to be the password in
      plain text, it is now a mapping also containing hashed passwords, to
      have the same hashed passwords for each buildout run.
      
      This needs collaboration from publish_early recipe, because .pop(k) does
      raised a KeyError with the dict.__missing__  approach.
      bb841a7b
  10. 13 Oct, 2023 1 commit
  11. 13 Jul, 2023 1 commit
  12. 15 Jun, 2023 1 commit
  13. 01 Feb, 2023 1 commit
  14. 14 Dec, 2022 2 commits
    • Łukasz Nowak's avatar
      Release slapos.cookbook (1.0.297) · e752779e
      Łukasz Nowak authored
      e752779e
    • Łukasz Nowak's avatar
      slapos.cookbook: Add _failsafe publish type recipes · 19f683ef
      Łukasz Nowak authored
      In some contexts it's required to not stop buildout processing on publishing
      errors, thus such recipe is required in those cases.
      
      By providing -error-status-file it's possible to check status of the publish,
      the file will be created on error and removed on successful call or during
      uninstall. It's responsibility of the caller to handle such errors, for example
      by using proper promises.
      19f683ef
  15. 05 Dec, 2022 1 commit
  16. 10 Nov, 2022 1 commit
  17. 12 Sep, 2022 1 commit
  18. 09 Sep, 2022 1 commit
  19. 08 Jul, 2022 1 commit
  20. 06 Jul, 2022 1 commit
  21. 05 Jul, 2022 2 commits
  22. 27 May, 2022 1 commit
  23. 09 May, 2022 1 commit
  24. 01 Apr, 2022 1 commit
  25. 29 Mar, 2022 1 commit
  26. 24 Mar, 2022 1 commit
  27. 28 Dec, 2021 1 commit
  28. 08 Dec, 2021 7 commits
  29. 03 Dec, 2021 1 commit
  30. 02 Dec, 2021 1 commit