It is not possible to configure repositories exclusively in an idempotent fashion today with rhc. This works:
rhc_repositories:
- {name: "*", state: disabled}
- {name: "rhel-9-for-x86_64-baseos-rpms", state: enabled}
- {name: "rhel-9-for-x86_64-appstream-rpms", state: enabled}
but this is not idempotent and this seems to do lots of work on each run. It would look better to allow using the purge parameter for configuring repositories exclusively. Thanks.