From: leseb Date: Fri, 3 Jul 2015 14:26:21 +0000 (+0200) Subject: Add more repo source for stable X-Git-Tag: v1.0.0~185^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F310%2Fhead;p=ceph-ansible.git Add more repo source for stable Attempt to fix #305 Signed-off-by: leseb --- diff --git a/group_vars/all b/group_vars/all index 308b9ddd9..f0f0d060a 100644 --- a/group_vars/all +++ b/group_vars/all @@ -24,6 +24,11 @@ dummy: #ceph_stable_key: https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc #ceph_stable_release: hammer # ceph stable release +# Use the option below to specify your applicable package tree, eg. when using non-LTS Ubuntu versions +# # for a list of available Debian distributions, visit http://ceph.com/debian-{{ ceph_stable_release }}/dists/ +# for more info read: https://github.com/ceph/ceph-ansible/issues/305 +#ceph_stable_distro_source: + # This option is needed for _both_ stable and dev version, so please always fill the right version # # for supported distros, see http://ceph.com/rpm-{{ ceph_stable_release }}/ #ceph_stable_redhat_distro: el7 diff --git a/roles/ceph-common/defaults/main.yml b/roles/ceph-common/defaults/main.yml index b21538768..6422f9f0a 100644 --- a/roles/ceph-common/defaults/main.yml +++ b/roles/ceph-common/defaults/main.yml @@ -21,6 +21,11 @@ ceph_stable: true # use ceph stable branch ceph_stable_key: https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc ceph_stable_release: hammer # ceph stable release +# Use the option below to specify your applicable package tree, eg. when using non-LTS Ubuntu versions +# # for a list of available Debian distributions, visit http://ceph.com/debian-{{ ceph_stable_release }}/dists/ +# for more info read: https://github.com/ceph/ceph-ansible/issues/305 +#ceph_stable_distro_source: + # This option is needed for _both_ stable and dev version, so please always fill the right version # # for supported distros, see http://ceph.com/rpm-{{ ceph_stable_release }}/ ceph_stable_redhat_distro: el7 diff --git a/roles/ceph-common/tasks/install_on_debian.yml b/roles/ceph-common/tasks/install_on_debian.yml index e72fba2ad..6cb648028 100644 --- a/roles/ceph-common/tasks/install_on_debian.yml +++ b/roles/ceph-common/tasks/install_on_debian.yml @@ -30,7 +30,7 @@ - name: add Ceph stable repository apt_repository: > - repo="deb http://ceph.com/debian-{{ ceph_stable_release }}/ {{ ansible_lsb.codename }} main" + repo="deb http://ceph.com/debian-{{ ceph_stable_release }}/ {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main" state=present changed_when: false when: ceph_stable