[jenkins-ci PATCH 1/3] guests: add openvz repository on CentOS 7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The OpenVZ site provides a yum repo built against RHEL-7 that includes
the prlsdk-devel RPM needed for the VZ driver. This repo has quite alot
of packages that replace stuff from standard RHEL repos, so the yum
config file is set to whitelist only the minimal RPMs we need to do
builds. Fortunately they have no deps which would cause replacement of
standard RHEL RPMs.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 guests/playbooks/update/tasks/base.yml           | 10 ++++++++++
 guests/playbooks/update/templates/openvz.repo.j2 |  9 +++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 guests/playbooks/update/templates/openvz.repo.j2

diff --git a/guests/playbooks/update/tasks/base.yml b/guests/playbooks/update/tasks/base.yml
index e0efe5d..a5b8810 100644
--- a/guests/playbooks/update/tasks/base.yml
+++ b/guests/playbooks/update/tasks/base.yml
@@ -9,6 +9,16 @@
     - os_name == 'Fedora'
     - os_version == 'Rawhide'
 
+- name: Enable openvz repository
+  template:
+    src: '{{ playbook_base }}/templates/openvz.repo.j2'
+    dest: /etc/yum.repos.d/openvz.repo
+    owner: root
+    group: root
+  when:
+    - os_name == 'CentOS'
+    - os_version == '7'
+
 - name: Update installed packages
   package:
     name: '*'
diff --git a/guests/playbooks/update/templates/openvz.repo.j2 b/guests/playbooks/update/templates/openvz.repo.j2
new file mode 100644
index 0000000..78acb36
--- /dev/null
+++ b/guests/playbooks/update/templates/openvz.repo.j2
@@ -0,0 +1,9 @@
+[openvz]
+name=OpenVZ addons
+baseurl=https://download.openvz.org/virtuozzo/releases/7.0/x86_64/os/
+enabled=1
+gpgcheck=0
+skip_if_unavailable=0
+metadata_expire=6h
+priority=90
+includepkgs=libprlcommon libprlsdk libprlsdk-devel libprlsdk-headers libprlxmlmodel
-- 
2.21.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux