Description of problem:
Pulp consumer hard codes the file path for the consumer certificate in 'credentials.py':
ROOT = '/etc/pki/consumer'
CRT = 'cert.pem'
We would like to see this a configurable parameter. Intent being to support the ability for a developer to run subscription-manager and pulp-consumer on the same development box.
As a first step, we should change our hard coded path to /etc/pki/consumer/pulp/cert.pem to resolve the conflict. If for some reason users still want to point to an arbitrary place for the pulp cert, we can open an RFE to make it configurable. The down side to making this (and any property) configurable without an explicit use case is that it makes configuration more complex and introduces risk and potential support issues without adding value.
Made configurable in /etc/pulp/consumer/consumer.conf:
consumer_cert = /etc/pki/consumer/pulp/cert.pem
Notice, I also changed the default directory of the certificate to:
to avoid conflicts with rhsm.
[root@preethi ~]# rpm -q pulp
Pulp v1.0 is released
Closed Current Release.