schema: add jsonschema definition to cc_scripts_vendor

Bug #1858919 reported by Chad Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Low
Unassigned

Bug Description

Add initial jsonschema definition for validation of cloud-config
user data to cloudinit/config/cc_scripts_vendor.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

Tags: bitesize
Chad Smith (chad.smith)
Changed in cloud-init:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Chad Smith (chad.smith) wrote :
Changed in cloud-init:
status: Triaged → Fix Committed
Revision history for this message
James Falcon (falcojr) wrote : Fixed in cloud-init version 22.2.

This bug is believed to be fixed in cloud-init in version 22.2. 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: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.