summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/virthost/files/rhel7-os.repo5
-rw-r--r--roles/virthost/tasks/main.yml11
2 files changed, 15 insertions, 1 deletions
diff --git a/roles/virthost/files/rhel7-os.repo b/roles/virthost/files/rhel7-os.repo
new file mode 100644
index 000000000..d0e379ed3
--- /dev/null
+++ b/roles/virthost/files/rhel7-os.repo
@@ -0,0 +1,5 @@
+[rhel7-os]
+name = rhel7 os $basearch
+baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/$basearch/rhel-7-openstack-7.0-rpms
+includepkgs=qemu*
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
diff --git a/roles/virthost/tasks/main.yml b/roles/virthost/tasks/main.yml
index ddba767c7..44c1df1a9 100644
--- a/roles/virthost/tasks/main.yml
+++ b/roles/virthost/tasks/main.yml
@@ -14,10 +14,19 @@
- packages
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 6
+- name: install openstack 7 repo file
+ copy: src=rhel7-os.repo dest=/etc/yum.repos.d/rhel7-os.repo
+ tags:
+ - repos
+ - rhel7-os-repo
+ when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7
+
- name: install libvirt packages on rhel7 virthosts
yum: pkg={{ item }} state=present
with_items:
- - qemu-kvm
+ - qemu-kvm-rhev
+ - qemu-kvm-tools-rhev
+ - qemu-img-rhev
- libvirt
- virt-install
tags: