waveclaw / puppet-subscription_manager

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

name of rhsm_register is read from proxy_hostname if configured #40

Closed pgassmann closed 7 years ago

pgassmann commented 7 years ago

puppet resource rhsm_register returns the registration with name set to the proxy address

rhsm_register { '192.168.10.1':
  ensure   => 'present',
  identity => '431cee5e-ec7e-11e6-baff-2ba028dcb1a6',
}

instead of

rhsm_register { 'satellite.example.com':
  ensure   => 'present',
  identity => '431cee5e-ec7e-11e6-baff-2ba028dcb1a6',
}

source is the regular expression in the ruby code of the provider.