~cloud-init-dev/cloud-init/trunk

Viewing all changes in revision 761.

  • Committer: Joshua Harlow
  • Date: 2013-01-22 03:51:10 UTC
  • mfrom: (759.1.2 update-etc-hosts)
  • Revision ID: harlowja@gmail.com-20130122035110-9h9uzur10roid5rb
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']

It also provides a mechanism for operating system family templates.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: