Use array style for attributes
Use correct params for adding key to yum