Age | Commit message (Collapse) | Author |
|
|
|
This can either be invoked by instrumenting the user-data with a mime
part with content-type 'text/x-ebs-mount-description' with a body like
so:
device=/dev/sde:/var/lib/mysql,/etc/alfresco
device=/dev/sdf:/other/things
or by using the appliance config XML format like so:
<appliance>
<storage device="/dev/sde">
<path>/var/lib/mysql</path>
<path>/etc/alfresco</path>
</storage>
<storage device="/dev/sdf">
<path>/other/things</path>
</appliance>
</appliance>
In either case, if the volume does not yet have a filesystem, one will be created.
For each path that is to live on the volume, a directory is created, and
populated with the data currently in the target directory (e.g.
/var/lib/mysql is copied to ${ebs_volume_path}/_var_lib_mysql). Once
this is done, the directories are bind-mounted to the relevant paths.
If the directories in question already exist, they will just be bind-mounted.
|
|
Add @handler decorator for appliance config
|
|
LP: #376740
|
|
Added test cases for this.
|
|
removal)
Also added unit tests for the above.
|
|
just do its thing.
|
|
|
|
Update copyright years.
Add copyright and license information to setup.py.
Add myself as author of the relevant files.
|
|
* New ec2init python module introduced
* Lots and lots of stuff cleaned up and moved to ec2init python module.
* Started the move to Boto
|
|
|
|
- Add python-cheetah and python-apt as a dependency.
* debian/ec2-config.cfg:
- Remove distro due to the change in ec2-set-apt-sources.py
* debian/inistall
- Install the templates in the right place.
* ec2-set-apt-sources.py:
- Use python-apt to update the sources.list.
|
|
- Allow user to choose which user they wish to configure for.
- Allow user to disable root user if they wish to.
* ec2-set-defaults.py:
- Set default timezone to UTC.
- Set locale depending on zone.
* debian/init:
- Removed nash plugin.
- Add ec2-set-defaults.
|
|
- Remove already ran detection
- Log the running of ec2-run-user-data to /var/log/ec2-user-data.log
* ec2-set-hostname.py:
- set hostname to the Ec2 local-hostname
- Update the /etc/hosts to change the ubuntu hostname to the
public hostname.
* ec2-fetch-credentials:
- Copy the ssh keys to the ubuntu user.
- Setup authorized keys for root to tell the user to login as the
ubuntu user when they try to connect.
* ec2-run-user-data:
- Create an .already-ran file to check to see if ec2-run-user-data
already ran.
- Save the ec2-run-user-data script in /var/ec2.
|
|
* debian/rules: Start ec2-init after ssh.
* ec2-run-user-data.py: Save run-user-data script with ami-id.
|
|
|
|
|