summaryrefslogtreecommitdiff
path: root/ec2-run-user-data.py
AgeCommit message (Collapse)Author
2009-09-04Add a unittest for veriyfing that shell scripts passed in user-data get called.Soren Hansen
2009-08-25Implement EBS volume mountingSoren Hansen
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.
2009-08-25Merge with lp:~soren/ec2-init/decoratorSoren Hansen
Add @handler decorator for appliance config
2009-08-25Replace static content_type_handler dictionary with a decorator.Soren Hansen
LP: #376740
2009-08-25Added script handling to appliance config handling.Soren Hansen
Added test cases for this.
2009-08-25Added basic appliance config handling (specifically package installation and ↵Soren Hansen
removal) Also added unit tests for the above.
2009-06-27Rely on the lockfile handling in the init script, and let ec2-run-user-data ↵Soren Hansen
just do its thing.
2009-06-27Clean out unused importsSoren Hansen
2009-06-27Update license to GPLv3 (dropping the "or later" bit).Soren Hansen
Update copyright years. Add copyright and license information to setup.py. Add myself as author of the relevant files.
2009-06-26 * Distutils addedSoren Hansen
* New ec2init python module introduced * Lots and lots of stuff cleaned up and moved to ec2init python module. * Started the move to Boto
2009-04-08ec2-run-user-data.py: Fix error. Chuck Short
2009-04-06* debian/control:Chuck Short
- 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.
2009-03-05* ec2-fetch-credentials.py:Chuck Short
- 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.
2009-02-04* debian/init:Chuck Short
- 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.
2009-01-26* debian/dir: Install /var/ec2 to save user-data scripts.Chuck Short
* debian/rules: Start ec2-init after ssh. * ec2-run-user-data.py: Save run-user-data script with ami-id.
2009-01-19ec2-run-user-data: Fix python error when writing a file to the disk. Chuck Short
2008-10-10Initial release (LP: #269434).Soren Hansen