Added support for hiera rules configuration

Using create_resources.