[COOK-2399] Foodcritic fixes for yum cookbook

Tested with test-kitchen; all tests passed.