Use apt-mk repository
Change-Id: I3a770c58f0c6c5fde8e58ee2f13e61e7c07e6248
diff --git a/ubuntu-14.04/scripts/base.sh b/ubuntu-14.04/scripts/base.sh
index 1358b64..68c295b 100644
--- a/ubuntu-14.04/scripts/base.sh
+++ b/ubuntu-14.04/scripts/base.sh
@@ -1,13 +1,17 @@
## Base packages and setup
-# Ensure our repository is the only one present
-echo "deb [arch=amd64] http://apt.tcpcloud.eu/nightly/ trusty main security extra tcp tcp-salt" > /etc/apt/sources.list
-
export DEBIAN_FRONTEND=noninteractive
echo "exit 101" > /usr/sbin/policy-rc.d
chmod +x /usr/sbin/policy-rc.d
apt-get clean
apt-get update
+# Useful tools
+apt-get -y install curl wget tmux vim-nox byobu iputils-ping traceroute htop tree
+
+# Add apt-mk repository
+echo "deb [arch=amd64] http://apt-mk.mirantis.com/trusty/ nightly extra salt salt-latest" > /etc/apt/sources.list.d/apt-mk.list
+curl -sf http://apt-mk.mirantis.com/public.gpg | apt-key add -
+
# Cleanup old kernels, ensure latest is installed via virtual package
apt-get purge -y linux-image-* linux-headers-*
if [ ! -f /tmp/no_install_kernel ]; then
@@ -24,9 +28,6 @@
apt-get autoremove --purge
-# Useful tools
-apt-get -y install curl wget tmux vim-nox byobu iputils-ping traceroute htop tree
-
# Tmux fixes
cat << 'EOF' >> /etc/tmux.conf
set -g default-terminal "screen-256color"
@@ -36,3 +37,13 @@
# Setup cloud-init
apt-get -y install cloud-init
+
+# Motd
+apt-get install -y update-motd
+rm -f /etc/update-motd.d/*
+cat << EOF >> /etc/update-motd.d/52-info
+Ubuntu 14.04 "Trusty" Mirantis cloud image
+Build date: $(date -u -R)
+
+EOF
+chmod +x /etc/update-motd.d/52-info
diff --git a/ubuntu-14.04/scripts/docker.sh b/ubuntu-14.04/scripts/docker.sh
index ba1beeb..3f2dc82 100644
--- a/ubuntu-14.04/scripts/docker.sh
+++ b/ubuntu-14.04/scripts/docker.sh
@@ -2,8 +2,9 @@
apt-get -y install curl
-echo "deb [arch=amd64] http://apt.tcpcloud.eu/nightly trusty main security extra tcp" >/etc/apt/sources.list
-curl -s http://apt.tcpcloud.eu/public.gpg | apt-key add -
+# Add apt-mk repository
+echo "deb [arch=amd64] http://apt-mk.mirantis.com/trusty/ nightly extra salt salt-latest" > /etc/apt/sources.list.d/apt-mk.list
+curl -sf http://apt-mk.mirantis.com/public.gpg | apt-key add -
apt-get update