]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
common: set apt pinning with Red Hat Ceph Storage
authorSébastien Han <seb@redhat.com>
Wed, 14 Dec 2016 17:15:02 +0000 (18:15 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 14 Dec 2016 18:01:54 +0000 (19:01 +0100)
commit13a72fd24b02c8ea537b70bf8b23522c54f623db
tree8e67510b436669650c1df6f81fdc86950df413c5
parent1b5afef9ed23becdbe0af69f5b2c5ca3e4b6b4de
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>
roles/ceph-common/tasks/installs/install_rh_storage_on_debian.yml
roles/ceph-common/templates/rhcs.pref.j2 [new file with mode: 0644]