From 12840676251e38e8125b7b204a350202d310d5fb Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 31 Aug 2017 10:39:51 +0100 Subject: [PATCH] SUSE: Use the OBS Virtualization repository for lxc-2.X.X openSUSE Leap ships lxc-1.1.5 which is rather old and unmaintained. It's best to use the OBS development repository to get the latest lxc-2.X.X which is the one maintained upstream. Change-Id: I5a7baa3374bad67dcafc5c78f16b0dd4cae49ee4 --- tasks/lxc_install_zypper.yml | 11 +++++++++++ vars/suse-42.yml | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/tasks/lxc_install_zypper.yml b/tasks/lxc_install_zypper.yml index 2010760c..22d46bc2 100644 --- a/tasks/lxc_install_zypper.yml +++ b/tasks/lxc_install_zypper.yml @@ -13,6 +13,17 @@ # See the License for the specific language governing permissions and # limitations under the License. +- name: Add zypper containers repository + zypper_repository: + auto_import_keys: yes + autorefresh: yes + name: "{{ item.name }}" + repo: "{{ item.uri }}" + runrefresh: yes + with_items: "{{ lxc_hosts_external_repo }}" + tags: + - lxc_hosts-config + - name: Install zypper packages zypper: name: "{{ lxc_hosts_distro_packages }}" diff --git a/vars/suse-42.yml b/vars/suse-42.yml index f2284b3a..9de9d7a0 100644 --- a/vars/suse-42.yml +++ b/vars/suse-42.yml @@ -14,6 +14,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +lxc_hosts_external_repo: + - name: "OBS:Virtualization:containers" + uri: "http://download.opensuse.org/repositories/Virtualization:/containers/openSUSE_Leap_{{ ansible_distribution_version }}/" + system_config_dir: "/etc/sysconfig" systemd_utils_prefix: "/usr/lib/systemd" @@ -29,7 +33,7 @@ lxc_hosts_distro_packages: - git-core - libseccomp2 - lxc - - lxc-devel + - liblxc-devel - xz lxc_xz_bin: xz