summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-08-24Merge lp:~smoser/ec2-init/bugfix-412143Soren Hansen
Fixes invalid $ssh token in Required-Start LSB init header.
2009-08-11 * ec2-init: Remove invalid token '$ssh' in header (LP: #412143)Scott Moser
2009-08-11Update /etc/default/locale with locale setting derived from locality.Soren Hansen
2009-08-11Consolidate on the use of urllib2 (rather than both urllib and urllib2)Soren Hansen
2009-08-11Fix ec2-get-info to work with simple testing environment (i.e. don't append ↵Soren Hansen
a slash to every single URL)
2009-08-11Set ownership of user's .ssh directory correctly.Soren Hansen
Disable root by default. Fail more gracefully if ssh keys could not be fetched.
2009-08-11Extend config API to allow for default values.Soren Hansen
Handle undefined config values gracefully.
2009-08-11Tag 0.4.99 release.Soren Hansen
2009-08-11Remove bzr-builddeb configuration.Soren Hansen
2009-08-11Remove call to update-motd from the init script. It is Ubuntu specific (and ↵Soren Hansen
is possibly not even needed there) Fix a bit of fallout due to code shuffling between EC2Init, ec2-set-apt-sources, and ec2-set-defaults.
2009-08-10Only return the first part of local-hostname.Soren Hansen
2009-08-10Rerun the setting up of authorized keys if te AMI is rebundled.Soren Hansen
2009-08-10run_once_per_ami() and run_once_per_instance() are equivalent, so nuke ↵Soren Hansen
run_once_per_instance(). There are three cases: You want to run the script every time. In that case, simply do not wrap it. You want to rerun the script every time the AMI has been rebundled. Wrap it in run_once_per_ami. You want to run the script only once, ever. Wrap it in run_once_ever. If I'm missing a case, please tell me.
2009-08-10Tag 0.4.9 release, working towards 0.5.Soren Hansen
2009-08-10Remove debian/ directory in preparation for upstream/ubuntu split.Soren Hansen
2009-08-10Move ec2-config file to top-level.Soren Hansen
2009-08-10Import current changelog.Soren Hansen
2009-08-10Move ec2 init script from debian/ out into top-level.Soren Hansen
Install init-script using distutils. Add -o to dh_installinit call to let it find the init script.
2009-08-10Stop mangling /etc/hosts. EC2 provides a functional DNS.Soren Hansen
Replace use of os.system with a call to subprocess.Popen.
2009-08-10Moved mappings from ec2-set-sources-list to ec2init.Soren Hansen
Moved everything else from ec2-set-sources-list to ec2-set-defaults. Removed call to ec2-set-sources-list from init script. Removed ec2-set-sources-list.
2009-08-10Replace calls to ec2-get-data (which was a figment of my imagination) withSoren Hansen
calls to ec2-get-info.
2009-08-10Update copyright to reflect current copyright and license.Soren Hansen
2009-08-10Move python-disutils.mk before debhelper.mk to make sure the python module isSoren Hansen
fully installed by dh_pycentral before the init script is run in postinst.
2009-08-10Added a runtime dependency on python-boto.Soren Hansen
2009-08-10Reset the umask once we're done creating the authorized_keys.Soren Hansen
2009-08-10Remove .py extension from scripts installed in /usr/binSoren Hansen
2009-08-10Use urllib2 instead of urllib so that HTTP errors appear as exceptions.Soren Hansen
Add a new function: wait_or_bail which will wait for the meta-data service or call the bailout command if the meta-data service never shows up. Remove the wait_or_bail code from __init__.
2009-08-10Add new script: ec2-wait-for-meta-data-service.pySoren Hansen
It will wait for around half an hour for the ec2 meta data service to turn up and eventually execute the configured bailout command (if any) if it never shows up. Call this as the first thing in the init script.
2009-08-10ec2-init does not have any arch specific code at all, so go arch:allSoren Hansen
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-27Make the paths constants.Soren Hansen
2009-06-27Add the "run_once" handling to the init script.Soren Hansen
Unify init script indentation style.
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-05-28 * debian/init: Run update-motd regardless whether its a firstboot or not.Chuck Short
* debian/init: Fix comments (LP: #373057) * debian/control: Add update-motd as a depends. * ec2-set-defaults.py: Wait for network to become available. (LP: #308530)
2009-05-14 * debian/init: Move init script to run before ssh and regenerate the sshChuck Short
host kes in the init script rather than /etc/rc.local (LP: #370628) * ec2-set-apt-sources.py: - Move sources.list to /var/ec2 so it doesnt get removed after user reboots. * ec2-set-defaults.py: - Move locale to /var/ec2/ so it doesnt get remove after user reboots. * ec2-set-hostname.py - Create an /etc/hostname as well.
2009-05-13 * Really change the locale when setting up an instance. (LP: #341066) Chuck Short
* Run ec2-run-user-data script last. (LP: #373055) * Minor comment tweaks. (LP:373057)
2009-05-05 * Add more smarts to ec2 instance bring up. (LP: #371936)Chuck Short
2009-04-07 * ec2-run-user-data.py: Fix error. Chuck Short
2009-04-07 * ec2-run-user-data.py: Fix error. Chuck Short
2009-06-26Fake the package-import tree and the current trunk.Soren Hansen
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-04-06* ec2-set-hostname.py:Chuck Short
- 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.
2009-04-06* ec2-set-apt-sources.py:Chuck Short
- Use a template to generate the sources.list and generate it based on the lsb_release.
2009-04-06* ec2-set-apt-sources.py:Chuck Short
- Add the ubuntu-on-ec2 ppa.
2009-03-22debian/rules: Fix typo. Chuck Short
2009-03-22* Set the configuration file to jaunty.Chuck Short
* ec2-fetch-credentials: Fix typo. * ec2-set-defaults.py: - Remove timezone change when booting the instance. - Redirect output to /dev/null. * ec2-set-apt-sources.py: - Run apt-get update after the /etc/apt/sources.list and redirect the output to /dev/null. * rightscale-init: Updated rightscale-init
2009-03-18* debian/ec2-config.cfg:Chuck Short
- Add disable root option. * debian/ec2-init.rightscale-init.init: - Add rightscale detection script. * ec2-get-info.py: - Display the information about an AMI instance.