Because we can template the gitbuilder_host now we don't need both
ceph.pref and ceph-redhat.pref.
Discussed in IRC today. It appears we can do this based on the history in Chef
(https://github.com/ceph/ceph-qa-chef/commit/
7a5738732b17161b2d29e6535a64c519ea02706b
and
https://github.com/ceph/ceph-qa-chef/commit/
66f7c40a21c6fb554e19731b56af310273607889)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
---
- name: Set apt preferences
template:
- dest: "/etc/apt/preferences.d/{{ item }}"
- src: "../../templates/apt/{{ item }}"
+ dest: "/etc/apt/preferences.d/ceph.pref"
+ src: "../../templates/apt/ceph.pref"
owner: root
group: root
mode: 0644
- with_items:
- - ceph.pref
- - ceph-redhat.pref
register: apt_prefs
- name: Add sources list
+++ /dev/null
-{# {{ ansible_managed }} #}
-Package: *
-Pin: origin gitbuilder.ceph.redhat.com
-Pin-Priority: 998
{# {{ ansible_managed }} #}
Package: *
-Pin: origin gitbuilder.ceph.com
+Pin: origin {{ gitbuilder_host }}
Pin-Priority: 999