andsens / build-debian-cloud

This project has been superseeded by andsens/bootstrap-vz and is no longer maintained - Script to create Debian Squeeze & Wheezy Amazon Machine Images (AMIs) and Google Compute Engine images
Other
116 stars 43 forks source link

manage kernels in common lib rather than each provider #96

Open osallou opened 10 years ago

osallou commented 10 years ago

Currently, we have in each provider, when managing image packages:

    # In squeeze, we need a special kernel flavor for xen
    kernels = {'squeeze': {'amd64': 'linux-image-amd64',
                           'i386':  'linux-image-686', },
               'wheezy':  {'amd64': 'linux-image-amd64',
                           'i386':  'linux-image-686', }, }

For later maintenance, it would be nice to manage this via a kernels.get(xx) or something like that to avoid modifying all providers to add Jessie for example.

globally, Host and Image packages could be put in a common task, called only with a specific list per provider.

andsens commented 10 years ago

Tomasz did something along those lines for some other stuff: 3bc47f69f77c31dd7d5236645f125111b9cd2fb4 This could work for kernel images and AKI IDs as well.