The yumrepo_core type creates elements in /etc/yum.repos.d/ but does not create a File resource for those items. As a result, if /etc/yum.repos.d/ is set to purge unmanaged files, the newly created resources are immediately removed making things non-idempotent and also confusing.
I'm not aware of a way to use the yumrepo type in that manner.
It gets more complex when consuming content via subscription-manager. The repo file is written out directly there. It can be tracked with a `File` resource, but without having the other files under the `File` scope, it is a bit of a mess.