Commit graph

387 commits

Author SHA1 Message Date
Anders Ingemann
ebd8f71fdb Fix bug in packages stanza (fixes #126)
Created 3 new tasks:
  AddManifestSources
	AddRemoteManifestPackages
	AddLocalManifestPackages
They are added independently depending on what is specified in the manifest.
2014-01-09 17:21:29 +01:00
Anders Ingemann
0723290c45 Remove nonsensical 'more' in a task description 2014-01-06 23:01:48 +01:00
Anders Ingemann
d7f859b76f Remove unnecessary dependencies 2014-01-06 23:01:48 +01:00
Anders Ingemann
0092e1c2c2 Don't instantiate tasks
In practice they are just typed functions with attributes, having a reference to an object is just confusing.
So: Task.run() is now a classmethod
2014-01-06 22:58:21 +01:00
Anders Ingemann
039a35a344 Fix bug in ManifestError __str__ function
+ some formatting fixes
2014-01-06 22:58:21 +01:00
Anders Ingemann
e1881da2bc Simplify tasklist by passing a set to the modules 2014-01-06 22:58:21 +01:00
Anders Ingemann
a4ead02a9b Remove provider specific manifests
Manifest and module loading has been refactored
Provider modules now must implement validate_manifest like plugins do
Simplified loading of manifests
2014-01-05 14:03:04 +01:00
Anders Ingemann
27c0346455 Minor import stmt and dependency fix 2014-01-05 02:25:29 +01:00
Anders Ingemann
44b23c9cd8 Try and fix hvm registration
It's still not working unfortunately, but it's a step in the right direction
2014-01-05 02:25:29 +01:00
Anders Ingemann
8b5bc77650 Fallback values in a prettier way 2014-01-05 02:25:29 +01:00
Anders Ingemann
83e1339145 New plugin: minimize_size
It binds folders from the host machine to temporary and cache folders in the image.
This way dynamic volumes will not grow in size when running `apt-get update` etc.
2014-01-05 02:25:28 +01:00
Anders Ingemann
4ef77f1b69 Install enhanced networking drivers on HVM AMIs 2014-01-05 02:25:28 +01:00
Anders Ingemann
44f3296426 Extlinux support
The bootloader is now specified in the manifest
2014-01-05 02:25:28 +01:00
Anders Ingemann
68368b1782 Use cloudfront mirror in ec2 manifests 2014-01-05 02:25:28 +01:00
Anders Ingemann
98d4a074b1 Reorganize imports a little 2014-01-05 02:25:28 +01:00
Anders Ingemann
2b5664b0b2 Add `assets' variable to task __init__ files 2014-01-05 02:25:27 +01:00
Anders Ingemann
af2397720d Fix import bug in ec2 provider 2014-01-05 02:25:27 +01:00
Anders Ingemann
9a525628a2 Print some more helpful messages on apt failure 2014-01-05 02:25:27 +01:00
Anders Ingemann
7afd04f1c9 Distinguish between bootstrap and apt mirror
They can both be set independently now.
If the bootstrap mirror is not set, it falls back to the apt mirror,
which in turn falls back to the geo redirector.
2014-01-05 02:25:27 +01:00
Anders Ingemann
d9a7f3d1e4 Make plugins key a required manifest property 2014-01-05 02:25:26 +01:00
Anders Ingemann
31f3a71464 New plugin: vagrant
Example manifest file also added
2014-01-05 02:25:26 +01:00
Anders Ingemann
15661ae680 Create snapshot of volume *after* package install 2014-01-05 02:25:26 +01:00
Anders Ingemann
569f6fd505 `quoted'' -> quoted' 2014-01-05 02:25:26 +01:00
Anders Ingemann
a50db30185 Don't install recommended packages 2014-01-05 02:25:26 +01:00
Anders Ingemann
b1195c5c3b Fail when guest add. install exits with $? != 1 2014-01-05 02:25:25 +01:00
Anders Ingemann
e388078de7 Make InstallRemotePkgs task a little more helpful 2014-01-05 02:25:25 +01:00
Anders Ingemann
2e6478f8bb Automatically install correct linux headers for guest additions 2014-01-05 02:25:25 +01:00
Anders Ingemann
0612987fec New task: AddDefaultSources 2014-01-05 02:25:23 +01:00
Anders Ingemann
4ffb533625 Use new package handling in the cloud-init plugin
This saves quite a few "package" lines in the manifest
2014-01-05 02:24:29 +01:00
Anders Ingemann
50f45d31d4 Refactor manifest_vars use in package handling 2013-12-29 20:58:06 +01:00
Anders Ingemann
8d32339fda Introduced a global manifest_vars dictionary
All manifest entries can now be accessed from the manifest itself
2013-12-29 20:58:06 +01:00
Anders Ingemann
1c93094833 Integrated package plugin with base system
New phase introduced "package installation" (fixes #114)
Apt source lines are now parsed, this allows to verify the target release of added packages.
All packages (except locales) are now installed *after* bootstrapping (fixes #123)
Added env argument to log_(check_)call
HostDependencies have been refactored a little
2013-12-29 20:58:06 +01:00
Anders Ingemann
1d69f65a7f Support for vmdk disk format 2013-12-29 16:50:22 +01:00
Anders Ingemann
51041f6aa2 Generalize VirtualBoxVolume, introduce QEMUVolume 2013-12-29 16:50:22 +01:00
Anders Ingemann
61b5dd2ef0 run_id is now in hex per default
... since its primary use is as a string
2013-12-29 16:50:21 +01:00
Anders Ingemann
ba1db3b737 DisableRootLogin now runs after package install
Also adjusted the wording of the description
2013-12-29 16:50:21 +01:00
Anders Ingemann
91cff897c8 MoveImage task now uses image.name from manifest 2013-12-29 16:50:21 +01:00
Anders Ingemann
1e0aa634d2 Make admin_user plugin more robust
Don't fail if the ec2-get-credentials script is not installed
Don't fail if SSH server is not installed
2013-12-29 16:50:21 +01:00
Anders Ingemann
abe6a5fef3 Don't save the logger to a var we only use once 2013-12-29 16:50:21 +01:00
Anders Ingemann
bc8038729a Merge pull request #125 from JamesBromberger/python
Permit cloud-init to be configured for its metadata sources using debcon...
2013-12-29 06:02:19 -08:00
James Bromberger
39f5e815b8 Process cloud config tasks only if they are configured. 2013-12-25 12:47:17 +00:00
James Bromberger
7e3527d2af PIP8 ify the latest updates. 2013-12-21 12:26:37 +00:00
James Bromberger
d9dacc5d41 Simplify the description, make the AMI name have the year and the fact it is ebs. 2013-12-20 15:04:22 +00:00
James Bromberger
e17bc7ec73 Adjust run ordering of cloud-init config. 2013-12-19 14:21:33 +00:00
James Bromberger
02ef8cabb8 Support auto-configure of cloud-init data sources, with manual override; support specifying modules to disable. 2013-12-19 11:44:34 +00:00
James Bromberger
682b747efc Permit cloud-init to be configured for its metadata sources using debconf. 2013-12-17 15:51:03 +00:00
Anders Ingemann
d0ec90f491 Support installation of VirtualBox Guest Additions 2013-12-15 17:25:57 +01:00
Anders Ingemann
65e3f37520 Rename image_commands task module to "tasks" 2013-12-15 11:44:36 +01:00
Anders Ingemann
4cca325fb4 Merge remote-tracking branch 'osallou/update_image_commands_to_base' into python
Conflicts:
	plugins/image_commands/__init__.py
	plugins/image_commands/image_commands.py
2013-12-15 11:43:42 +01:00
Anders Ingemann
c0021e0c46 Merge pull request #121 from osallou/cleanup_dirs
if tmp contains directories, cleanup task fails. Add management for directories too
2013-12-15 02:34:24 -08:00