Support yum cookbook 2 and 3

thanks @yshh.