ceph-ansible/roles/ceph-common/tasks/installs/install_on_debian.yml

83 lines
2.1 KiB
YAML
Raw Normal View History

2014-09-05 03:14:11 +08:00
---
- name: install dependencies
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
apt_key: >
data="{{ lookup('file', '../../files/cephstable.asc') }}"
2014-09-05 03:14:11 +08:00
state=present
when: ceph_stable
- name: install the ceph development repository key
apt_key: >
data="{{ lookup('file', '../../files/cephdev.asc') }}"
2014-09-05 03:14:11 +08:00
state=present
when: ceph_dev
- name: install intank ceph enterprise repository key
apt_key: >
data="{{ lookup('file', '../../files/cephstableice.asc') }}"
state=present
when: ceph_stable_ice
- name: add ceph stable repository
apt_repository: >
repo="deb http://ceph.com/debian-{{ ceph_stable_release }}/ {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
2014-09-05 03:14:11 +08:00
state=present
changed_when: false
2014-09-05 03:14:11 +08:00
when: ceph_stable
- name: add ceph development repository
2014-09-05 03:14:11 +08:00
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
changed_when: false
2014-09-05 03:14:11 +08:00
when: ceph_dev
- name: add inktank ceph enterprise repository
apt_repository: >
repo="deb file://{{ ceph_stable_ice_temp_path }} {{ ansible_lsb.codename }} main"
state=present
changed_when: false
when: ceph_stable_ice
- name: install ceph
2014-09-05 03:14:11 +08:00
apt: >
pkg={{ item }}
state=latest
2014-09-05 03:14:11 +08:00
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 #|
- name: install rados gateway
apt: >
pkg=radosgw
state=latest
update_cache=yes
when:
rgw_group_name in group_names
- name: configure rbd clients directories
file: >
path={{ item }}
state=directory
owner=libvirt-qemu
group=kvm
mode=0755
with_items:
- rbd_client_log_path
- rbd_client_admin_socket_path
when: rbd_client_directories