Merge lp:~craigtracey/cloud-init/osfamilies into lp:~cloud-init-dev/cloud-init/trunk
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 761 | ||||||||
Proposed branch: | lp:~craigtracey/cloud-init/osfamilies | ||||||||
Merge into: | lp:~cloud-init-dev/cloud-init/trunk | ||||||||
Diff against target: |
92 lines (+27/-3) 5 files modified
cloudinit/config/__init__.py (+3/-1) cloudinit/distros/__init__.py (+15/-0) cloudinit/distros/debian.py (+1/-0) cloudinit/distros/rhel.py (+1/-0) cloudinit/stages.py (+7/-2) |
||||||||
To merge this branch: | bzr merge lp:~craigtracey/cloud-init/osfamilies | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Joshua Harlow (community) | Approve | ||
Review via email: mp+143410@code.launchpad.net |
Commit message
add support for operating system families
often it is convenient to classify a distro as being part of an
operating system family. for instance, file templates may be
identical for both debian and ubuntu, but to support this under
the current templating code, one would need multiple templates for the
same code.
similarly, configuration handlers often fall into the same bucket: the
configuraton is known to work/has been tested on a particular family
of operating systems. right now this is handled with a declaration
like:
distros = ['fedora', 'rhel']
this fix seeks to address both of these issues. it allows for the
simplification of the above line to:
osfamilies = ['redhat']
and provides a mechanism for operating system family templates.
Description of the change
add support for operating system families
often it is convenient to classify a distro as being part of an
operating system family. for instance, file templates may be
identical for both debian and ubuntu, but to support this under
the current templating code, one would need multiple templates for the
same code.
similarly, configuration handlers often fall into the same bucket: the
configuraton is known to work/has been tested on a particular family
of operating systems. right now this is handled with a declaration
like:
distros = ['fedora', 'rhel']
this fix seeks to address both of these issues. it allows for the
simplification of the above line to:
osfamilies = ['redhat']
and provides a mechanism for operating system family templates.
Looks good, will get this in soon :-)