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
1=== added file 'templates/img-azure-16.10-addin.tmpl'
2--- templates/img-azure-16.10-addin.tmpl 1970-01-01 00:00:00 +0000
3+++ templates/img-azure-16.10-addin.tmpl 2016-06-23 11:57:47 +0000
4@@ -0,0 +1,58 @@
5+# vi: ts=4 noexpandtab syntax=sh
6+# Insert the Trusty Config
7+CLOUD_IMG_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
8+cat << EOF > ${mp}/etc/default/grub.d/50-cloudimg-settings.cfg
9+# Windows Azure specific grub settings
10+${CLOUD_IMG_STR}
11+
12+# Set the default commandline
13+GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0 earlyprintk=ttyS0 rootdelay=300"
14+
15+# Set the grub console type
16+GRUB_TERMINAL=serial
17+
18+# Set the serial command
19+GRUB_SERIAL_COMMAND="serial --speed=9600 --unit=0 --word=8 --parity=no --stop=1"
20+
21+# Set the recordfail timeout
22+GRUB_RECORDFAIL_TIMEOUT=0
23+
24+# Do not wait on grub prompt
25+GRUB_TIMEOUT=0
26+EOF
27+
28+# Add in the client keep alive
29+cat << EOF >> "${mp}/etc/ssh/sshd_config"
30+
31+${CLOUD_IMG_STR}
32+ClientAliveInterval 120
33+EOF
34+
35+# Add the configuration for Cloud-init
36+cat << EOF > "${mp}/etc/cloud/cloud.cfg.d/90-azure.cfg"
37+${CLOUD_IMG_STR}
38+system_info:
39+ package_mirrors:
40+ - arches: [i386, amd64]
41+ failsafe:
42+ primary: http://archive.ubuntu.com/ubuntu
43+ security: http://security.ubuntu.com/ubuntu
44+ search:
45+ primary:
46+ - http://azure.archive.ubuntu.com/ubuntu/
47+ security: []
48+ - arches: [armhf, armel, default]
49+ failsafe:
50+ primary: http://ports.ubuntu.com/ubuntu-ports
51+ security: http://ports.ubuntu.com/ubuntu-ports
52+
53+EOF
54+
55+# Frame buffer fix
56+cat << EOF >> "${mp}/etc/initramfs-tools/modules"
57+
58+# Need for slow boot times due to framebuffer
59+hyperv_fb
60+EOF
61+
62+xchroot update-initramfs -u -k all
63
64=== added file 'templates/img-azure-16.10-docker.tmpl'
65--- templates/img-azure-16.10-docker.tmpl 1970-01-01 00:00:00 +0000
66+++ templates/img-azure-16.10-docker.tmpl 2016-06-23 11:57:47 +0000
67@@ -0,0 +1,8 @@
68+# Install Docker
69+dpkgs=(
70+ docker.io
71+ docker-compose
72+ )
73+
74+xchroot apt-get -y install ${dpkgs[@]}
75+xchroot apt-get -y clean
76
77=== modified file 'templates/img-azure.tmpl'
78--- templates/img-azure.tmpl 2016-04-01 08:05:24 +0000
79+++ templates/img-azure.tmpl 2016-06-23 11:57:47 +0000
80@@ -250,7 +250,17 @@
81 #################################################
82
83 # Reconfigure grub, since the config is laid during the addin phase
84-xchroot dpkg-reconfigure grub-pc
85+# Or, on yakkety and later, reinstall grub-pc which is no longer in the base
86+# image
87+case $suite in
88+ precise|trusty|wily|xenial)
89+ xchroot dpkg-reconfigure grub-pc
90+ ;;
91+ *)
92+ xchroot apt-get install -qqy grub-pc
93+ xchroot apt-get autoremove --purge -y
94+ ;;
95+esac
96 xchroot update-grub
97 xchroot grub-install /dev/vdd
98

Subscribers

People subscribed via source and target branches