Backport create_resources function from Puppet 2.7 so ensure_resources will work
Allow the specification of arbitrary opts to ensure_packages

Allows us to set before, require, etc