2015-08-27 17:17:11 +08:00
|
|
|
---
|
|
|
|
- name: install the ceph repository stable key
|
2015-09-04 00:18:53 +08:00
|
|
|
apt_key:
|
2016-01-23 00:43:47 +08:00
|
|
|
data: "{{ lookup('file', role_path+'/files/cephstable.asc') }}"
|
2015-09-04 00:18:53 +08:00
|
|
|
state: present
|
2015-08-27 17:17:11 +08:00
|
|
|
when: ceph_stable
|
|
|
|
|
|
|
|
- name: install the ceph development repository key
|
2015-09-04 00:18:53 +08:00
|
|
|
apt_key:
|
2016-01-23 00:43:47 +08:00
|
|
|
data: "{{ lookup('file', role_path+'/files/cephdev.asc') }}"
|
2015-09-04 00:18:53 +08:00
|
|
|
state: present
|
2015-08-27 17:17:11 +08:00
|
|
|
when: ceph_dev
|
|
|
|
|
|
|
|
- name: install intank ceph enterprise repository key
|
2015-09-04 00:18:53 +08:00
|
|
|
apt_key:
|
2016-01-23 00:43:47 +08:00
|
|
|
data: "{{ lookup('file', role_path+'/files/cephstableice.asc') }}"
|
2015-09-04 00:18:53 +08:00
|
|
|
state: present
|
2015-08-27 17:17:11 +08:00
|
|
|
when: ceph_stable_ice
|
|
|
|
|
|
|
|
- name: add ceph stable repository
|
2015-09-04 00:18:53 +08:00
|
|
|
apt_repository:
|
2016-01-12 02:13:09 +08:00
|
|
|
repo: "deb {{ ceph_stable_repo }} {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
|
2015-09-04 00:18:53 +08:00
|
|
|
state: present
|
2015-08-27 17:17:11 +08:00
|
|
|
changed_when: false
|
|
|
|
when: ceph_stable
|
|
|
|
|
|
|
|
- name: add ceph development repository
|
2015-09-04 00:18:53 +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
|
2015-08-27 17:17:11 +08:00
|
|
|
changed_when: false
|
|
|
|
when: ceph_dev
|
|
|
|
|
|
|
|
- name: add inktank ceph enterprise repository
|
2015-09-04 00:18:53 +08:00
|
|
|
apt_repository:
|
|
|
|
repo: "deb file://{{ ceph_stable_ice_temp_path }} {{ ansible_lsb.codename }} main"
|
|
|
|
state: present
|
2015-08-27 17:17:11 +08:00
|
|
|
changed_when: false
|
|
|
|
when: ceph_stable_ice
|
2016-05-03 00:25:52 +08:00
|
|
|
|
|
|
|
- name: add ubuntu cloud archive key package
|
|
|
|
apt:
|
|
|
|
pkg: ubuntu-cloud-keyring
|
|
|
|
when: ceph_stable_uca
|
|
|
|
|
|
|
|
- name: add ubuntu cloud archive repository
|
|
|
|
apt_repository:
|
|
|
|
repo: "deb {{ ceph_stable_repo_uca }} {{ ceph_stable_release_uca}} main"
|
|
|
|
state: present
|
|
|
|
changed_when: false
|
|
|
|
when: ceph_stable_uca
|
2016-06-22 22:13:55 +08:00
|
|
|
|
|
|
|
- name: add custom repo
|
|
|
|
apt_repository:
|
|
|
|
repo: "deb {{ ceph_custom_repo }} {{ ansible_lsb.codename }} main"
|
|
|
|
state: present
|
|
|
|
changed_when: false
|
|
|
|
when: ceph_custom
|
|
|
|
|