For Katello, subscription-manager will need to be able to cause repos
with the $org and $env to be substituted with the value which a consumer
is registered to. The plugin which we have already could do this.
However, we do not have the org or the environment stored on the machine.
We could do the following:
1) Enhance Candlepin and Katello to always return the org id and
envrionment id in the json. If we do this, then a single call is made to
the server to get these variables.
2) Record them at register time. Either in a file or in the facts. Have
the plugin read them back out.
3) Encode this in the cert. This may be an issue since candlepin does
not know the environment.
-- bk