A puppet function to create resources when given a hash.