Merge pull request #588 from ceph/centos-deps

Define CentOS vs RHEL dependencies
pull/597/head
Leseb 2016-03-03 09:59:13 +01:00
commit ed844808a8
2 changed files with 342 additions and 323 deletions

View File

@ -35,7 +35,7 @@ debian_package_dependencies:
- hdparm
- ntp
redhat_package_dependencies:
centos_package_dependencies:
- python-pycurl
- hdparm
- yum-plugin-priorities.noarch
@ -43,6 +43,12 @@ redhat_package_dependencies:
- ntp
- python-setuptools
redhat_package_dependencies:
- python-pycurl
- hdparm
- ntp
- python-setuptools
# Whether or not to install the ceph-test package.
ceph_test: False

View File

@ -4,14 +4,27 @@
name: "{{ item }}"
state: present
with_items: redhat_package_dependencies
when: ansible_pkg_mgr == "yum"
when:
ansible_distribution == "RedHat" and
ansible_pkg_mgr == "yum"
- name: install dependencies
yum:
name: "{{ item }}"
state: present
with_items: centos_package_dependencies
when:
ansible_distribution == "CentOS" and
ansible_pkg_mgr == "yum"
- name: install dependencies
dnf:
name: "{{ item }}"
state: present
with_items: redhat_package_dependencies
when: ansible_pkg_mgr == "dnf"
with_items: centos_package_dependencies
when:
ansible_distribution == "CentOS" and
ansible_pkg_mgr == "dnf"
- name: configure ceph yum repository
include: redhat_ceph_repository.yml