1. 13 Jan, 2025 1 commit
  2. 11 Jan, 2025 1 commit
  3. 10 Jan, 2025 8 commits
    • Xavier Thompson's avatar
      Introduce slapconfiguration:jsonschema recipe · d26d1810
      Xavier Thompson authored
      See merge request !1638
      d26d1810
    • Xavier Thompson's avatar
      slapconfiguration:jsonchema: Allow skipping validation · c0306e8b
      Xavier Thompson authored
      Add `validate-parameters` options to slapconfiguration:jsonschema.
      Accepted values are `all|main|shared|none`.
      Default value is `all`.
      
      When shared parameters validation is skipped, shared parameters are
      left in `slave-instance-list`.
      c0306e8b
    • Xavier Thompson's avatar
      9e68c19f
    • Xavier Thompson's avatar
      slapconfiguration:jsonschema: Add set-default · 5b477bfe
      Xavier Thompson authored
      Add `set-default` options to slapconfiguration:jsonschema.
      Accepted values are `all|main|shared|none`.
      Default value is `none`.
      
      These allow controlling whether default values of parameters that
      where not provided by the user are set from the defaults given in
      the JSON schema. The default behavior of the recipe is now not to
      add any defaults. The new option allows adding all defaults, only
      the defaults of the main instance, or only the defaults of shared
      instances.
      5b477bfe
    • Xavier Thompson's avatar
      19e57691
    • 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
    • Xavier Thompson's avatar
      slapconfiguration: Enable <= slap-connection · eb6da27c
      Xavier Thompson authored
      Introduce alternative names for input parameters to enable
      
      ```
      [slap-configuration]
      <= slap-connection
      recipe = slapos.cookbook:slapconfiguration
      ```
      
      instead of
      
      ```
      [slap-configuration]
      recipe = slapos.cookbook:slapconfiguration
      computer = ${slap-connection:computer-id}
      partition = ${slap-connection:partition-id}
      url = ${slap-connection:server-url}
      key = ${slap-connection:key-file}
      cert = ${slap-connection:cert-file}
      ```
      eb6da27c
    • Thomas Gambier's avatar
      software/kvm: use sticky-compute-node instead of sticky-computer · 93374140
      Thomas Gambier authored
      This follows the new notation of slapos master.
      93374140
  4. 08 Jan, 2025 2 commits
  5. 07 Jan, 2025 1 commit
  6. 03 Jan, 2025 3 commits
  7. 02 Jan, 2025 6 commits
  8. 24 Dec, 2024 1 commit
  9. 19 Dec, 2024 1 commit
  10. 18 Dec, 2024 1 commit
  11. 17 Dec, 2024 1 commit
  12. 16 Dec, 2024 3 commits
  13. 12 Dec, 2024 1 commit
  14. 11 Dec, 2024 10 commits