Optionally install ceph-test

We want this to enable testing with existing teuthology jobs.

https://github.com/ceph/teuthology

Signed-off-by: Zack Cerza <zack@redhat.com>
pull/589/head
Zack Cerza 2016-02-19 16:39:33 -07:00
parent d6f63d0dee
commit b27684d912
3 changed files with 26 additions and 0 deletions

View File

@ -43,6 +43,9 @@ redhat_package_dependencies:
- ntp
- python-setuptools
# Whether or not to install the ceph-test package.
ceph_test: False
## Configure package origin
#
ceph_origin: 'upstream' # or 'distro'

View File

@ -24,6 +24,13 @@
- ceph-mds #|--> they don't get update so we need to force them
- libcephfs1 #|
- name: install ceph-test
apt:
pkg: ceph-test
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
default_release: "{{ ansible_distribution_release }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
when: ceph_test
- name: install rados gateway
apt:
pkg: radosgw

View File

@ -71,6 +71,22 @@
osd_group_name in group_names and
ansible_pkg_mgr == "dnf"
- name: install ceph-test
yum:
name: ceph-test
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
when:
ceph_test and
ansible_pkg_mgr == "yum"
- name: install ceph-test
dnf:
name: ceph-test
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
when:
ceph_test and
ansible_pkg_mgr == "dnf"
- name: install Inktank Ceph Enterprise RBD Kernel modules
yum:
name: "{{ item }}"