The file paths are slightly different (redhat instead of centos) in
RHEL.
Backport note:
This change uses legacy facts instead of structured facts to make
the implementation consistent with the old codes.
Change-Id: Ib9c386d713a4845ebafdfe5377a016e5effa0de0
(cherry picked from commit fe1774fbb6)
(cherry picked from commit b6a3f2872c)
(cherry picked from commit 14787fb98c)
(cherry picked from commit f169e76453)
(cherry picked from commit 61f8ec1943)