Merge ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master
Status: | Merged |
---|---|
Merged at revision: | f761f2b5f58c8cf13cfee63619f32046216cf66a |
Proposed branch: | ~chad.smith/cloud-init:config-modules-allow-distros-all |
Merge into: | cloud-init:master |
Diff against target: |
256 lines (+131/-34) 4 files modified
cloudinit/config/cc_runcmd.py (+2/-1) cloudinit/distros/__init__.py (+4/-0) cloudinit/stages.py (+20/-13) tests/unittests/test_runs/test_simple_run.py (+105/-20) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ryan Harper | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email:
|
Commit message
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.
- 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
Description of the change
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.
- always run a module if the module doesn't declare a distros attribute
- always run a module if the module declares distros = [CONFIG_
- 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
PASSED: Continuous integration, rev:547c29e3b8a 05d769046bd4575 984bfb9d972434 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 271/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 271/rebuild
https:/