Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ubuntu17.10 template #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ubuntu/scripts/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ if [[ ${UBUNTU_VERSION} == 16.04 ]] || [[ ${UBUNTU_VERSION} == 16.10 ]]; then
# provisioner.
sed -i "s/ens3/ens5/g" /etc/network/interfaces
fi
if [[ ${UBUNTU_VERSION} == 17.10 ]]; then
# by default, ubuntu 17.10 uses netplan (from the nplan package), however
# that has one fixed config after install - which points to the wrong
# devicename after reboot, so install a small stub networkctl config to
# manage all ethernet devices

cat >/etc/systemd/network/95-defaulteth.network <<EOF
[Match]
Name=eth* en*

[Network]
DHCP=yes
LLDP=true
EmitLLDP=true
EOF
fi

# Add delay to prevent "vagrant reload" from failing
echo "pre-up sleep 2" >> /etc/network/interfaces
Expand Down
12 changes: 12 additions & 0 deletions ubuntu/ubuntu1710.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"_comment": "Build with `packer build -var-file=ubuntu1710.json ubuntu.json`",
"vm_name": "ubuntu1710",
"cpus": "1",
"disk_size": "65536",
"iso_checksum": "8ff73f1b622276758475c3bd5190b382774626de5a82c50930519381f6c3a3f8",
"iso_checksum_type": "sha256",
"iso_url": "http://releases.ubuntu.com/artful/ubuntu-17.10.1-server-amd64.iso",
"memory": "512",
"preseed" : "preseed.cfg",
"version" : "1"
}