Skip to content

Commit

Permalink
pin ceph packages to release o=Ubuntu on rocky/bionic
Browse files Browse the repository at this point in the history
When you're installing ceph on ubuntu/bionic, the luminous release isn't
readily available from ceph.com, and you end up pulling mimic packages
from uca instead. Fortunately luminous packages are available in the
distro repo.

apt-cache policy examples;
uca: release o=Canonical,a=bionic-updates,n=bionic-updates/rocky,c=main,b=amd64
ceph: release o=ceph.com,a=stable,n=bionic,c=main,b=amd64
ubuntu: release v=18.04,o=Ubuntu,a=bionic-backports,n=bionic,l=Ubuntu,c=main,b=amd64

Change-Id: I34cec9224e1367730ab4bed02abc499a65d9f53e
  • Loading branch information
eb4x committed Mar 3, 2020
1 parent 2cdfec8 commit 66a13d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions playbooks/ceph-install.yml
Expand Up @@ -99,7 +99,7 @@
vars:
apt_package_pinning_file_name: "ceph_community_pin.pref"
apt_package_pinning_priority: "{{ (ceph_repository == 'community') | ternary(1000, 100) }}"
apt_pinned_packages: [{ package: '*', release: 'ceph.com' }]
apt_pinned_packages: [{ package: '*', release: "{{ (ansible_distribution_release == 'bionic') | ternary('Ubuntu', 'ceph.com') }}" }]
when:
- ansible_pkg_mgr == 'apt'

Expand Down Expand Up @@ -203,7 +203,7 @@
vars:
apt_package_pinning_file_name: "ceph_community_pin.pref"
apt_package_pinning_priority: "{{ (ceph_repository == 'community') | ternary(1000, 100) }}"
apt_pinned_packages: [{ package: '*', release: 'ceph.com' }]
apt_pinned_packages: [{ package: '*', release: "{{ (ansible_distribution_release == 'bionic') | ternary('Ubuntu', 'ceph.com') }}" }]
when:
- ansible_pkg_mgr == 'apt'

Expand Down
2 changes: 1 addition & 1 deletion playbooks/ceph-rgw-install.yml
Expand Up @@ -49,7 +49,7 @@
vars:
apt_package_pinning_file_name: "ceph_community_pin.pref"
apt_package_pinning_priority: "{{ (ceph_repository == 'community') | ternary(1000, 100) }}"
apt_pinned_packages: [{ package: '*', release: 'ceph.com' }]
apt_pinned_packages: [{ package: '*', release: "{{ (ansible_distribution_release == 'bionic') | ternary('Ubuntu', 'ceph.com') }}" }]
when:
- ansible_pkg_mgr == 'apt'

Expand Down

0 comments on commit 66a13d7

Please sign in to comment.