Anders Ingemann
901d0845bf
Bootstrapping of instance store AMIs implemented
2013-07-15 00:01:07 +02:00
Anders Ingemann
d0970f77fe
Use local-gen instead of dpkg-reconfigure locales
...
locale-gen is more direct and does not produce an stderr output
2013-07-14 23:55:23 +02:00
Anders Ingemann
f9372ce97e
Began work on S3 backed instances. Refactored adding tasks.
...
Got stuck on the bundle image call, it uses argparse.
Somehow we need to fake the arguments.
2013-07-13 15:13:03 +02:00
Anders Ingemann
9f85cdf909
Remove 'Volume' part from ebs tasks.
...
It's kind of obvious that we are working with volumes in the ebs module.
2013-07-13 15:12:45 +02:00
Anders Ingemann
554d99fc7f
Move kernel mapping out of run()
2013-07-13 15:12:45 +02:00
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
20587148f4
implemented CreateSnapshot
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
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
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
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
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
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