]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add Debian ppc64le support 772/head
authorSamuel Matzek <smatzek@us.ibm.com>
Tue, 10 May 2016 19:20:29 +0000 (14:20 -0500)
committerSamuel Matzek <smatzek@us.ibm.com>
Tue, 10 May 2016 19:26:30 +0000 (14:26 -0500)
Add support to allow ceph-ansible to install and
configure Ceph on Debian on the ppc64le architecture.

Canonical has ppc64le Debian packages in Ubuntu distros
and on Ubuntu Cloud Archive.  Both of which can be installed
and configured using the 'distro' or 'uca' options in
ceph-ansible when this patch is used.

Signed-off-by: Samuel Matzek <smatzek@us.ibm.com>
group_vars/all.sample
roles/ceph-common/defaults/main.yml
roles/ceph-common/tasks/checks/check_system.yml
roles/ceph-common/tasks/installs/install_on_debian.yml

index f7636309471419c1c253ee227db8809e17574a12..68bbe31743e4fbf8f0032ca63494bab0eb588d59 100644 (file)
@@ -64,6 +64,17 @@ dummy:
 #  - ntp
 #  - python-setuptools
 
+
+# The list of ceph packages needed for debian.
+# This variable should only be changed if packages are not available from a given
+# install source or architecture.
+#debian_ceph_packages:
+#  - ceph
+#  - ceph-common    #|
+#  - ceph-fs-common #|--> yes, they are already all dependencies from 'ceph'
+#  - ceph-fuse      #|--> however while proceding to rolling upgrades and the 'ceph' package upgrade
+#  - libcephfs1     #|--> they don't get update so we need to force them
+
 # Whether or not to install the ceph-test package.
 #ceph_test: False
 
index 10e17830d8d09b7478a9a585e7898190783ae60c..b9ef06b18a6876db944f48e1104c4efb6a1afafb 100644 (file)
@@ -56,6 +56,17 @@ redhat_package_dependencies:
   - ntp
   - python-setuptools
 
+
+# The list of ceph packages needed for debian.
+# This variable should only be changed if packages are not available from a given
+# install source or architecture.
+debian_ceph_packages:
+  - ceph
+  - ceph-common    #|
+  - ceph-fs-common #|--> yes, they are already all dependencies from 'ceph'
+  - ceph-fuse      #|--> however while proceding to rolling upgrades and the 'ceph' package upgrade
+  - libcephfs1     #|--> they don't get update so we need to force them
+
 # Whether or not to install the ceph-test package.
 ceph_test: False
 
index 75ae20ba1b2362478cb2f4d194c2d54ac0246f4b..55458b129fd656ed64ef2793511d185f2564c6c9 100644 (file)
@@ -7,7 +7,7 @@
 - name: fail on unsupported architecture
   fail:
     msg: "Architecture not supported {{ ansible_architecture }}"
-  when: "'{{ ansible_architecture }}' not in ['x86_64']"
+  when: "'{{ ansible_architecture }}' not in ['x86_64', 'ppc64le']"
 
 - name: fail on unsupported distribution
   fail:
index 36d778402f2712383f504881d4df4aecc824f5aa..858a748f5a0266bea5e8d3694ce69834a2993931 100644 (file)
     pkg: "{{ item }}"
     state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
     default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
-  with_items:
-    - ceph
-    - ceph-common    #|
-    - ceph-fs-common #|--> yes, they are already all dependencies from 'ceph'
-    - ceph-fuse      #|--> however while proceding to rolling upgrades and the 'ceph' package upgrade
-    - libcephfs1     #|--> they don't get update so we need to force them
+  with_items: debian_ceph_packages
 
 - name: install ceph-test
   apt: