Merge lp:~oddbloke/vmbuilder/jenkins_kvm-azure_yakkety into lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm

Proposed by Dan Watkins
Status: Merged
Merged at revision: 752
Proposed branch: lp:~oddbloke/vmbuilder/jenkins_kvm-azure_yakkety
Merge into: lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm
Diff against target: 97 lines (+77/-1)
3 files modified
templates/img-azure-16.10-addin.tmpl (+58/-0)
templates/img-azure-16.10-docker.tmpl (+8/-0)
templates/img-azure.tmpl (+11/-1)
To merge this branch: bzr merge lp:~oddbloke/vmbuilder/jenkins_kvm-azure_yakkety
Reviewer Review Type Date Requested Status
Philip Roche Approve
Review via email: mp+298215@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Philip Roche (philroche) wrote :

Changes look good to me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'templates/img-azure-16.10-addin.tmpl'
--- templates/img-azure-16.10-addin.tmpl 1970-01-01 00:00:00 +0000
+++ templates/img-azure-16.10-addin.tmpl 2016-06-23 11:57:47 +0000
@@ -0,0 +1,58 @@
1# vi: ts=4 noexpandtab syntax=sh
2# Insert the Trusty Config
3CLOUD_IMG_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
4cat << EOF > ${mp}/etc/default/grub.d/50-cloudimg-settings.cfg
5# Windows Azure specific grub settings
6${CLOUD_IMG_STR}
7
8# Set the default commandline
9GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0 earlyprintk=ttyS0 rootdelay=300"
10
11# Set the grub console type
12GRUB_TERMINAL=serial
13
14# Set the serial command
15GRUB_SERIAL_COMMAND="serial --speed=9600 --unit=0 --word=8 --parity=no --stop=1"
16
17# Set the recordfail timeout
18GRUB_RECORDFAIL_TIMEOUT=0
19
20# Do not wait on grub prompt
21GRUB_TIMEOUT=0
22EOF
23
24# Add in the client keep alive
25cat << EOF >> "${mp}/etc/ssh/sshd_config"
26
27${CLOUD_IMG_STR}
28ClientAliveInterval 120
29EOF
30
31# Add the configuration for Cloud-init
32cat << EOF > "${mp}/etc/cloud/cloud.cfg.d/90-azure.cfg"
33${CLOUD_IMG_STR}
34system_info:
35 package_mirrors:
36 - arches: [i386, amd64]
37 failsafe:
38 primary: http://archive.ubuntu.com/ubuntu
39 security: http://security.ubuntu.com/ubuntu
40 search:
41 primary:
42 - http://azure.archive.ubuntu.com/ubuntu/
43 security: []
44 - arches: [armhf, armel, default]
45 failsafe:
46 primary: http://ports.ubuntu.com/ubuntu-ports
47 security: http://ports.ubuntu.com/ubuntu-ports
48
49EOF
50
51# Frame buffer fix
52cat << EOF >> "${mp}/etc/initramfs-tools/modules"
53
54# Need for slow boot times due to framebuffer
55hyperv_fb
56EOF
57
58xchroot update-initramfs -u -k all
059
=== added file 'templates/img-azure-16.10-docker.tmpl'
--- templates/img-azure-16.10-docker.tmpl 1970-01-01 00:00:00 +0000
+++ templates/img-azure-16.10-docker.tmpl 2016-06-23 11:57:47 +0000
@@ -0,0 +1,8 @@
1# Install Docker
2dpkgs=(
3 docker.io
4 docker-compose
5 )
6
7xchroot apt-get -y install ${dpkgs[@]}
8xchroot apt-get -y clean
09
=== modified file 'templates/img-azure.tmpl'
--- templates/img-azure.tmpl 2016-04-01 08:05:24 +0000
+++ templates/img-azure.tmpl 2016-06-23 11:57:47 +0000
@@ -250,7 +250,17 @@
250#################################################250#################################################
251251
252# Reconfigure grub, since the config is laid during the addin phase252# Reconfigure grub, since the config is laid during the addin phase
253xchroot dpkg-reconfigure grub-pc253# Or, on yakkety and later, reinstall grub-pc which is no longer in the base
254# image
255case $suite in
256 precise|trusty|wily|xenial)
257 xchroot dpkg-reconfigure grub-pc
258 ;;
259 *)
260 xchroot apt-get install -qqy grub-pc
261 xchroot apt-get autoremove --purge -y
262 ;;
263esac
254xchroot update-grub264xchroot update-grub
255xchroot grub-install /dev/vdd265xchroot grub-install /dev/vdd
256266

Subscribers

People subscribed via source and target branches