Commit graph

130 commits

Author SHA1 Message Date
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
44f3296426 Extlinux support
The bootloader is now specified in the manifest
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
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
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
e388078de7 Make InstallRemotePkgs task a little more helpful 2014-01-05 02:25:25 +01:00
Anders Ingemann
0612987fec New task: AddDefaultSources 2014-01-05 02:25:23 +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
91cff897c8 MoveImage task now uses image.name from manifest 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
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
Olivier Sallou
14b60bd364 if tmp contains directories, cleanup task fails. Add maanagement for directories 2013-12-15 08:31:15 +01:00
Anders Ingemann
06e7f61d8c Revert "Remove extension property from volumes"
This reverts commit c454114a22.
2013-12-15 00:51:51 +01:00
Anders Ingemann
293557827f Fix PEP8 style fixes 2013-12-14 23:18:43 +01:00
Anders Ingemann
c454114a22 Remove extension property from volumes 2013-12-14 23:18:42 +01:00
Anders Ingemann
b03fbb6dad Don't resolve device_path
grub does that automatically
2013-12-14 23:18:42 +01:00
Anders Ingemann
0a49901476 Implement hvm support for ec2 2013-12-14 23:18:41 +01:00
Anders Ingemann
668b9896c1 Modularize init script installation
Don't install various init scripts when using cloud-init
2013-12-14 23:18:41 +01:00
Anders Ingemann
6138f88ab9 New plugin: "packages"
It combines features from the user_packages and backports plugin,
so they are not needed any longer.
2013-12-14 23:18:40 +01:00
Anders Ingemann
2af0968156 Implement partition mounts.
This solves quite a few challenges with mounting directories into root etc.
2013-12-14 23:18:39 +01:00
Anders Ingemann
2e29ac0f93 Rename expand-volume script to expand-root
Also move task for adjustment of that script into common.
It still needs some modifications to support device names other than xvda
2013-11-22 09:03:48 +01:00
Anders Ingemann
a1d465ea16 Fix DisableGetTTYs task to disable tty6 as well 2013-11-22 09:03:48 +01:00
Anders Ingemann
a60715e710 Simplify sed_i by using fileinput module
This also fixes the problem with the owner:group being set to root
2013-11-22 09:03:48 +01:00
Anders Ingemann
663b868b41 Fix #107. Rename before and after task properties
`before' becomes `successors' and `after' becomes `predecessors'
2013-11-22 09:03:47 +01:00
Anders Ingemann
1db38ec7dd New task for adjusting the expand-volume script
By default it only expands /dev/xvda
2013-10-27 18:11:59 +01:00
Anders Ingemann
a397091e46 Generalize req. host package additions 2013-10-27 18:11:59 +01:00
Anders Ingemann
1b5a1e0579 Fix missing package check
`dpkg-query -W parted` exits with 0 even if it is not installed
2013-10-27 18:11:58 +01:00
Anders Ingemann
a07e02cfcc Add required packages in the right places 2013-10-27 18:11:58 +01:00
Anders Ingemann
e1ab4dc1ae EC2 provider can now bootstrap EBS volumes again
Use tasksets in EC2 provider
2013-10-27 18:11:58 +01:00
Anders Ingemann
ceae489210 Use remount() to create a clean snapshot 2013-10-27 18:11:58 +01:00
Anders Ingemann
b025f6ed35 Refactor remount() into common function 2013-10-27 18:11:57 +01:00
Anders Ingemann
854ab4f202 Make fstab more generic 2013-10-27 18:11:57 +01:00
Anders Ingemann
a3006fbe47 Fix humongous brainfart 2013-10-27 18:11:56 +01:00
Anders Ingemann
d4601f08af Only install gen-hostkeys when sshd is installed 2013-10-27 18:11:56 +01:00
Anders Ingemann
54791268e1 Fix TuneFS task 2013-10-27 18:11:56 +01:00
Anders Ingemann
3dab414561 Final newline in fstab 2013-10-27 18:11:56 +01:00
Anders Ingemann
1bf61770d9 Access fsm states directly 2013-10-27 18:11:56 +01:00
Anders Ingemann
6ddd8809a3 Partitioning fixes 2013-10-27 18:11:55 +01:00
Anders Ingemann
8891a18e4b Remove mount_specials from FSM
It makes modelling the different states more complicated
2013-10-27 18:11:54 +01:00
Anders Ingemann
fc0471f780 Remove init from LOVol, add mount_specials 2013-10-27 18:11:54 +01:00
Anders Ingemann
3993ff23a5 Less verbose checking of installed packages 2013-10-27 18:11:54 +01:00