Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: set apt pinning with Red Hat Ceph Storage
When `ceph_stable_rh_storage` is True, every cluster node should have a `/etc/apt/preferences.d/rhcs.pref` file with the following contents: ``` Explanation: Prefer Red Hat packages Package: * Pin: release o=/Red Hat/ Pin-Priority: 999 ``` ceph-deploy already did this when used with ice-setup, and we need to do the same thing with the ceph-ansible stack. Closes: #1182 and https://bugzilla.redhat.com/show_bug.cgi?id=1404515 Signed-off-by: Sébastien Han <seb@redhat.com>
- Loading branch information
Showing
2 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#jinja2: trim_blocks: "true", lstrip_blocks: "true" | ||
# {{ ansible_managed }} | ||
|
||
Explanation: Prefer Red Hat packages | ||
Package: * | ||
Pin: release o=/Red Hat/ | ||
Pin-Priority: 999 |