Call rpm --whatprovides on packages required to run puppet

We install the packages with one yum command but it won't return
error if some of the packages are missing. We better check that
using rpm.

Fix: bz#1154257

Change-Id: Ie2537c5c0e3348d2c7df6b9bfc40939985171b45
(cherry picked from commit 67b98ec17954f55a62b144dffc1885a63e44cc09)
Merge "Call rpm --whatprovides on packages required to run puppet" into icehouse