Commit graph

1471 commits

Author SHA1 Message Date
Anders Ingemann
4180f16656 Implemented cleanup tasks 2013-07-08 23:14:06 +02:00
Anders Ingemann
5949c3c9cc Implemented init script installation 2013-07-08 23:14:06 +02:00
Anders Ingemann
501b336d0e Move ModifyFSTab task to filesystem 2013-07-08 23:14:06 +02:00
Anders Ingemann
14d6f5fb4f Implemented network tasks 2013-07-08 23:14:06 +02:00
Anders Ingemann
9ee096f262 Implement security tasks + minor fixes 2013-07-08 23:14:06 +02:00
Anders Ingemann
953e324ca3 Implemented DisableGetTTYs 2013-07-08 23:14:06 +02:00
Anders Ingemann
8bbf1b3fec Implemented BlackListModules 2013-07-08 23:14:05 +02:00
Anders Ingemann
8fb605e8f2 add ModifyFstab 2013-07-08 23:14:05 +02:00
Anders Ingemann
c187cf6c13 Implemented ConfigureGrub 2013-07-08 23:14:05 +02:00
Anders Ingemann
1a21b4d90e remove superfluous normpath() 2013-07-08 23:14:05 +02:00
Anders Ingemann
93cd8dae67 AptUpgrade depends on GenerateLocale to avoid error messages 2013-07-08 23:14:05 +02:00
Anders Ingemann
6628429732 Move AptSources into apt module 2013-07-08 23:14:05 +02:00
Anders Ingemann
fd4a08c8b5 Implemented apt-upgrade 2013-07-08 23:14:05 +02:00
Anders Ingemann
435084983d tidy up tasks() 2013-07-08 23:14:04 +02:00
Anders Ingemann
4157eefc3c apt sources implemented 2013-07-08 23:14:04 +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
d3ab01f88f Implement initialize() fn for providers and plugins ,silence boto debug 2013-07-08 23:14:04 +02:00
Anders Ingemann
3726d72c68 Implemented MountSpecials 2013-07-08 23:14:04 +02:00
Anders Ingemann
25a017fa35 Validate manifest in plugin, fix rollback error 2013-07-08 23:14:03 +02:00
Anders Ingemann
0c1677eef2 Rollback task for prebootstrapped plugin 2013-07-08 23:14:03 +02:00
Anders Ingemann
6dfdc2ed6d make tasklist.remove() behave like discard() 2013-07-08 23:14:03 +02:00
Anders Ingemann
8479ff4dca Implemented prebootstrapped plugin 2013-07-08 23:14:03 +02:00
Anders Ingemann
b8341c48e4 allow removal of multiple tasks at once 2013-07-08 23:14:03 +02:00
Anders Ingemann
3cf6a20ba4 Unfinished new plugin to speed up bootstrapping process when developing 2013-07-08 23:14:03 +02:00
Anders Ingemann
a471c7ef71 Refactor manifest to allow plugin manifest validation 2013-07-08 23:14:03 +02:00
Anders Ingemann
1b512e08fc Make plugin loading a little prettier 2013-07-08 23:14:02 +02:00
Anders Ingemann
3bf64a6e80 catch keyboard interrupt 2013-07-08 23:14:02 +02:00
Anders Ingemann
1565514018 Trim loglines in log_command() 2013-07-08 23:14:02 +02:00
Anders Ingemann
7789bc6b16 Relative timestamp in logfile 2013-07-08 23:14:02 +02:00
Anders Ingemann
592c218e59 Additional packages should be added via a plugin 2013-07-08 23:14:02 +02:00
Anders Ingemann
a92133edcf Remove rollback remnants 2013-07-08 23:14:02 +02:00
Anders Ingemann
f80b56b02f Simplify imports 2013-07-08 23:14:02 +02:00
Anders Ingemann
b92f70e548 bootstrap task implemented 2013-07-08 23:14:01 +02:00
Anders Ingemann
9aae74b0fa counter tasks for CreateMountDir and MountVolume 2013-07-08 23:14:01 +02:00
Anders Ingemann
4d86ae5bea Implement MountVolume task, catch less exceptions 2013-07-08 23:14:01 +02:00
Anders Ingemann
5418ac87ca Move bootstrapdir requirement to main json schema 2013-07-08 23:14:01 +02:00
Anders Ingemann
29394270c6 Remove tasks not in tasklist from dependency graph
Use filter() for filtering instead of list comprehensions
2013-07-08 23:14:01 +02:00
Anders Ingemann
237dde9285 Remove task.run() it is hiding missing run functions 2013-07-08 23:14:01 +02:00
Anders Ingemann
1214210738 Filesystem tasks 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
4d10f94926 Check for EBS backing the proper way 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
1240294784 Validate volume size is an integer 2013-07-08 23:14:00 +02:00