Commit graph

76 commits

Author SHA1 Message Date
Carlos Meza
1ec736038c pylint E1608(old-octal-literal) 2018-04-09 22:27:43 -07:00
Carlos Meza
6e183914ac fix pylint W0403(relative-import) 2018-02-25 04:12:24 +00:00
Anders Ingemann
1d755abfc6
Merge pull request #449 from CMeza99/remove_eol
Remove squeeze support
2018-02-08 09:45:19 +01:00
Carlos Meza
a3584e6de9 remove squeeze support 2018-02-08 06:02:20 +00:00
Carlos Meza
0e199f8ec1 select version for amzn-driver 2018-02-07 02:17:33 +00:00
Carlos Meza
2fda782fff add ability to use profile for ec2 provider 2018-01-24 06:43:56 +00:00
Carlos Meza
c1d9f5d50b update intel ixgbevf url 2017-12-19 18:03:25 -08:00
Anders Ingemann
fc8b8ab9a5
ec2: re-add 'copy' import from shutils 2017-11-09 20:18:16 +01:00
Anders Ingemann
df32bf4792
ec2: Move cloud-init mount tuning to cloud-init plugin
Fixes #406
2017-11-09 20:16:19 +01:00
Jose Porcel
b2cc807475 #397 fix: Installing enhanced networking kernel driver using DKMS fails in stretch 2017-09-15 17:03:05 +01:00
Guillaume Plessis
7234be601b Fix flake8 tests 2017-08-23 14:42:31 -07:00
Guillaume Plessis
cb886fe3d6 Don’t crash on empty AMI name 2017-08-23 12:58:23 -07:00
Christopher Grim
c87aa22069 EC2: Update the URL to dowload the ixgbevf driver
The URL for the ixgbevf driver is currently returning a 404. Updating
to the new mirror URL gets EC2 builds with enhanced networking support
working again.
2017-03-15 16:57:44 -04:00
Anders Ingemann
6e4722c011
Remove '*****' from InstallENANetworking task desc. 2017-01-23 23:14:39 +01:00
Marcin Kulisz
673260ec63 EC2 provider: fixing snapshot tagging 2017-01-21 22:44:16 +00:00
Marcin Kulisz
ef698b06ca Final fix for ec2_launch plugin 2017-01-21 20:31:49 +00: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
89eedae5fc Porting EC2 provider to boto3 2017-01-19 18:53:26 +00:00
Peter Wagner
441786e8e1 Support ca-central-1
AMI? More like eh-MI
2016-12-09 08:39:17 +01:00
Anders Ingemann
00de1738d7
Fix indentation typo in ec2 network task 2016-12-01 15:06:28 +01:00
James Bromberger
0664bdd2ac
Get new SR IOV network driver. Update official manifest to generate tags on AMIs. 2016-12-01 15:03:22 +01:00
Marcin Kulisz
0d95674c36 Disabling PIE during ixgbevf compilation for AWS +
enhanced network instances Stretch upwards.
* For GCC >=6 in Debian PIE (Position Independent Executable) has being activated
  it is causing enhanced network driver for AWS images to fail at
  compilation time due to incompatibility with PIE options for the kernel
* To learn what PIE is read docs at
  https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
2016-10-31 16:18:44 +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
Anders Ingemann
e5c96195bb Merge pull request #341 from nbraud/rel_path
Use the rel_path utility function
2016-09-20 16:34:07 +02:00
James Bromberger
97c03a85f3 Rename debiancloud.conf to .cfg to match cloud-init requirements. 2016-09-19 15:42:52 +00:00
Nicolas Braud-Santoni
90da634226
Systematically use rel_path for relative paths 2016-09-12 19:11:20 +02:00
Nicolas Braud-Santoni
81778136bc
Moving host_dependencies tasks to the validation phase 2016-09-12 01:12:19 +02:00
Justin Santa Barbara
0a8ececb20 Source ixgbevf driver from intel, not sourceforge
Sourceforge is often down at the moment, causing bootstrap-vz to fail.

Fix #287
2016-06-05 10:45:19 +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
a5f5b9ef3a ec2: Fix PVM grub console output 2016-06-04 19:26:31 +02:00
Anders Ingemann
45fb28082a ec2: Add hvc0 as grub console output device 2016-06-04 19:23:35 +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
da50ed7978 ec2: Silence boto before determining the AMI name 2016-06-04 18:48:54 +02:00
Anders Ingemann
4cbeed5263 Add manifest, kernel and NIC config for stretch 2016-06-04 18:19:49 +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
Anders Ingemann
2d6a026160 Fix a slew of indentation & spacing issues 2016-06-04 11:38:16 +02:00
Peter Wagner
dad66e15c0 AWS: support IAM role
Fixes #259
2016-04-14 19:42:11 -04:00
Jesse Szwedko
7f9ee9d22c Write Jessie growpart workaround script to something other than growpart
In case growpart is installed. Sed this workaround path into the init.d
script.

Signed-off-by: Andrew Garrett <andrew.garrett@getbraintree.com>
2016-01-12 19:12:57 +00:00
Jesse Szwedko
bbcb62c4f3 Making growpart workaround description more verbose
Signed-off-by: Andrew Garrett <andrew.garrett@getbraintree.com>
2016-01-12 19:09:09 +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
Anders Ingemann
c880a6849a Remove image section in manifest
All provider specific settings have been moved to the
provider section. The image name itself is now located
at the top level and called "name". It is required for all providers.
2015-12-13 19:41:18 +01:00
James Bromberger
58fdab7be2 PVGUB AKIs for Frankfurt region. 2015-07-30 10:07:24 +02: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
Alex Adriaanse
76c940db37 Fix DKMS kernel version error
This error is triggered when the kernel version installed into the image is
different from the kernel version that's currently running.
2015-06-29 23:50:56 +00:00
Jonh Wendell
cd04b3a645 EC2: Only install dhcpcd on releases before jessie
Otherwise, keep Debian's default isc-dhcp-client, it works fine
on EC2.
2015-06-17 09:49:58 -03:00
Jonh Wendell
5f9bef37ed EC2: Use latest ixgbevf driver 2015-06-10 14:41:02 -03:00
Jonh Wendell
62c3577c59 Use SSD volumes instead of magnetic
They are faster and the default when using AWS EC2 console.
2015-06-04 13:23:21 -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
1f6f23e680 Fix #104: Don't verify default target when adding packages 2015-04-29 23:51:55 +02:00