← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1858917] [NEW] schema: add jsonschema definition to cc_scripts_per_once

 

Public bug reported:

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

** Affects: cloud-init
     Importance: Low
         Status: Triaged


** Tags: bitesize

** Changed in: cloud-init
   Importance: Undecided => Low

** Changed in: cloud-init
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1858917

Title:
  schema: add jsonschema definition to cc_scripts_per_once

Status in cloud-init:
  Triaged

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1858917/+subscriptions


Follow ups