From 5606ea555b3698e542b816eda2e77eed059ef5ec Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Tue, 28 Jun 2016 23:35:43 -0500 Subject: [PATCH] Update the version of LXC installed to the latest stable This change updates the installation of LXC on Ubuntu 14.04 to be the latest stable release. The change will, at the time of this commit, use LXC version 2.0.x as the base version. By updating we'll be able to take advantage of the various performance and stability enhancements that have been created since the release of 2.x. This also brings our Ubuntu 14.04 installations in line with Ubuntu 16.04 and CentOS7 such that we're using a single supported release. Change-Id: I29220bee11401cc424ef54160cc873b8fc395dd1 Signed-off-by: Kevin Carter --- releasenotes/notes/upgrade-lxc-4750ba9aea7b5cd1.yaml | 6 ++++++ tasks/lxc_install_apt.yml | 3 ++- vars/ubuntu-14.04.yml | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/upgrade-lxc-4750ba9aea7b5cd1.yaml diff --git a/releasenotes/notes/upgrade-lxc-4750ba9aea7b5cd1.yaml b/releasenotes/notes/upgrade-lxc-4750ba9aea7b5cd1.yaml new file mode 100644 index 00000000..3393858f --- /dev/null +++ b/releasenotes/notes/upgrade-lxc-4750ba9aea7b5cd1.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - Hosts running LXC on Ubuntu 14.04 will now need to enable + the "trusty-backports" repository. The backports repo on + Ubuntu 14.04 is now required to ensure LXC is updated to + the latest stable version. diff --git a/tasks/lxc_install_apt.yml b/tasks/lxc_install_apt.yml index a0bf4c77..c61c1ab8 100644 --- a/tasks/lxc_install_apt.yml +++ b/tasks/lxc_install_apt.yml @@ -33,7 +33,8 @@ - name: Install apt packages apt: pkg: "{{ item }}" - state: present + state: latest + default_release: "{{ lxc_default_release | default(omit) }}" register: install_packages until: install_packages|success retries: 5 diff --git a/vars/ubuntu-14.04.yml b/vars/ubuntu-14.04.yml index 3e25235b..98efdb7f 100644 --- a/vars/ubuntu-14.04.yml +++ b/vars/ubuntu-14.04.yml @@ -122,3 +122,5 @@ lxc_cache_packages: lxc_cached_network_interfaces: - src: "lxc-net-bridge.cfg.j2" dest: "/etc/network/interfaces.d/lxc-net-bridge.cfg" + +lxc_default_release: "trusty-backports"