Commit graph

32 commits

Author SHA1 Message Date
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
Anders Ingemann
29b52a6a70 Create volume 2013-07-08 23:14:00 +02:00
Anders Ingemann
79a699a360 Better schema validation and errors 2013-07-08 23:13:59 +02:00
Anders Ingemann
88ebeadd25 fix phases and their ordering 2013-07-08 23:13:59 +02:00
Anders Ingemann
0f29b3d0e2 Cycle detection and topological sorting 2013-07-08 23:13:59 +02:00
Anders Ingemann
1e4af40b3c Task dependencies, bogus implementation 2013-07-08 23:13:59 +02:00
Anders Ingemann
5689b77011 Manifest validation, simplified main run fn 2013-07-08 23:13:58 +02:00
Anders Ingemann
aa86b75974 Rename common module to base 2013-07-08 23:13:57 +02:00
Anders Ingemann
f0dec6d6af Keep TaskList inside common module 2013-07-08 23:13:57 +02:00
Anders Ingemann
a68511c1d5 reduce visibility of some submodules 2013-07-08 23:13:57 +02:00
Anders Ingemann
2a3b450e3f prettier module defs 2013-07-08 23:13:57 +02:00
Anders Ingemann
6230684c62 Refactor ec2 provider a bit 2013-07-08 23:13:57 +02:00
Anders Ingemann
ef343016f0 Remove commandline arguments, run solely on manifest file 2013-07-08 23:13:57 +02:00
Anders Ingemann
e63e2cca0c Plugin architecture working 2013-07-08 23:13:56 +02:00
Anders Ingemann
4dbdb387cd Basic structure up and running 2013-07-08 23:13:56 +02:00