Commit graph

197 commits

Author SHA1 Message Date
Anders Ingemann
a1e17841d3 Fix usage of virtualization reference in manifests 2014-07-12 19:58:25 +02:00
Anders Ingemann
03a0746299 Convert every JSON file to YAML
Lines removed: over 500. Readiblity gained: A shitload
Now you can actually get an overview of a manifest on a single screen height.
I am sure that it will also save a lot of hassle when modifying schema in the future.
No more "expected property name" etc. because of an extraneous comma
Comments are of course natively support, so there's no need for this minify_json hokey pokey
2014-07-09 23:17:04 +02:00
Anders Ingemann
ebba39f59b Convert "provider" into provider specific section
This is where all provider specific settings belong
like waagent on azure, guest additions iso path on vbox and virtualization type on ec2
2014-07-09 23:17:04 +02:00
Jimmy Kaplowitz
49475292d7 Split GCE manifest into regular & backports
Some people want the security team-supported 3.2 kernel, while others
want the better performance of the backports kernel. Both flavors are
currently provided in the Google Compute Engine debian-cloud project.

Also add OpenSSH to the backports flavor, for parity with the current
GCE backports image based on build-debian-cloud. This backport is
included for performance reasons, in line with the purpose of that image
flavor, and as discussed on the debian-cloud list.
2014-05-11 05:33:41 -07:00
Anders Ingemann
056f1968c1 Fixes #14 and #78
S3 images can now be bootstrapped outside EC2.
However, this fix adds the requirement of a "region" setting.
At some point we could make "region" optional and fail when bootstrap-vz
is run outside EC2 and no "region" is set.
2014-05-03 16:12:34 +02:00
Tomasz Rybak
b327823261 Add Google Cloud Engine (GCE) provider:
* force kpartx to use synchronous mode, removing sleep(10)
 * get image configuration, use it during tarball creation and registration
 * add (non-working, path problems) image registration
 * add cleaning of image from Google keys and repositories
 * add NTP server address in manifest
 * add preference for backport kernels in manifest
 * disable IPv6
 * correctly set host name
2014-05-03 14:25:54 +02:00
Rory Finnegan
128bce8fff Added manifest checking tests.
Overview:
1) fixed up .gitignore file to use absolute paths (to project dir).
2) updated tox to run both manifest tests and flake8
3) updated yml file cause NULL for aws credentials causes an error on validation.
4) actually added the tests under tests/integration
2014-04-30 17:21:32 -05:00
Tiago Ilieve
18fce45d91 Move hostname setting from vagrant into common
This closes #19.
2014-04-13 21:18:02 -03:00
Olivier Sallou
b04bda220a Download Waagent archive instead of using git repo.
Specify the version in the manifest (system/waagent section)
Add possibility to specify waagent conf file in manifest (system/waagent section)
Update documentation to match changes

Use log_check_call instead of log_call

refactor test on dictionary key
2014-04-09 18:03:29 +02:00
Anders Ingemann
c154347849 Alignment in azure mnfst 2014-04-08 21:26:15 +02:00
Anders Ingemann
0bc745ea94 Remove plugin enabled flag from kvm mnfst 2014-04-08 21:26:15 +02:00
Anders Ingemann
71b28af3bd Merge branch 'master' into development 2014-04-08 20:03:26 +02:00
Rory Finnegan
4b5c2d8c5f Added YAML config support.
- Manifest format parsing is now checked by the file extension ie: .json, .yml or .yaml.
- load_yaml in common/tools is the same as the json version.
- schema checking of manifest still passes (and fails appropriately) like the json manifests.
- I've also included a sample yaml config based off of the debian test json manifest.
2014-04-08 14:45:12 +00:00
James Bromberger
9c759fe8bf ASwitch manifests ot explicitly use Ec2 for metadata. Swap S3 to use a 4GB root FS. 2014-04-08 12:34:25 +00:00
James Bromberger
b034ca8ed1 Correct merge/rebase. Fix handling of console to hvc0. Try and pre-seed cloud-init. 2014-04-08 10:09:02 +00:00
Olivier Sallou
fb5d630c9b add azure provider 2014-04-08 08:53:26 +02:00
James Bromberger
334ef9209b Merge remote-tracking branch 'upstream/master'
Conflicts:
	bootstrapvz/common/tasks/apt.py
2014-04-05 09:38:21 +00:00
Anders Ingemann
33a430566b bootstrap-vz is now a proper python package
logs/ was remove. logs are now placed in /var/logs/bootstrap-vz instead
2014-04-02 23:25:50 +02:00
Anders Ingemann
be96e4c13f Move code into proper package folder 2014-04-02 21:26:13 +02:00
James Bromberger
9517f8cd42 Manifest files for Squeeze (now oldstable). 2014-03-23 08:56:48 +00:00
Anders Ingemann
6c18bca05a Move virtio module list into "system". Fixes #5 2014-02-27 23:02:58 +01:00
Anders Ingemann
7ef63ad072 Set hostname to localhost in vagrant manifest 2014-02-26 18:25:15 +01:00
James Bromberger
d11aee0e3e Add S3 backed AMI manifest for China (Beijing). 2014-02-08 18:46:23 +00:00
James Bromberger
628957c304 Add PVM manifest file for China (amd64). 2014-02-08 18:37:10 +00:00
James Brombegrer
b64ad495ab Only delete files form the image if they exist. Add in an HVM manifest file. 2014-02-07 17:42:45 +00:00
Anders Ingemann
6926977a30 Merge pull request #134 from osallou/add_kvm_provider
add KVM provider with virtio support
2014-02-03 08:23:50 -08:00
Olivier Sallou
f4ecac900f add KVM provider with virtio support 2014-02-01 16:50:46 +01:00
Tomasz Rybak
f3195b5f6b Add example testing manifest and configuration, fix apt sources configuration. 2014-01-25 16:49:59 +01:00
Tomasz Rybak
99ae9988ff Add testing distribution and ability to use non-main sections. 2014-01-25 15:52:58 +01:00
Anders Ingemann
a840dc28f3 MBR-gap, grub and GPT offset are now subtracted
automatically from the first available partition.
There is no need to fiddle with sizes while keeping the offsets in mind any longer.
Introduced Bytes() class which makes it a lot easier to handle size units.
2014-01-19 13:21:35 +01:00
Anders Ingemann
81a4ec78eb Post-MBR size increased to 2.
Also, move the size addition into the volume model
2014-01-18 23:35:21 +01:00
Anders Ingemann
889812b1ad Rename MBR partition table to MSDOS
Calling it MBR is just confusing
2014-01-18 23:27:52 +01:00
Tomasz Rybak
4b9d801734 Allow for building unstable release images. 2014-01-12 21:18:51 +01:00
Anders Ingemann
dcae0e156e Vagrant plugin creates its own user etc. now
There is no need to rely on other plugins any longer
2014-01-12 12:44:32 +01:00
Anders Ingemann
44f3296426 Extlinux support
The bootloader is now specified in the manifest
2014-01-05 02:25:28 +01:00
Anders Ingemann
68368b1782 Use cloudfront mirror in ec2 manifests 2014-01-05 02:25:28 +01:00
Anders Ingemann
d9a7f3d1e4 Make plugins key a required manifest property 2014-01-05 02:25:26 +01:00
Anders Ingemann
31f3a71464 New plugin: vagrant
Example manifest file also added
2014-01-05 02:25:26 +01:00
Anders Ingemann
4ffb533625 Use new package handling in the cloud-init plugin
This saves quite a few "package" lines in the manifest
2014-01-05 02:24:29 +01:00
Anders Ingemann
8d32339fda Introduced a global manifest_vars dictionary
All manifest entries can now be accessed from the manifest itself
2013-12-29 20:58:06 +01:00
Anders Ingemann
1c93094833 Integrated package plugin with base system
New phase introduced "package installation" (fixes #114)
Apt source lines are now parsed, this allows to verify the target release of added packages.
All packages (except locales) are now installed *after* bootstrapping (fixes #123)
Added env argument to log_(check_)call
HostDependencies have been refactored a little
2013-12-29 20:58:06 +01:00
James Bromberger
d9dacc5d41 Simplify the description, make the AMI name have the year and the fact it is ebs. 2013-12-20 15:04:22 +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
d0ec90f491 Support installation of VirtualBox Guest Additions 2013-12-15 17:25:57 +01:00
Anders Ingemann
0a49901476 Implement hvm support for ec2 2013-12-14 23:18:41 +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
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
2b05fe977d Remove tarball flag from default vbox manifest 2013-11-22 09:03:47 +01:00