It would be good if the module autorequired the resource to ensure the ordering is correct. For example, the `registry_value` type autorequires its parent `registry_key`: https://github.com/puppetlabs/puppetlabs-registry/blob/master/lib/puppet/type/registry_value.rb#L122-L134