Closed vchepkov closed 2 years ago
I've had the same requirement (especially the lifecycle environement name). A quick fix was a modified copy of rhsm_identity.rb. A better solution would be to have a fact like the mention rhsm_environment
with keys like
rhsm_environment.system_identity = 0970a886-b77a-41e1-b2b5-8337a8110c91
rhsm_environment.name = puppet.example.com
rhsm_environment.org_name =Example Inc
rhsm_environment.org_id = EINC
rhsm_environment.lce = Library
rhsm_environment.cv = RHEL-7
In addition to system id,
/usr/sbin/subscription-manager identity
command provides additional valuable information:Please add
rhsm_environment
fact, it can be used to customize systems configuration