Anders Ingemann
e355e99189
Ensure the volume size is a multiple of 1024 when using EBS
2013-07-09 21:30:39 +02:00
Anders Ingemann
4e2503ad9c
Put task class properties in identical order
2013-07-09 20:32:50 +02:00
Anders Ingemann
1acd86a85a
Remove after = [Connect] from CreateVolume.
...
Connect & CreateVolume do not run in the same phase,
so the order is a given.
2013-07-09 20:24:08 +02:00
Anders Ingemann
b444b9ebf3
Remove lsof as a required package
2013-07-08 23:14:08 +02:00
Anders Ingemann
3a95740e6c
Actually get MakeTarball to spit out the same sha twice in a row
2013-07-08 23:14:08 +02:00
Anders Ingemann
d6e6dbb4ee
Fix weird exit status from debootstrap
2013-07-08 23:14:08 +02:00
Anders Ingemann
6f7978a465
Actually make MakeTarball useful
2013-07-08 23:14:08 +02:00
Anders Ingemann
5dd8c27c6a
ImageRegistration task implemented
2013-07-08 23:14:08 +02:00
Anders Ingemann
58e560a893
All cli calls now use absolute paths
2013-07-08 23:14:07 +02:00
Anders Ingemann
7c2f248649
Wrap EBS specific tasks in an if block
2013-07-08 23:14:07 +02:00
Anders Ingemann
20587148f4
implemented CreateSnapshot
2013-07-08 23:14:07 +02:00
Anders Ingemann
5acd0a0dc3
Add unmount tasks to tasklist
...
squash! Add unmount tasks to tasklist
2013-07-08 23:14:07 +02:00
Anders Ingemann
f5a2acf128
Remove usage of glob
2013-07-08 23:14:07 +02:00
Anders Ingemann
6671a67d9b
Implemented APT cleanup
2013-07-08 23:14:07 +02:00
Anders Ingemann
ba1fd93308
Pulled disabling of daemonautostart into separate task
2013-07-08 23:14:07 +02:00
Anders Ingemann
eec41422fc
sprinkle some newlines around
2013-07-08 23:14:07 +02:00
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
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
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
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