waveclaw / puppet-subscription_manager

Handle Client Registration to RedHat Satellite 6 or Katello
https://rhn.redhat.com
Other
6 stars 34 forks source link

rhsm_override is not enumerable #118

Open vchepkov opened 2 years ago

vchepkov commented 2 years ago

tried this on RHEL8 and RHEL9 - same effect

# puppet resource rhsm_override
Error: Could not run: No resource and no name in property hash in subscription_manager instance

Also a side note, it seems provider assumes only 'enabled' can be overridden, that's not the case:

# cat /var/lib/rhsm/cache/content_overrides.json | jq -M
[
  {
    "created": "2022-07-23T12:41:18+0000",
    "updated": "2022-07-23T12:41:18+0000",
    "name": "enabled",
    "contentLabel": "satellite-client-6-for-rhel-9-x86_64-rpms",
    "value": "1"
  },
  {
    "created": "2022-07-23T12:56:17+0000",
    "updated": "2022-07-23T12:56:17+0000",
    "name": "enabled",
    "contentLabel": "codeready-builder-for-rhel-9-x86_64-rpms",
    "value": "1"
  },
  {
    "created": "2022-07-23T13:15:21+0000",
    "updated": "2022-07-23T13:15:21+0000",
    "name": "exclude",
    "contentLabel": "satellite-client-6-for-rhel-9-x86_64-rpms",
    "value": "puppet-agent"
  }
]