Commit graph

376 commits

Author SHA1 Message Date
Rick Wright
1e2fe02847 Fix a problem with Debian 8 on GCE with >2TB disks
This change makes two fixes. First, it fixes a race condition on Debian
8 GCE instances which caused instances with >2TB disks to fail. Second,
it adds the required "PREREQ" header to the script, which was previously
missing and caused errors at build time. These two issues are somewhat
unrelated to each other, but debugging the first led to finding the
second.
2015-09-23 16:55:16 -07:00
EmmanuelKasper
1475a50dbc Set Virtualbox memory to 512 MB
Vagrant documentation recommends to use 512MB for base boxes:

http://docs.vagrantup.com/v2/boxes/base.html
2015-09-04 16:51:55 +02:00
Anders Ingemann
0091afcfb4 Merge pull request #243 from szarkos/azure-debian
Updates for building Debian images for Azure
2015-08-25 08:42:23 +02:00
Stephen A. Zarkos
52ed8c247f Simplify Azure udev patch. 2015-08-25 00:15:01 +00:00
Tiago Ilieve
f5de2fbc0d Changes default Debian mirror
Although it isn't yet deprecated by the wiki[1], the Debian mirrors HTTP
redirector names itself as `httpredir.debian.org`, even when accessed at
`http.debian.net`.

[1]: https://wiki.debian.org/DebianGeoMirror
2015-08-07 18:16:14 -03:00
Stephen A. Zarkos
3f743d01b1 Small fixes for Azure images
- Add apt import for backports
 - Comment GRUB_HIDDEN_TIMEOUT so we can set GRUB_TIMEOUT.
2015-08-06 00:21:23 +00:00
Stephen A. Zarkos
0212db733d Updates to Azure image creation.
- Wheezy images use wheezy-backports kernel by default
 - Change Wheezy image to use single partition
 - Update WALinuxAgent to use 2.0.14
2015-08-05 22:20:14 +00:00
Stephen A. Zarkos
7cb4453fe4 Make sure we can override grub.ConfigureGrub for Azure images. 2015-08-05 22:16:24 +00:00
Stephen A. Zarkos
b5a0c7df21 Change default shell in /etc/default/useradd for Azure images. 2015-08-05 22:12:00 +00:00
Stephen A. Zarkos
8e06ef2294 Add boot parameters to Azure config to ease local debugging
- Add console=tty0 to see kernel/boot messsages on local console
 - Set serial port speed to 115200
2015-08-05 22:11:47 +00:00
Stephen A. Zarkos
6b2a5cb4a5 Fix error with applying azure/assets/udev.diff
When creating an image for Azure we see the following error when applying udev.diff:

   TypeError: cannot concatenate 'str' and 'file' objects

Resolving this in log_call() I still see the following error:

   patch: **** Only garbage was found in the patch input.

So fixing this in providers/azure/tasks/boot.py seems to be the best route.
2015-08-05 22:10:50 +00:00
Anders Ingemann
608de63d3e Better grub options
Inspired by 9c151c43b3ee85fe8cb7d4cdadb45115807c6710 by JamesBromberger/bootstrap-vz
2015-07-30 10:07:25 +02: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
Anders Ingemann
a5e2a34ecc Merge pull request #238 from alexadriaanse/jessie-btrfs-support-plus-dkms-version-fix
Fix DKMS version error; add Jessie & Btrfs support
2015-07-30 08:58:39 +02:00
Tiago Ilieve
b63d87c290 Fix link to manifest in VirtualBox provider's docs 2015-07-23 09:00:56 -03:00
Alex Adriaanse
545a337a81 Add support for Btrfs 2015-06-30 01:37:09 +00: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
Anders Ingemann
d1b63938e9 Move the udev patch task to boot
Inconsequential commit, but I think it makes more sense, since the task affects what happens when booting
2015-06-29 18:00:21 +02:00
Anders Ingemann
ecf549b65d Replace subprocess.call with log_check_call 2015-06-29 17:55:00 +02:00
Thomas Conte
774e78a9f2 Patch udev init script to fix ROOTDELAY boot issue 2015-06-29 05:05:30 -07:00
Zach Marano
c682dab6ec Fix expand-root script to work for Debian 8 and simplify how partition
types are forumlated.
2015-06-24 12:41:06 -07:00
Thomas Conte
b7243449f5 - Use manifest.provider instead of manifest.system
- Add 'parted' package required for recent versions of Azure agent
2015-06-23 02:04:26 -07:00
Rick Wright
ef429f5e79 Install GCE packages before Manifest packages. 2015-06-22 14:28:22 -07:00
Zach Marano
7484236282 Change the order we clean up the apt state- thereby leaving a current as
of the image build set of apt list files on the resulting image.
2015-06-17 18:12:07 -07: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
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
0e992e23a1 Merge pull request #224 from jwendell/ixgbevf
EC2: Use latest ixgbevf driver
2015-06-10 21:54:15 +02:00
Jonh Wendell
ea1c4037ae apt_proxy: Also consider http error code 406
It seems some Debian versions of apt-cacher-ng return error
code 406 instead of 404:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762969

This is my case in Jessie, for example.

This patch considers both codes as "valid".
2015-06-10 14:44:05 -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
Zach Marano
d3a1d22290 Add support for Debian 8 in GCE.
Add support for GPT disks.
Change the default block scheduler to noop for improved performance.
2015-05-19 13:19:12 -07:00
Tiago Ilieve
71d628544c 'Disabling' for 'Enabling' in EnableRootLogin 2015-05-12 08:17:43 -03:00
Alexandre Derumier
02c333c8c8 fix ^PermitRootLogin regex
fix issue https://github.com/andsens/bootstrap-vz/issues/218
2015-05-08 09:11:14 +02:00
Anders Ingemann
e556366c19 Fix #98. External plugin architecture implemented 2015-05-03 13:07:26 +02: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
2ef9382a55 Check whether all tasks found include the ones we resolved 2015-05-03 08:04:20 +02:00
Anders Ingemann
c8470790b8 Remove predecessor req. for ApplyPuppetManifest 2015-05-03 07:43:52 +02:00
Anders Ingemann
4df22e79f1 Move AddNtpPackage task into the preparation phase 2015-05-03 07:43:27 +02:00
Anders Ingemann
f88a1b0af5 Merge branch 'development' 2015-05-02 22:33:04 +02:00
Tiago Ilieve
3cfba08983 Fix mentions to the commands plugin name 2015-05-02 13:12:33 -03:00
Anders Ingemann
a7f2327e42 Litter the manifest schemas with additionalProperties:false
This pretty much eliminates the possiblity of undiscovered typos in the manifest
2015-05-02 13:04:30 +02:00
Anders Ingemann
fa8da6171d Fix #99: Rename image_commands to commands 2015-05-02 12:36:14 +02:00
Anders Ingemann
a9b1624427 fixup! Fix #32: Extend image_commands docs 2015-05-02 12:33:11 +02:00
Anders Ingemann
2948badf47 Fix #204, user_modification phase has been introduced 2015-05-02 12:31:06 +02:00
Anders Ingemann
a23c9936b6 Fix #32: Extend image_commands docs 2015-05-02 12:30:58 +02:00
Anders Ingemann
e783927ea0 Fix #139. Adjust Debian OS type depending on architecture 2015-05-02 12:16:00 +02:00
Anders Ingemann
df224e61a4 Fix modification box.ovf in vagrant plugin 2015-05-02 12:15:21 +02:00
Anders Ingemann
1f6f23e680 Fix #104: Don't verify default target when adding packages 2015-04-29 23:51:55 +02:00