Commit graph

164 commits

Author SHA1 Message Date
root
e04541587a Do a regular expression replace instead of exact string search and replace. 2013-09-23 16:14:38 +00:00
Anders Ingemann
e6ec040b27 Remove image conversion phase.
Maybe image_registration should be renamed?
2013-08-17 22:54:24 +02:00
Anders Ingemann
b5c5acf5b1 PEP8-ify things. 2013-08-17 17:28:46 +02:00
Anders Ingemann
e1fc5ea972 Use long options wherever possible.
This makes the code a lot easier to understand
2013-08-17 15:00:53 +00:00
Anders Ingemann
e4e6035eb2 Attach image to loopdevice in one command 2013-08-17 16:38:43 +02:00
Anders Ingemann
5864665b1f Make mirror param in manifest optional 2013-08-17 16:04:20 +02:00
Anders Ingemann
d7f4849877 Rename input argument to stdin 2013-08-17 16:04:20 +02:00
Anders Ingemann
8402a3afb2 update-locale call added to locale task 2013-08-17 16:04:20 +02:00
James Bromberger
d716baadfb Do permissions changes in a nicer way for sed_i. 2013-08-17 08:23:51 +00:00
Olivier Sallou
398a4da313 make mirror mandatory in manifest 2013-08-13 10:43:29 +02:00
Olivier Sallou
3dd3e00e5c add plugin to convert raw images to vdi,qcow etc... 2013-08-13 10:36:32 +02:00
Olivier Sallou
afa9352d85 set mirror in bootstrapper instead of image 2013-08-13 09:52:03 +02:00
Olivier Sallou
3e11431353 fix grub/boot 2013-08-13 08:55:12 +02:00
Olivier Sallou
1b9f39a803 add mirror attribute management 2013-08-12 16:05:21 +02:00
Anders Ingemann
2fd8e643fc Run apt-get upgrade before we remove resolv.conf
This way we can still resolve domain names even when running chrooted
2013-08-11 23:46:22 +02:00
Anders Ingemann
7a93002b2d Parted tasks and grub installation working now 2013-08-11 23:03:44 +02:00
Anders Ingemann
cecdeba45f Remove virtio special case
Adding it later, once I figure out wth it is.
2013-08-11 19:47:14 +02:00
Anders Ingemann
014488e6c9 Fix parted task ordering 2013-08-11 18:33:35 +02:00
Anders Ingemann
e5d3b4ac65 Fix loopback tasks ordering 2013-08-11 18:26:01 +02:00
Anders Ingemann
7318240f59 Better error message on task order errors 2013-08-11 18:25:05 +02:00
Anders Ingemann
e18cc4ca75 Fix imports 2013-08-11 18:00:19 +02:00
Anders Ingemann
6b2abd8634 Fix MapPartitions after[] reference 2013-08-10 23:02:16 +02:00
Anders Ingemann
7e32263315 Generalize parted feature
Remove filesystem module from ONE tasks
2013-08-10 20:03:20 +02:00
Anders Ingemann
b9e0714056 Specify filesystem when mounting 2013-08-10 19:27:18 +02:00
Anders Ingemann
0785e21ab0 Move parts of packages task module into common tasks 2013-08-10 19:01:54 +02:00
Anders Ingemann
1b329d1082 Move host task to common tasks 2013-08-10 17:20:10 +02:00
Anders Ingemann
15e59ab2c8 __init__.py cleanups 2013-08-10 17:15:51 +02:00
Anders Ingemann
ec6639c8be Move security task to common tasks
Converted root pw task to plugin
2013-08-10 17:12:58 +02:00
Anders Ingemann
5ae3d92a22 Move some of the ec2 initd stuff to common tasks 2013-08-10 16:51:42 +02:00
Anders Ingemann
9de7793a92 Move filesystem and loopback task modules to common 2013-08-10 16:38:45 +02:00
Anders Ingemann
6c6f50c03e Remove network and locale tasks to common 2013-08-10 16:27:43 +02:00
Anders Ingemann
b36e611742 Move cleanup tasks to common tasks module 2013-08-10 16:24:12 +02:00
Anders Ingemann
8767e414ac Move bootstrap.py to common tasks.
Reverted bootstrap task to use geo-redirector as mirror.
2013-08-10 16:22:16 +02:00
Anders Ingemann
0f9fc75182 Generalized "boot" task module.
Keeping ConfigureGrub provider specific for now
2013-08-10 16:18:48 +02:00
Anders Ingemann
4913296480 Moved apt to common tasks.
Reverted one mirror to use the geo-redirector.
2013-08-10 16:15:49 +02:00
Anders Ingemann
6c8231c24c Create new tasks module in common 2013-08-10 15:54:47 +02:00
Olivier Sallou
cd6e10c6a1 Merge branch 'python' of https://github.com/andsens/build-debian-cloud into python 2013-07-31 08:03:08 +02:00
Anders Ingemann
135ebfbb95 Return stdout in log_check_call 2013-07-13 15:12:45 +02:00
Olivier Sallou
6c81ee2f8c allow to PIPE some input to command 2013-07-10 16:33:35 +02:00
Anders Ingemann
f0e3d45e21 Logging fixes 2013-07-08 23:14:04 +02:00
Anders Ingemann
0fc535cb29 log_call uses own logger now 2013-07-08 23:14:04 +02:00
Anders Ingemann
a26c83fc93 use log_check_call everywhere 2013-07-08 23:14:04 +02:00
Anders Ingemann
0ed091ca1c Implemented GenerateLocales and SetTimezone 2013-07-08 23:14:04 +02:00
Anders Ingemann
1565514018 Trim loglines in log_command() 2013-07-08 23:14:02 +02:00
Anders Ingemann
b92f70e548 bootstrap task implemented 2013-07-08 23:14:01 +02:00
Anders Ingemann
ba461a815c Rename TaskException to TaskError, use it when checking installed packages 2013-07-08 23:14:01 +02:00
Anders Ingemann
442397fb2e Way better rollback architecture through improvements in flexibility 2013-07-08 23:14:00 +02:00
Anders Ingemann
2135cdbc1a PEP8 fixes 2013-07-08 23:14:00 +02:00
Anders Ingemann
96028f96e1 Various improvements and additions.
I couldn't be bothered to untangle this, so here it goes:
* Log colors depending on loglevel
* Simplified Filelogger
* Remove description=None from basetask
* create_list creates task list from argument now
* Task rollback feature: If a task fails, the tasklist calls rollback() on the completed tasks in reverse order
* Added TaskException to common.exceptions as a base to extend from
* Added TriggerRollback task to common.tasks for development purposes
* An EBS volume for bootstrapping is now created and attached to the instance (including rollback actions)
* EC2 Connect task now depends on host.GetInfo
2013-07-08 23:14:00 +02:00
Anders Ingemann
c7625f85d8 Move EC2 VolumeError out of common 2013-07-08 23:14:00 +02:00