schema: add jsonschema definition to cc_chef

Bug #1858888 reported by Chad Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Low
Lucas Albuquerque Medeiros de Moura

Bug Description

Add initial jsonschema definition for validation of cloud-config
user data to cloudinit/config/cc_chef.py.

Add a schema dictionary to the cc_*.py module which describes allowed
cloud-config properties which are honored by the module.

jsonschema support for a cloud-config module should entail:
 - module-level schema dict definition in cc_*py
   - schema should contain the keys:
     id, name, title, description, distros, examples, frequency, type,
     properties
 - handler should call validate_cloudconfig_schema(cfg, schema) if valid
   top-level config module keys are provided

Good examples are:
- cloudinit/config/cc_runcmd.py
- cloudinit/config/cc_ubuntu_drivers.py
- cloudinit/config/cc_zypper_add_repo.py
- cloudinit/config/cc_ntp.py

Chad Smith (chad.smith)
Changed in cloud-init:
importance: Undecided → Low
status: New → Triaged
Changed in cloud-init:
assignee: nobody → Lucas Albuquerque Medeiros de Moura (lamoura)
Revision history for this message
James Falcon (falcojr) wrote : Fixed in cloud-init version 20.3.

This bug is believed to be fixed in cloud-init in version 20.3. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in cloud-init:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers