← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master

 

The proposal to merge ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master has been updated.

Commit Message changed to:

cloud-config modules: honor distros definitions in each module

Modules can optionally define a list of supported distros on which they can run by declaring a distros attribute in the cc_*py module. This branch fixes handling of cloudinit.stages.Modules.run_section. The behavior of run_section is now the following:
 - always run a module if the module doesn't declare a distros attribute
 - always run a module if the module declares distros = [ALL_DISTROS]
 - skip a module if the distribution on which we run isn't in module.distros
 - force a run of a skipped module if unverified_modules configuration contains the module name

LP: #1715738
LP: #1715690

For more details, see:
https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330384
-- 
Your team cloud-init commiters is requested to review the proposed merge of ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master.