Anders Ingemann
c0021e0c46
Merge pull request #121 from osallou/cleanup_dirs
...
if tmp contains directories, cleanup task fails. Add management for directories too
2013-12-15 02:34:24 -08:00
Olivier Sallou
14b60bd364
if tmp contains directories, cleanup task fails. Add maanagement for directories
2013-12-15 08:31:15 +01:00
Anders Ingemann
06e7f61d8c
Revert "Remove extension property from volumes"
...
This reverts commit c454114a22
.
2013-12-15 00:51:51 +01:00
Anders Ingemann
293557827f
Fix PEP8 style fixes
2013-12-14 23:18:43 +01:00
Anders Ingemann
c454114a22
Remove extension property from volumes
2013-12-14 23:18:42 +01:00
Anders Ingemann
b03fbb6dad
Don't resolve device_path
...
grub does that automatically
2013-12-14 23:18:42 +01:00
Anders Ingemann
0a49901476
Implement hvm support for ec2
2013-12-14 23:18:41 +01:00
Anders Ingemann
668b9896c1
Modularize init script installation
...
Don't install various init scripts when using cloud-init
2013-12-14 23:18:41 +01:00
Anders Ingemann
6138f88ab9
New plugin: "packages"
...
It combines features from the user_packages and backports plugin,
so they are not needed any longer.
2013-12-14 23:18:40 +01:00
Anders Ingemann
2af0968156
Implement partition mounts.
...
This solves quite a few challenges with mounting directories into root etc.
2013-12-14 23:18:39 +01:00
Anders Ingemann
2e29ac0f93
Rename expand-volume script to expand-root
...
Also move task for adjustment of that script into common.
It still needs some modifications to support device names other than xvda
2013-11-22 09:03:48 +01:00
Anders Ingemann
a1d465ea16
Fix DisableGetTTYs task to disable tty6 as well
2013-11-22 09:03:48 +01:00
Anders Ingemann
a60715e710
Simplify sed_i by using fileinput module
...
This also fixes the problem with the owner:group being set to root
2013-11-22 09:03:48 +01:00
Anders Ingemann
663b868b41
Fix #107 . Rename before and after task properties
...
`before' becomes `successors' and `after' becomes `predecessors'
2013-11-22 09:03:47 +01:00
Anders Ingemann
1db38ec7dd
New task for adjusting the expand-volume script
...
By default it only expands /dev/xvda
2013-10-27 18:11:59 +01:00
Anders Ingemann
a397091e46
Generalize req. host package additions
2013-10-27 18:11:59 +01:00
Anders Ingemann
1b5a1e0579
Fix missing package check
...
`dpkg-query -W parted` exits with 0 even if it is not installed
2013-10-27 18:11:58 +01:00
Anders Ingemann
a07e02cfcc
Add required packages in the right places
2013-10-27 18:11:58 +01:00
Anders Ingemann
e1ab4dc1ae
EC2 provider can now bootstrap EBS volumes again
...
Use tasksets in EC2 provider
2013-10-27 18:11:58 +01:00
Anders Ingemann
ceae489210
Use remount() to create a clean snapshot
2013-10-27 18:11:58 +01:00
Anders Ingemann
b025f6ed35
Refactor remount() into common function
2013-10-27 18:11:57 +01:00
Anders Ingemann
854ab4f202
Make fstab more generic
2013-10-27 18:11:57 +01:00
Anders Ingemann
a3006fbe47
Fix humongous brainfart
2013-10-27 18:11:56 +01:00
Anders Ingemann
d4601f08af
Only install gen-hostkeys when sshd is installed
2013-10-27 18:11:56 +01:00
Anders Ingemann
54791268e1
Fix TuneFS task
2013-10-27 18:11:56 +01:00
Anders Ingemann
3dab414561
Final newline in fstab
2013-10-27 18:11:56 +01:00
Anders Ingemann
1bf61770d9
Access fsm states directly
2013-10-27 18:11:56 +01:00
Anders Ingemann
6ddd8809a3
Partitioning fixes
2013-10-27 18:11:55 +01:00
Anders Ingemann
8891a18e4b
Remove mount_specials from FSM
...
It makes modelling the different states more complicated
2013-10-27 18:11:54 +01:00
Anders Ingemann
fc0471f780
Remove init from LOVol, add mount_specials
2013-10-27 18:11:54 +01:00
Anders Ingemann
3993ff23a5
Less verbose checking of installed packages
2013-10-27 18:11:54 +01:00
Anders Ingemann
3c32310346
Remove mountpoints from partitions
2013-10-27 18:11:54 +01:00
Anders Ingemann
ecdc255752
Simplify FSM framework. Only model relevant states
2013-10-27 18:11:53 +01:00
Anders Ingemann
c756eb3f74
Introduce task-sets to combat the unwieldy amount of tasks
2013-10-27 18:11:53 +01:00
Anders Ingemann
885ace7b48
Updates to networking in vbox
2013-10-27 18:11:53 +01:00
Anders Ingemann
5dcec10d65
Minimize required image packages
2013-10-27 18:11:52 +01:00
Anders Ingemann
53991bdad7
Rename loopback image to volume
2013-10-27 18:11:52 +01:00
Anders Ingemann
d6502089e2
Implemented both MBR and GPT partitioning.
...
VirtualBox seems to not like GPT
2013-10-27 18:11:14 +01:00
Anders Ingemann
a9c465cf8c
Minor fixes to paths
2013-10-27 18:11:14 +01:00
Anders Ingemann
efecc15382
VDI images working now
...
*Helpful error messages included
2013-10-27 18:11:13 +01:00
Anders Ingemann
6fb60a33f0
Get the loop device name in a less dramatic way
2013-10-27 18:11:13 +01:00
Anders Ingemann
c917c3bd65
Log commands executed
2013-10-27 18:11:13 +01:00
Anders Ingemann
0eb5eecfc2
Place everything in info.workspace
...
instead of spreading files all around the disk
2013-10-27 18:11:13 +01:00
Anders Ingemann
9cb4b3e375
Rename mount_dir to workspace
...
We'll be using it for a bucnh of different things in the future
2013-10-27 18:11:13 +01:00
Anders Ingemann
ff7c04c120
Support for partitions
...
MAJOR refactor. The volume is now abstracted into a model along with a partitionmap and partitions.
Volumes and partitions are now controlled via an FSM to ensure that commands are called in the proper sequence.
GRUB can now be installed properly onto loop devices by using dmsetup to fake a proper harddisk.
2013-10-27 18:11:12 +01:00
Anders Ingemann
c1e931df5e
Fix bug where log_call would not read all lines
2013-10-27 18:10:44 +01:00
Anders Ingemann
4b293db5d6
Merge pull request #98 from JamesBromberger/python
...
Do a regular expression replace instead of exact string search and replace
2013-09-23 11:49:29 -07:00
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