integrate changes from amazon
Bug #655837 reported by
Scott Moser
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Amazon's linux image uses cloud-init: http://
Amazon made changes to cloud-init to support their Fedora/CentOS base.
the changes should be integrated into cloud-init upstream.
I'm attaching the cloud-init srpm obtained with: get_reference_
from ami-3ac33653 (137112412989/
Changed in cloud-init: | |
importance: | Medium → Low |
To post a comment you must log in.
Looking at this, it seems like the 0.7.0 release covers most of the amazon changes (they added some sysvinit stuff, some yum install 'abstraction' as well, they adjusted subprocess exception throwing). They also added in a somewhat abstraction of yum/apt... They write out yum repo config files (thats different), and handle yum upgrades a little differently.... The 0.7.0 are more extensive (and imho better) so this bug might not be needed anymore...
Noteable additions:
1. It seems like they also can take base64 encoded userdata (from a response header??)
decoded_user_data = base64. urlsafe_ b64decode( user_data)
if decoded_ user_data. startswith( header) :
returned_ data = decoded_user_data
break
for header in valid_headers:
2. It seems like they have a generic package install mechanism we might want to take (a config module):
a) Look for file (in that rpm), cc_package_setup.py
3. Similarly they generate repo configs, in cc_genrepo.py (might be useful again)