From: Alberto Murillo Date: Fri, 22 Apr 2016 19:13:36 +0000 (-0500) Subject: Add clearlinux to supported platforms X-Git-Tag: v2.3.0rc1~23^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5218df5ef3f953222e5602bb31756ba2d502ce26;p=ceph-ansible.git Add clearlinux to supported platforms Signed-off-by: Alberto Murillo Silva --- diff --git a/roles/ceph-common/tasks/checks/check_system.yml b/roles/ceph-common/tasks/checks/check_system.yml index 985c387e3..460c3bf5d 100644 --- a/roles/ceph-common/tasks/checks/check_system.yml +++ b/roles/ceph-common/tasks/checks/check_system.yml @@ -12,7 +12,7 @@ - name: fail on unsupported distribution fail: msg: "Distribution not supported {{ ansible_os_family }}" - when: "'{{ ansible_os_family }}' not in ['Debian', 'RedHat']" + when: "'{{ ansible_os_family }}' not in ['Debian', 'RedHat', 'ClearLinux']" - name: fail on unsupported distribution for red hat ceph storage fail: diff --git a/roles/ceph-common/tasks/installs/install_on_clear.yml b/roles/ceph-common/tasks/installs/install_on_clear.yml new file mode 100644 index 000000000..73c1ac87d --- /dev/null +++ b/roles/ceph-common/tasks/installs/install_on_clear.yml @@ -0,0 +1,5 @@ +--- +- name: install ceph bundle + swupd: + name: storage-cluster + state: present diff --git a/roles/ceph-common/tasks/main.yml b/roles/ceph-common/tasks/main.yml index daf8e3ff9..71b482cba 100644 --- a/roles/ceph-common/tasks/main.yml +++ b/roles/ceph-common/tasks/main.yml @@ -72,6 +72,13 @@ # Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent) static: False +- include: ./installs/install_on_clear.yml + when: ansible_os_family == 'ClearLinux' + tags: + - package-install + # Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent) + static: False + - include: ./misc/ntp_redhat.yml when: - ansible_os_family == 'RedHat' diff --git a/roles/ceph-osd/tasks/pre_requisite.yml b/roles/ceph-osd/tasks/pre_requisite.yml index fdb4e2bfc..518c421b2 100644 --- a/roles/ceph-osd/tasks/pre_requisite.yml +++ b/roles/ceph-osd/tasks/pre_requisite.yml @@ -11,6 +11,7 @@ package: name: parted state: present + when: ansible_os_family != 'ClearLinux' - name: create bootstrap-osd and osd directories file: