Age | Commit message (Collapse) | Author |
|
There are several changes here.
* Datasource now has a 'availability_zone' getter.
* get_package_mirror_info
* Datasource convenience 'get_package_mirror_info' that calls
the configured distro, and passes it the availability-zone
* distro has a get_package_mirror_info method
* get_package_mirror_info returns a dict that of name:mirror
this is to facilitate use of 'security' and 'primary' archive.
* this supports searching based on templates. Any template
that references undefined values is skipped. These templates
can contain 'availability_zone' (LP: #1037727)
* distro's mirrors can be arch specific (LP: #1028501)
* rename_apt_lists supports the "mirror_info" rather than single mirror
* generate_sources_list supports mirror_info, and as a result, the
ubuntu mirrors reference '$security' rather than security (LP: #1006963)
* remove the DataSourceEc2 specific mirror selection, but instead
rely on the above filtering, and the fact that 'ec2_region' is only
defined if the availability_zone looks like a ec2 az.
|
|
At this point there is a mixture of "double hash" cheetah comments and '#*'
cheetah comments.
|
|
Also converted all the other templates to tempita format instead of the more complicated (and more dependent on other packages) cheetah format.
|
|
|
|
LP: #627439
|
|
LP: #620572
|
|
This commit merges
lp:~soren/ec2-init/0.5 at rev 67
and lp:ubuntu/lucid at 0.4.999-0ubuntu8
|
|
- Use template for /etc/hosts creation.
- Dont use public_hostname in /etc/hosts. (LP: #352745)
* debian/control:
- Add python-cheetah as a depends.
* templates/sources.list.tmpl:
- Update template.
* debian/init:
- Run the ec2-user-data script last so that the users
get a stable system before running the user scripts.
|
|
- Use a template to generate the sources.list and generate it based on the lsb_release.
|