Commit graph

88 commits

Author SHA1 Message Date
Anders Ingemann
1e0aa634d2 Make admin_user plugin more robust
Don't fail if the ec2-get-credentials script is not installed
Don't fail if SSH server is not installed
2013-12-29 16:50:21 +01:00
James Bromberger
39f5e815b8 Process cloud config tasks only if they are configured. 2013-12-25 12:47:17 +00:00
James Bromberger
7e3527d2af PIP8 ify the latest updates. 2013-12-21 12:26:37 +00:00
James Bromberger
e17bc7ec73 Adjust run ordering of cloud-init config. 2013-12-19 14:21:33 +00:00
James Bromberger
02ef8cabb8 Support auto-configure of cloud-init data sources, with manual override; support specifying modules to disable. 2013-12-19 11:44:34 +00:00
James Bromberger
682b747efc Permit cloud-init to be configured for its metadata sources using debconf. 2013-12-17 15:51:03 +00:00
Anders Ingemann
65e3f37520 Rename image_commands task module to "tasks" 2013-12-15 11:44:36 +01:00
Anders Ingemann
4cca325fb4 Merge remote-tracking branch 'osallou/update_image_commands_to_base' into python
Conflicts:
	plugins/image_commands/__init__.py
	plugins/image_commands/image_commands.py
2013-12-15 11:43:42 +01:00
Olivier Sallou
99b7834611 fix call of ImageCommands, object should not be called, only class should be
remove loopback_file reference, not existing anymore
  filesystem not available anymore, and depends on volume layout so remove the
  execute commands after the user_packages install, else user won't be able to
  call or update installed packages
2013-12-15 08:33:45 +01:00
Anders Ingemann
3ee0c314d6 Remove some required properties from schemas.
They are still required, but it's not really possible run the schemas without these properties being there
2013-12-14 23:18:42 +01:00
Anders Ingemann
3fef39d4d5 Fix EBS part of the prebootstrapped plugin 2013-12-14 23:18:42 +01:00
Anders Ingemann
d3dc44bc48 Rename tasks() to avoid clashes with modules
The functions are now called resolve_tasks() and resolve_rollback_tasks().
A little more verbose function names but also clearer.
2013-12-14 23:18:41 +01:00
Anders Ingemann
6b6ad527ce Reorder plugin init scripts
Let validate_manifest() always be the first function
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
4acde32c5d build_metadata plugin only works with ec2 2013-12-14 23:18:41 +01:00
Anders Ingemann
9628a5015b Remove convert_image plugin
vdi is supported natively
2013-12-14 23:18:40 +01:00
Anders Ingemann
2320b2cb74 cloud-init plugin implemented.
There is no need for the sed plugin any longer
2013-12-14 23:18:40 +01:00
Anders Ingemann
80d1a7ffc0 Minor cleanup 2013-12-14 23:18:40 +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
86fa48f201 Fix image_commands and user_packages plugins 2013-12-14 23:18:39 +01:00
Olivier Sallou
d35b131c8f remove old and unused imports, closes #117 2013-12-13 10:03:17 +01:00
Anders Ingemann
6df7469614 Restrict supported volume backings in prebootstrap 2013-11-22 09:03:48 +01:00
Anders Ingemann
71be571f93 Fix #104. Remove "enabled" from plugin manifests 2013-11-22 09:03:47 +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
d05c97afef Fix indentation for sed plugin 2013-11-22 09:03:47 +01:00
James Bromberger
8a215afac2 Bug fix sed plugin, remove debug from tasks.py. 2013-11-09 13:33:38 +00:00
James Bromberger
8e62ffba24 Remove temp file from sed plugin, adjust official debian manifset file. 2013-11-09 09:19:40 +00:00
Sonny Garcia
c1f47a3dc0 changes MountVolume to MountRoot
this type changed names during a major refactoring for partition support
2013-11-07 17:19:26 -06:00
Sonny Garcia
a1122de27e period was causing plugin to fail 2013-11-07 10:25:49 -06: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
f075d1f2b9 Remove ambiguous tasklist function replace() 2013-10-27 18:11:57 +01:00
Anders Ingemann
aa91bc701f Use add/remove instead of replace in rootpw plugin 2013-10-27 18:11:57 +01:00
Anders Ingemann
38bcb12c72 SetBootMountDir task in prebootstrapped plugin 2013-10-27 18:11:57 +01:00
Anders Ingemann
1bf61770d9 Access fsm states directly 2013-10-27 18:11:56 +01:00
Anders Ingemann
387aa62750 Remove FSM from NoPartitions p-map
Don't set the volume device_path by calling 'create'
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
738ba47c65 Add references instead of instances to the tasklist 2013-10-27 18:11:53 +01:00
Anders Ingemann
a9c465cf8c Minor fixes to paths 2013-10-27 18:11:14 +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
f3b89f08ff Merge pull request #100 from JamesBromberger/python
sed search&replace plugin
2013-10-07 23:53:35 -07:00
root
56e13fbe56 Sed the config file for cloud-init. 2013-10-07 13:22:08 +00:00
Olivier Sallou
c924d500fe add new plugin image_commands to execute cmd or scripts in image 2013-09-09 22:55:14 +02: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
Anders Ingemann
e1fc5ea972 Use long options wherever possible.
This makes the code a lot easier to understand
2013-08-17 15:00:53 +00:00
Anders Ingemann
3630d72f0a Use absolute paths everywhere 2013-08-17 15:00:25 +00:00