]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Optionally install ceph-test 589/head
authorZack Cerza <zack@redhat.com>
Fri, 19 Feb 2016 23:39:33 +0000 (16:39 -0700)
committerZack Cerza <zack@redhat.com>
Tue, 1 Mar 2016 23:23:06 +0000 (16:23 -0700)
We want this to enable testing with existing teuthology jobs.

https://github.com/ceph/teuthology

Signed-off-by: Zack Cerza <zack@redhat.com>
roles/ceph-common/defaults/main.yml
roles/ceph-common/tasks/installs/install_on_debian.yml
roles/ceph-common/tasks/installs/install_on_redhat.yml

index 04266d8062b2474e1b3ff3442bef9f8dfd5e7d31..3effe89058a177b45845779bb46304aeae2c1bd5 100644 (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'
index 5f9157e3cd80dca7b785c4e4563d13f93b09d32f..0cb09785cbf18ac62a6a151ddf7827aceb5c3874 100644 (file)
     - 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
index 021ec580291180de17ea91d2a04a4f565d1d3b0a..3717fd7cad945b468ca88f265b9d35d93b6256e4 100644 (file)
     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 }}"