2014-09-05 03:14:11 +08:00
|
|
|
---
|
|
|
|
- name: Install dependencies
|
2014-11-06 00:57:28 +08:00
|
|
|
apt: >
|
|
|
|
pkg={{ item }}
|
|
|
|
state=present
|
|
|
|
update_cache=yes
|
2014-09-05 03:14:11 +08:00
|
|
|
cache_valid_time=3600
|
|
|
|
with_items:
|
|
|
|
- python-pycurl
|
|
|
|
- ntp
|
|
|
|
- hdparm
|
|
|
|
|
|
|
|
- name: Install the Ceph repository stable key
|
2014-11-06 00:57:28 +08:00
|
|
|
apt_key: >
|
2014-09-05 03:14:11 +08:00
|
|
|
data="{{ lookup('file', 'cephstable.asc') }}"
|
|
|
|
state=present
|
|
|
|
when: ceph_stable
|
|
|
|
|
2014-11-14 22:05:56 +08:00
|
|
|
- name: Install the Ceph development repository key
|
2014-11-06 00:57:28 +08:00
|
|
|
apt_key: >
|
2014-09-05 03:14:11 +08:00
|
|
|
data="{{ lookup('file', 'cephdev.asc') }}"
|
|
|
|
state=present
|
|
|
|
when: ceph_dev
|
|
|
|
|
2014-12-18 01:01:44 +08:00
|
|
|
- name: Install Intank Ceph Enterprise repository key
|
|
|
|
apt_key: >
|
|
|
|
data="{{ lookup('file', 'cephstableice.asc') }}"
|
|
|
|
state=present
|
|
|
|
when: ceph_stable_ice
|
|
|
|
|
2014-09-05 03:14:11 +08:00
|
|
|
- name: Add Ceph stable repository
|
2014-11-06 00:57:28 +08:00
|
|
|
apt_repository: >
|
2014-09-05 03:14:11 +08:00
|
|
|
repo="deb http://ceph.com/debian-{{ ceph_stable_release }}/ {{ ansible_lsb.codename }} main"
|
|
|
|
state=present
|
|
|
|
when: ceph_stable
|
|
|
|
|
|
|
|
- name: Add Ceph development repository
|
|
|
|
apt_repository: >
|
|
|
|
repo="deb http://gitbuilder.ceph.com/ceph-deb-{{ ansible_lsb.codename }}-x86_64-basic/ref/{{ ceph_dev_branch }} {{ ansible_lsb.codename }} main"
|
|
|
|
state=present
|
|
|
|
when: ceph_dev
|
|
|
|
|
2014-12-18 01:01:44 +08:00
|
|
|
- name: Add Inktank Ceph Enterprise repository
|
|
|
|
apt_repository: >
|
|
|
|
repo="deb file://{{ ceph_stable_ice_temp_path }} {{ ansible_lsb.codename }} main"
|
|
|
|
state=present
|
|
|
|
when: ceph_stable_ice
|
|
|
|
|
2014-09-05 03:14:11 +08:00
|
|
|
- name: Install Ceph
|
|
|
|
apt: >
|
|
|
|
pkg={{ item }}
|
|
|
|
state=latest
|
|
|
|
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
|
|
|
|
- ceph-mds #|--> they don't get update so we need to force them
|
|
|
|
- libcephfs1 #|
|