Commit graph

52 commits

Author SHA1 Message Date
Veli-Matti Lintu
2a741a81bf Explicitly define None as the default value for missing kms_key_id key
in manifest. None should be returned by default, but this makes it
easier to see.
2018-06-14 09:38:36 +03:00
Veli-Matti Lintu
8e24c5e795 Add support for encrypted AMIs that can be used to launch instances
with encrypted boot volume.
2018-06-12 14:21:37 +03:00
Carlos Meza
4e1864aa2b fix pylint W0403(relative-import) paths 2018-02-25 08:37:17 +00:00
Carlos Meza
6e183914ac fix pylint W0403(relative-import) 2018-02-25 04:12:24 +00:00
Anders Ingemann
df32bf4792
ec2: Move cloud-init mount tuning to cloud-init plugin
Fixes #406
2017-11-09 20:16:19 +01:00
Marcin Kulisz
07c66e9030 EC2 provider: added ENA driver (installing with +
enhanced_networking set to simple)
2017-01-19 18:53:26 +00:00
Marcin Kulisz
5267d95360 Added AMI tagging for AWS provider +
* minor syntax fixes
* added official Stretch manifest
2016-10-31 15:26:17 +00:00
Marcin Kulisz
c3a6d4f232 Backports should be available for all releases <= stable 2016-09-24 19:05:29 +01:00
Marcin Kulisz
ee64a87889 Stretch (9.0) patch #2 - EC2: Removing backports +
if release >= jessie and not stable
2016-09-24 19:03:28 +01:00
Nicolas Braud-Santoni
90da634226
Systematically use rel_path for relative paths 2016-09-12 19:11:20 +02:00
Anders Ingemann
96086329e6 ec2: Only enable systemd when grub is the bootloader
Right now we can only properly edit the linux bootparams,
when using grub. This should be fixed so that it works for extlinux
as well.

Fixes #328
2016-06-08 16:55:56 +02:00
Anders Ingemann
98de220f78 ec2: Add tasks for EC2 tuning
Snatched from PR #256 by @JamesBromberger
2016-06-05 10:45:19 +02:00
Anders Ingemann
cd969b5427 ec2: Fix for 9d2ad17, use tasks.grub not grub 2016-06-04 19:32:03 +02:00
Anders Ingemann
a5f5b9ef3a ec2: Fix PVM grub console output 2016-06-04 19:26:31 +02:00
Anders Ingemann
9d2ad17d09 ec2: Enable systemd on >=jessie 2016-06-04 19:20:31 +02:00
Anders Ingemann
cf6234bafd Split grub config into small tasks
The way boot options for linux and config params for grub
were configured gave rise to quite a few bugs.
The configuration has now been abstracted so that
options can be added without interfering with the work
of other tasks (no more sed_i!)
2016-06-04 18:48:54 +02:00
Anders Ingemann
f62c8ade99 Convert indentation from tabs to spaces (4)
Up until now I didn't see the point of using spaces for indentation.
However, the previous commit (a18bec3) was quite eye opening.
Given that python is an indentation aware language, the amount of
mistakes that went unnoticed because tabs and spaces were used
at the same time (tabs for indentation and spaces for alignment)
were unacceptable.

E101,W191 have been re-enable in the tox flake8 checker and
the documentation has been modified accordingly.

The following files have been left as-is:
* bootstrapvz/common/assets/extlinux/extlinux.conf
* bootstrapvz/common/assets/init.d/expand-root
* bootstrapvz/common/assets/init.d/generate-ssh-hostkeys
* bootstrapvz/common/assets/init.d/squeeze/generate-ssh-hostkeys
* bootstrapvz/plugins/docker_daemon/assets/init.d/docker
* bootstrapvz/providers/ec2/assets/bin/growpart
* bootstrapvz/providers/ec2/assets/grub.d/40_custom
* bootstrapvz/providers/ec2/assets/init.d/ec2-get-credentials
* bootstrapvz/providers/ec2/assets/init.d/ec2-run-user-data
* docs/_static/taskoverview.coffee
* docs/_static/taskoverview.less
* tests/unit/subprocess.sh
2016-06-04 11:38:16 +02:00
Zach Marano
108fa9547e Move the >=jessie workaround out of the common task. 2016-03-03 10:14:02 -08:00
Zach Marano
3f208b985f Move hack for growpart to its own task. 2016-03-02 16:19:57 -08:00
Jesse Szwedko
4e94880b2a Only add growpart workaround on >= Jessie
Works on previous distributions

Signed-off-by: Andrew Garrett <andrew.garrett@getbraintree.com>
2016-01-12 18:46:26 +00:00
Jonh Wendell
c477c32e4a EC2: Added growpart script
This is an attempt to fix issue #237

The script "growpart" was added as an asset, because
Debian's Jessie version (inside cloud-utils) package is
outdated and buggy.

Then "expand-root" init script was modified to call growpart
before calling resize2fs. In fact, calling resize2fs without
resizing the partition first is useless.

The task was named 'AddWorkaroundGrowpart' because it must
go away in the future in favor of using recent stuff in cloud-utils.

Currently even the official images suffer this issue, that makes
the system use only 8 GiB, even if the user chooses a bigger
storage size inside AWS.
2016-01-12 18:46:20 +00:00
James Bromberger
f1010b11ae Support multiple ENI. 2015-07-30 10:05:44 +02:00
Anders Ingemann
9a58277619 Factor DHCPCD installation out into separate task 2015-07-30 09:40:37 +02:00
Jonh Wendell
e390d91c05 Ec2: Add the variable "install_init_scripts"
To control whether ec2 init scripts should be installed
on the image. Defaults to true, to keep current behaviour.
2015-06-14 17:32:50 -03:00
Anders Ingemann
989f33c226 Kill the initalize() function. Nobody uses it except ec2
The boto debug messages are now silenced with a task.
2015-05-03 12:31:44 +02:00
Anders Ingemann
d9adb293eb Simplify enhanced networking check 2015-04-16 22:22:48 +02:00
Anders Ingemann
d81ac0972f Simpler checks for manifest support 2015-04-16 22:22:48 +02:00
Anders Ingemann
97ad69df5e extlinux now works with gpt on hvm instances 2015-04-16 22:22:47 +02:00
Anders Ingemann
736852a959 Enable grub for hvm AMIs 2015-04-16 22:22:47 +02:00
Anders Ingemann
8364f824b0 Fix typo 2015-04-16 22:22:47 +02:00
Anders Ingemann
7f84e405f0 Cast to int before comparing in ec2 validate_manifest() 2015-04-16 22:21:42 +02:00
Anders Ingemann
5823c9119b Split grub and extlinux installs into separate modules 2015-04-16 22:21:12 +02:00
Noah Fontes
4093693c2e Add support for enhanced networking on EC2.
This change adds a provider option, enhanced_networking,
which installs the Intel virtual networking driver for
SR-IOV using DKMS. It also modifies the EC2 AMI registration
to include support for SR-IOV.
2014-11-29 13:46:57 -08: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
Anders Ingemann
02c683120a Refactor tasklist for easier integration by taskoverview 2014-05-10 17:28:31 +02:00
Anders Ingemann
a3b84737f1 HVM AMIs only work when EBS backed right now.
S3 backed AMIs only work when they are unpartitioned.
Remove json schema restriction and add some nicer messages in the validation function
2014-05-04 13:46:40 +02:00
Anders Ingemann
612fe46186 Add restriction on partition type for HVM AMIs 2014-05-04 13:41:16 +02:00
Anders Ingemann
3e4882128e Fix wrong bootloader vs. virtualization check 2014-05-04 13:41:16 +02:00
Anders Ingemann
40f208c151 Fix AdjustExpandRootScript
Also, only add it when it is required
2014-05-04 13:41:16 +02:00
Anders Ingemann
e68ed9b66c Fix import errors, again.
(A rebase swallowed a commit somewhere)
2014-05-03 17:04:37 +02:00
Anders Ingemann
7958950d19 Generalize "grub only on partitioned volumes" err
(move it into base manifest validation)
2014-05-03 16:13:49 +02:00
Anders Ingemann
0a2cd86b4b Add get_standard_rollback_tasks()
This simplifies the the providser rollback_tasks fn considerably
2014-05-03 16:13:49 +02:00
Anders Ingemann
6d2a52f7a0 Create security group (part of standard group) 2014-05-03 16:13:46 +02:00
Anders Ingemann
c0292bf526 Remove unused imports 2014-05-03 16:13:09 +02:00
Anders Ingemann
d5efec8885 Add ssh_group, which configures SSH properly 2014-05-03 16:13:07 +02:00
Anders Ingemann
c81045cc6e Simplify adding tasks
There is now a get_standard_groups function
2014-05-03 16:12:35 +02: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
Tiago Ilieve
fe6a5047cd Rename task_sets to task_groups
This closes #17
2014-04-26 17:13:41 -03:00
Tiago Ilieve
18fce45d91 Move hostname setting from vagrant into common
This closes #19.
2014-04-13 21:18:02 -03:00