]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
common: fix installation condition
authorSébastien Han <seb@redhat.com>
Mon, 22 May 2017 12:18:45 +0000 (14:18 +0200)
committerSébastien Han <seb@redhat.com>
Wed, 24 May 2017 12:05:19 +0000 (14:05 +0200)
commit1fc3c8d68eac83a93b462427f00504f214f379ae
tree4b9ada0032517931f2de54ac0c8b0803d3dcdeba
parent73881bb1c9fac4c16b4ec8c514c409f180823293
common: fix installation condition

Problem: we could end up in situation where we would install a package
on a machine that does not have the right repo enabled. Because the
condition was set to OR we weren't pinning a particular host but just a
condition. Let's say someone sets 'ceph_origin == "distro"', this would
try to install OSD packages on Monitors.

Solution: use a AND condition to first pin to the group_name (which
identifies a set of hosts) AND then after this one of the installation
condition.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1453119
Co-Authored-By: https://github.com/zhsj
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit f7e9585a2c9978faaeb99b3b8adcd1a2c58b72b4)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-common/tasks/installs/install_on_redhat.yml