Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refs #9403 - get rhsm certificate from rhsm configration #20

Merged
merged 1 commit into from Feb 18, 2015

Conversation

stbenjam
Copy link
Contributor

No description provided.

@@ -117,10 +117,11 @@ def setup_plugin():
cfg = plugin.cfg()
rhsm_conf = Config(RHSM_CONFIG_PATH)
certificate = ConsumerIdentity.read()
cfg.messaging.cacert = rhsm_conf['rhsm']['repo_ca_cert'] % rhsm_conf['rhsm']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this handle the string substitution from rhsm.conf?:
repo_ca_cert = %(ca_cert_dir)skatello-server-ca.pem

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the Config() object handle that for you? as i see the test below testing that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately Config doesn't do it, which is why I'm doing the substitution with the rhsm_conf['rhsm'] dict.

I wonder if we can't get this hooked up to Jenkins? Not urgent, I ran the tests locally and they pass. I need to get a jenkins account one of these days...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohhhh i see, i was a tad confused there.

@jlsherrill
Copy link
Member

ACK from me

@jlsherrill
Copy link
Member

and +1 to getting jenkins test runs. I'll see about setting up a job and we can point the PR processor at it i think

@stbenjam
Copy link
Contributor Author

@jlsherrill It needs a bunch of dependencies, it took a bit to figure out, but it was mostly python-gofer and pulp stuff.

If those are installable with pip on Ubuntu, we could use Travis.

@stbenjam
Copy link
Contributor Author

Thanks!

stbenjam added a commit that referenced this pull request Feb 18, 2015
refs #9403 - get rhsm certificate from rhsm configration
@stbenjam stbenjam merged commit 8ba69cd into Katello:master Feb 18, 2015
zjhuntin pushed a commit to zjhuntin/katello-agent that referenced this pull request Jan 23, 2017
Use --relaxed flag when adding URL for sources pulling from master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants